From d5ba2e54926941ca72ce7719112c78b536bc35f6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:30:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 140 ++++++++++++++++++++++++------------------------- 1 file changed, 68 insertions(+), 72 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 66e0b2b2..d5fb7426 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ keywords = [ "Django", ] license = "MIT" -authors = [{ name = "Mark Bakhit" }] +authors = [ { name = "Mark Bakhit" } ] requires-python = ">=3.9" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -46,13 +46,13 @@ urls.Homepage = "https://github.com/Archmonger/ServeStatic" path = "src/servestatic/__init__.py" [tool.hatch.build.targets.sdist] -include = ["/src", "/tests"] +include = [ "/src", "/tests" ] [tool.hatch.build.targets.wheel] -nclude = ["/src", "/tests"] +nclude = [ "/src", "/tests" ] [tool.hatch.metadata] -license-files = { paths = ["LICENSE"] } +license-files = { paths = [ "LICENSE" ] } [tool.hatch.envs.default] installer = "uv" @@ -61,60 +61,60 @@ installer = "uv" # Testing # [tool.hatch.envs.hatch-test] -extra-dependencies = ["pytest-sugar", "requests", "brotli"] +extra-dependencies = [ "pytest-sugar", "requests", "brotli" ] randomize = true matrix-name-format = "{variable}-{value}" # Django 3.2 LTS [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.9", "3.10"] -django = ["3.2"] +python = [ "3.9", "3.10" ] +django = [ "3.2" ] # Django 4.0 [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.9", "3.10"] -django = ["4.0"] +python = [ "3.9", "3.10" ] +django = [ "4.0" ] # Django 4.1 [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.9", "3.10", "3.11"] -django = ["4.1"] +python = [ "3.9", "3.10", "3.11" ] +django = [ "4.1" ] # Django 4.2 [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.9", "3.10", "3.11", "3.12"] -django = ["4.2"] +python = [ "3.9", "3.10", "3.11", "3.12" ] +django = [ "4.2" ] # Django 5.0 [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.10", "3.11", "3.12"] -django = ["5.0"] +python = [ "3.10", "3.11", "3.12" ] +django = [ "5.0" ] # Django 5.1 [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.10", "3.11", "3.12"] -django = ["5.1"] +python = [ "3.10", "3.11", "3.12" ] +django = [ "5.1" ] [tool.hatch.envs.hatch-test.overrides] matrix.django.dependencies = [ - { if = [ - "3.2", - ], value = "django~=3.2" }, - { if = [ - "4.0", - ], value = "django~=4.0" }, - { if = [ - "4.1", - ], value = "django~=4.1" }, - { if = [ - "4.2", - ], value = "django~=4.2" }, - { if = [ - "5.0", - ], value = "django~=5.0" }, - { if = [ - "5.1", - ], value = "django~=5.1" }, + { if = [ + "3.2", + ], value = "django~=3.2" }, + { if = [ + "4.0", + ], value = "django~=4.0" }, + { if = [ + "4.1", + ], value = "django~=4.1" }, + { if = [ + "4.2", + ], value = "django~=4.2" }, + { if = [ + "5.0", + ], value = "django~=5.0" }, + { if = [ + "5.1", + ], value = "django~=5.1" }, ] # @@ -124,28 +124,27 @@ matrix.django.dependencies = [ template = "docs" detached = true dependencies = [ - "mkdocs", - "mkdocs-git-revision-date-localized-plugin", - "mkdocs-material", - "mkdocs-include-markdown-plugin", - "linkcheckmd", - "mkdocs-spellcheck[all]", - "mkdocs-git-authors-plugin", - "mkdocs-minify-plugin", - "mike", + "mkdocs", + "mkdocs-git-revision-date-localized-plugin", + "mkdocs-material", + "mkdocs-include-markdown-plugin", + "linkcheckmd", + "mkdocs-spellcheck[all]", + "mkdocs-git-authors-plugin", + "mkdocs-minify-plugin", + "mike", ] [tool.hatch.envs.docs.scripts] -serve = ["cd docs && mkdocs serve"] -build = ["cd docs && mkdocs build --strict"] +serve = [ "cd docs && mkdocs serve" ] +build = [ "cd docs && mkdocs build --strict" ] linkcheck = [ - "linkcheckMarkdown docs/ -v -r", - "linkcheckMarkdown README.md -v -r", - "linkcheckMarkdown CHANGELOG.md -v -r", + "linkcheckMarkdown docs/ -v -r", + "linkcheckMarkdown README.md -v -r", + "linkcheckMarkdown CHANGELOG.md -v -r", ] -deploy_latest = ["cd docs && mike deploy --push --update-aliases {args} latest"] -deploy_develop = ["cd docs && mike deploy --push develop"] - +deploy_latest = [ "cd docs && mike deploy --push --update-aliases {args} latest" ] +deploy_develop = [ "cd docs && mike deploy --push develop" ] # # pre-commit @@ -153,37 +152,34 @@ deploy_develop = ["cd docs && mike deploy --push develop"] [tool.hatch.envs.precommit] template = "pre-commit" detached = true -dependencies = ["pre-commit>=3,<4"] +dependencies = [ "pre-commit>=3,<4" ] [tool.hatch.envs.precommit.scripts] -check = ["pre-commit run --all-files"] -update = ["pre-commit autoupdate"] +check = [ "pre-commit run --all-files" ] +update = [ "pre-commit autoupdate" ] # # Tools # [tool.black] -target-version = ['py39'] +target-version = [ 'py39' ] [tool.ruff] line-length = 120 -[tool.ruff.lint] -extend-ignore = [ - "FBT001", # Boolean-typed positional argument in function definition - "FBT002", # Boolean default positional argument in function definition - "ARG001", # Unused function argument - "ARG002", # Unused method argument - "ARG004", # Unused static method argument - "SLF001", # Private member accessed - "PLR2004", # Magic value used in comparison - "SIM115", # Use context handler for opening files +format.preview = true +lint.extend-ignore = [ + "ARG001", # Unused function argument + "ARG002", # Unused method argument + "ARG004", # Unused static method argument + "FBT001", # Boolean-typed positional argument in function definition + "FBT002", # Boolean default positional argument in function definition + "PLR2004", # Magic value used in comparison + "SIM115", # Use context handler for opening files + "SLF001", # Private member accessed ] -preview = true - -[tool.ruff.format] -preview = true +lint.preview = true [tool.pytest.ini_options] addopts = """\ @@ -194,10 +190,10 @@ addopts = """\ [tool.coverage.run] branch = true parallel = true -source = ["src/", "tests/"] +source = [ "src/", "tests/" ] [tool.coverage.paths] -source = ["src/"] +source = [ "src/" ] [tool.coverage.report] show_missing = true