From ba6669c4f2592010e4f56e0fe84859442db613ef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 21:25:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 110 +++++++++++++++++++++++++------------------------ 1 file changed, 57 insertions(+), 53 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d4435819..ac2c416f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,55 +8,59 @@ target-version = "py38" line-length = 120 # Enable Pyflakes `E` and `F` codes by default. lint.select = [ - "E", "W", # see: https://pypi.org/project/pycodestyle - "F", # see: https://pypi.org/project/pyflakes - "I", #see: https://pypi.org/project/isort/ - "D", # see: https://pypi.org/project/pydocstyle - "N", # see: https://pypi.org/project/pep8-naming - "S", # see: https://pypi.org/project/flake8-bandit - "UP", # see: https://docs.astral.sh/ruff/rules/#pyupgrade-up + "D", # see: https://pypi.org/project/pydocstyle + "E", + "F", # see: https://pypi.org/project/pyflakes + "I", #see: https://pypi.org/project/isort/ + "N", # see: https://pypi.org/project/pep8-naming + "S", # see: https://pypi.org/project/flake8-bandit + "UP", # see: https://docs.astral.sh/ruff/rules/#pyupgrade-up + "W", # see: https://pypi.org/project/pycodestyle ] lint.extend-select = [ - "A", # see: https://pypi.org/project/flake8-builtins - "B", # see: https://pypi.org/project/flake8-bugbear - "C4", # see: https://pypi.org/project/flake8-comprehensions - "PT", # see: https://pypi.org/project/flake8-pytest-style - "RET", # see: https://pypi.org/project/flake8-return - "SIM", # see: https://pypi.org/project/flake8-simplify - "YTT", # see: https://pypi.org/project/flake8-2020 - "ANN", # see: https://pypi.org/project/flake8-annotations - "TID", # see: https://pypi.org/project/flake8-tidy-imports/ - "T10", # see: https://pypi.org/project/flake8-debugger - "Q", # see: https://pypi.org/project/flake8-quotes - "EXE", # see: https://pypi.org/project/flake8-executable - "ISC", # see: https://pypi.org/project/flake8-implicit-str-concat - "PIE", # see: https://pypi.org/project/flake8-pie - "PLE", # see: https://pypi.org/project/pylint/ - "PERF", # see: https://pypi.org/project/perflint/ - "PYI", # see: https://pypi.org/project/flake8-pyi/ - "RUF", # see: https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf + "A", # see: https://pypi.org/project/flake8-builtins + "ANN", # see: https://pypi.org/project/flake8-annotations + "B", # see: https://pypi.org/project/flake8-bugbear + "C4", # see: https://pypi.org/project/flake8-comprehensions + "EXE", # see: https://pypi.org/project/flake8-executable + "ISC", # see: https://pypi.org/project/flake8-implicit-str-concat + "PERF", # see: https://pypi.org/project/perflint/ + "PIE", # see: https://pypi.org/project/flake8-pie + "PLE", # see: https://pypi.org/project/pylint/ + "PT", # see: https://pypi.org/project/flake8-pytest-style + "PYI", # see: https://pypi.org/project/flake8-pyi/ + "Q", # see: https://pypi.org/project/flake8-quotes + "RET", # see: https://pypi.org/project/flake8-return + "RUF", # see: https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf + "SIM", # see: https://pypi.org/project/flake8-simplify + "T10", # see: https://pypi.org/project/flake8-debugger + "TID", # see: https://pypi.org/project/flake8-tidy-imports/ + "YTT", # see: https://pypi.org/project/flake8-2020 ] -lint.ignore-init-module-imports = true -lint.unfixable = ["F401"] lint.ignore = [ - "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` + "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` ] -[tool.ruff.lint.per-file-ignores] -"setup.py" = ["D100", "SIM115"] -"__about__.py" = ["D100"] -"__init__.py" = ["D100"] - -[tool.ruff.lint.pydocstyle] -# Use Google-style docstrings. -convention = "google" - +lint.per-file-ignores."__about__.py" = [ + "D100", +] +lint.per-file-ignores."__init__.py" = [ + "D100", +] +lint.per-file-ignores."setup.py" = [ + "D100", + "SIM115", +] +lint.unfixable = [ + "F401", +] +# Unlike Flake8, default to a complexity level of 10. +lint.mccabe.max-complexity = 10 #[tool.ruff.pycodestyle] #ignore-overlong-task-comments = true - -[tool.ruff.lint.mccabe] -# Unlike Flake8, default to a complexity level of 10. -max-complexity = 10 +lint.ignore-init-module-imports = true +# Use Google-style docstrings. +lint.pydocstyle.convention = "google" [tool.isort] profile = "black" @@ -75,18 +79,18 @@ quiet-level = 3 [tool.pytest.ini_options] norecursedirs = [ - ".git", - ".github", - "dist", - "build", - "docs", + ".git", + ".github", + "dist", + "build", + "docs", ] addopts = [ - "--strict-markers", - "--doctest-modules", - # "--doctest-plus", - "--color=yes", - "--disable-pytest-warnings", + "--strict-markers", + "--doctest-modules", + # "--doctest-plus", + "--color=yes", + "--disable-pytest-warnings", ] # ToDo #filterwarnings = ["error::FutureWarning"] @@ -95,6 +99,6 @@ junit_duration_report = "call" [tool.coverage.report] exclude_lines = [ - "pragma: no cover", - "pass", + "pragma: no cover", + "pass", ]