Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#242)
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)

* [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 987b0d5 commit 6f53577
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
- id: black

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

Expand Down
31 changes: 13 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ target-versions = [
preview = true

[tool.ruff]
target-version = "py38"
line-length = 120
preview = true
target-version = "py38"
lint.select = [
"A",
"B",
Expand All @@ -65,19 +65,19 @@ lint.select = [
"FURB",
"G",
"I",
"S",
"SIM",
"PERF",
"PIE",
"Q",
"RET",
"RUF",
"S",
"SIM",
"UP",
"W",
]
lint.extend-ignore = [
"D107",
"D105",
"D107",
"D203",
"D213",
"D401",
Expand All @@ -86,44 +86,39 @@ lint.extend-ignore = [
"RUF100",
]

[tool.ruff.lint.per-file-ignores]
"pillow_heif/__init__.py" = [
lint.per-file-ignores."pillow_heif/__init__.py" = [
"F401",
]
"setup.py" = [
lint.per-file-ignores."setup.py" = [
"S",
]

[tool.ruff.lint.extend-per-file-ignores]
"benchmarks/**/*.py" = [
lint.extend-per-file-ignores."benchmarks/**/*.py" = [
"D",
"S404",
"S603",
]
"docs/**/*.py" = [
lint.extend-per-file-ignores."docs/**/*.py" = [
"D",
]
"examples/**/*.py" = [
lint.extend-per-file-ignores."examples/**/*.py" = [
"D",
"PERF",
]
"libheif/**/*.py" = [
lint.extend-per-file-ignores."libheif/**/*.py" = [
"D",
"PERF",
"S",
]
"tests/**/*.py" = [
lint.extend-per-file-ignores."tests/**/*.py" = [
"B009",
"D",
"E402",
"PERF",
"S",
"UP",
"SIM115",
"UP",
]

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

[tool.isort]
profile = "black"
Expand Down

0 comments on commit 6f53577

Please sign in to comment.