Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 23, 2024
1 parent 4e603cf commit d5ba2e5
Showing 1 changed file with 68 additions and 72 deletions.
140 changes: 68 additions & 72 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand All @@ -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" },
]

#
Expand All @@ -124,66 +124,62 @@ 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
#
[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 = """\
Expand All @@ -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
Expand Down

0 comments on commit d5ba2e5

Please sign in to comment.