Skip to content

Commit

Permalink
Linter fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpfleming committed Jun 1, 2024
1 parent 15627e7 commit b1620da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.1"
rev: "2.1.3"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
rev: v0.4.7
hooks:
- id: ruff-format
- id: ruff
Expand Down
19 changes: 9 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ src = [
lint.select = [
"ALL",
]
lint.ignore = [
"ANN", # Mypy is better at this.
"C901", # Leave complexity to me.
"COM812", # conflicts with formatter
"D", # We have different ideas about docstrings.
"ISC001", # conflicts with formatter
"PLR0912", # Leave complexity to me.
"TRY301", # Raise in try blocks can totally make sense.
]
lint.per-file-ignores."tests/*" = [
"PLC1901", # empty strings are falsey, but are less specific in tests
"PT005", # we use always underscores and explicit names
Expand All @@ -194,16 +203,6 @@ lint.unfixable = [
]
lint.isort.lines-after-imports = 2
lint.isort.lines-between-types = 1
lint.ignore = [
"ANN", # Mypy is better at this.
"C901", # Leave complexity to me.
"COM812", # conflicts with formatter
"D", # We have different ideas about docstrings.
"ISC001", # conflicts with formatter
"PLR0912", # Leave complexity to me.
"TRY301", # Raise in try blocks can totally make sense.
]
lint.ignore-init-module-imports = true

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down

0 comments on commit b1620da

Please sign in to comment.