diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc9e954..6512e22 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - id: blackdoc - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell exclude: > @@ -51,12 +51,12 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.4.7 hooks: - id: ruff - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.8.0 + rev: 2.1.3 hooks: - id: pyproject-fmt diff --git a/pyproject.toml b/pyproject.toml index fc26ff4..94e54ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,32 +2,31 @@ build-backend = "setuptools.build_meta" requires = [ "setuptools>=41.2", - "setuptools_scm", + "setuptools-scm", "wheel", ] [tool.ruff] -select = [ - "A", # flake8-builtins - "B", # flake8-bugbear - "C4", # flake8-comprehensions - "F", # flakes - "I", # import sorting - "T20", # flake8-print - "UP", # upgrade -] target-version = "py38" line-length = 79 -[tool.ruff.per-file-ignores] -"docs/conf.py" = [ +select = [ + "A", # flake8-builtins + "B", # flake8-bugbear + "C4", # flake8-comprehensions + "F", # flakes + "I", # import sorting + "T20", # flake8-print + "UP", # upgrade +] +per-file-ignores."docs/conf.py" = [ "A001", ] -"samples/example_by.py" = [ - "T201", +per-file-ignores."samples/example_by.py" = [ + "T201", ] -"samples/example_pdf_by.py" = [ - "T201", +per-file-ignores."samples/example_pdf_by.py" = [ + "T201", ] [tool.interrogate] @@ -38,7 +37,11 @@ ignore-semiprivate = false ignore-private = false ignore-module = false fail-under = 70 -exclude = ["setup.py", "docs", "tests"] +exclude = [ + "setup.py", + "docs", + "tests", +] verbose = 1 quiet = false color = true