Skip to content

Commit

Permalink
Add ruff ignores (#28)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Quinten <quinten.roets@gmail.com>
Co-authored-by: Quinten Roets <62651391+quintenroets@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 12, 2024
1 parent 53234e2 commit 275c0a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: docformatter
args: [--in-place, --make-summary-multi-line, --close-quotes-on-newline, --wrap-summaries, "88"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
rev: v0.5.7
hooks:
- id: ruff
- id: ruff-format
Expand All @@ -19,7 +19,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/quintenroets/package-dev-tools
rev: v0.6.1
rev: v0.6.3
hooks:
- id: infer-missing-annotations
- repo: local
Expand All @@ -39,7 +39,7 @@ repos:
always_run: true
fail_fast: true
- repo: https://github.com/quintenroets/package-dev-tools
rev: v0.6.1
rev: v0.6.3
hooks:
- id: check-coverage
- id: check-shields
Expand Down
17 changes: 11 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,23 @@ fix = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # annotate self
"ANN102", # annotate cls
"ANN401", # annotated with Any
"D", # docstrings
"ANN101", # annotate self
"ANN102", # annotate cls
"ANN401", # annotated with Any
"D", # docstrings
"G004", # logging f-string
]

[tool.ruff.lint.isort]
known-first-party = ["src"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["S101"] # assert used
"__init__.py" = [
"F401" # unused import
]
"tests/*" = [
"S101" # assert used
]

[tool.setuptools.package-data]
superpathlib = ["py.typed"]

0 comments on commit 275c0a8

Please sign in to comment.