From 2fedf3d72c3c6166b7c5d7af4d7ff139c38bf1de Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:51:30 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.4.7) - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.3](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.1.3) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From f1adc4b5f9e3574a72986bb2bbb797a84de2b596 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:51:43 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) 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