Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#474)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/tox-dev/pyproject-fmt: 2.0.4 → 2.1.2](tox-dev/pyproject-fmt@2.0.4...2.1.2)
- [github.com/abravalheri/validate-pyproject: v0.17 → v0.18](abravalheri/validate-pyproject@v0.17...v0.18)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 21, 2024
1 parent 30cfd53 commit 1ede45b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ repos:
- id: black

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.0.4
rev: 2.1.2
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.17
rev: v0.18
hooks:
- id: validate-pyproject
29 changes: 11 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[tool.ruff]
target-version = "py37"

[tool.ruff.lint]
select = [
lint.select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
Expand Down Expand Up @@ -51,7 +50,7 @@ select = [
# "TRY", # tryceratops
# "UP", # pyupgrade
]
ignore = [
lint.ignore = [
"B018",
"B026",
"B904",
Expand All @@ -72,24 +71,18 @@ ignore = [
"S314",
"S603",
]

[tool.ruff.lint.mccabe]
max-complexity = 16

[tool.ruff.lint.pylint]
allow-magic-value-types = [
lint.per-file-ignores."tests/*" = [
"S101",
]
lint.mccabe.max-complexity = 16
lint.pylint.allow-magic-value-types = [
"int",
"str",
]
max-args = 12
max-branches = 20
max-returns = 7
max-statements = 54

[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101",
]
lint.pylint.max-args = 12
lint.pylint.max-branches = 20
lint.pylint.max-returns = 7
lint.pylint.max-statements = 54

[tool.codespell]
ignore-words-list = "dekstop,nwe,wahtever,yello"
Expand Down

0 comments on commit 1ede45b

Please sign in to comment.