Skip to content

Commit

Permalink
Update pre-commit hook tox-dev/pyproject-fmt to v2.1.1 (#69)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Petter Friberg <petter_friberg@hotmail.com>
  • Loading branch information
renovate[bot] and flaeppe committed May 18, 2024
1 parent 13a71e5 commit 9a0e454
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
hooks:
- id: tox-ini-fmt
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.0.4"
rev: "2.1.1"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.9"]
Expand Down
31 changes: 12 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ target-version = [
]

[tool.ruff]
target-version = "py39"

line-length = 88
src = [
"src",
"tests",
]
fix = true
exclude = [
".git",
".mypy_cache",
Expand All @@ -83,6 +85,7 @@ exclude = [
"migrations",
"venv",
]
fix = true
ignore = [
"DJ001", # Allow null=True
"DJ008", # Don't require a __str__ method
Expand All @@ -91,7 +94,6 @@ ignore = [
"S101", # Allow asserts
"TRY003", # We don't care about length of messages for exception classes
]
line-length = 88
select = [
"A",
"B",
Expand Down Expand Up @@ -129,30 +131,21 @@ select = [
"W",
"YTT",
]
target-version = "py39"

[tool.ruff.per-file-ignores]
"tests/**" = [
mccabe.max-complexity = 8
per-file-ignores."tests/**" = [
"S105",
"S106",
]

[tool.ruff.mccabe]
max-complexity = 8

[tool.ruff.isort]
known-first-party = [
"src/",
"tests/",
]
combine-as-imports = true

[tool.ruff.pylint]
allow-magic-value-types = [
pylint.allow-magic-value-types = [
"str",
"bytes",
"int",
]
isort.known-first-party = [
"src/",
"tests/",
]
isort.combine-as-imports = true

[tool.coverage.paths]
source = [
Expand Down

0 comments on commit 9a0e454

Please sign in to comment.