diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae229a0..91053bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.7 + rev: v0.4.2 hooks: - id: ruff name: ruff linter diff --git a/nigsp/due.py b/nigsp/due.py index 55a093c..57c8165 100644 --- a/nigsp/due.py +++ b/nigsp/due.py @@ -64,7 +64,7 @@ def _donothing_func(*args, **kwargs): import logging logging.getLogger("duecredit").error( - "Failed to import duecredit due to %s" % str(e) + "Failed to import duecredit due to %s", str(e) ) # Initiate due stub due = InactiveDueCreditCollector() diff --git a/pyproject.toml b/pyproject.toml index 8439df6..24e3987 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,3 +49,4 @@ select = ['A', 'B', 'E', 'F', 'UP', 'W'] ] '*.pyi' = ['E501'] '__init__.py' = ['F401'] +'_version.py' = ['UP031']