diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d093b79..9237f0cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.10.0" + rev: "v1.11.1" hooks: - id: mypy additional_dependencies: @@ -26,7 +26,7 @@ repos: - id: blacken-docs - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.8.0" + rev: "2.2.1" hooks: - id: pyproject-fmt args: [--indent, "4"] diff --git a/pyproject.toml b/pyproject.toml index b97ad293..80fad776 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "flit_core.buildapi" requires = [ - "flit_core<4,>=3.2", + "flit-core<4,>=3.2", ] [project] @@ -24,35 +24,32 @@ dynamic = [ "description", "version", ] -[project.urls] -"GitHub" = "https://github.com/pypa/installer" +urls."GitHub" = "https://github.com/pypa/installer" [tool.ruff] -fix = true -src = ["src"] +src = [ "src" ] extend-exclude = [ + "docs/*", "noxfile.py", - "docs/*" ] -[tool.ruff.lint] -select = [ +fix = true +lint.select = [ + "D", "E", "F", - "W", "I", - "D", + "W", ] -ignore = [ - "D105", "D203", "D213", "E501" +lint.ignore = [ + "D105", + "D203", + "D213", + "E501", ] - -[tool.ruff.lint.per-file-ignores] -"tests/*" = ["D"] -"tools/*" = ["D"] - -[tool.ruff.lint.isort] -known-first-party = ["src"] +lint.per-file-ignores."tests/*" = [ "D" ] +lint.per-file-ignores."tools/*" = [ "D" ] +lint.isort.known-first-party = [ "src" ] [tool.coverage.report] exclude_lines = [