Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:


- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
rev: v2.4.3
hooks:
- id: codespell
args:
Expand All @@ -39,7 +39,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
rev: v0.16.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -62,12 +62,12 @@ repos:
- id: nb-strip-paths

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.25.1
rev: v2.26.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.26.1
rev: v1.28.0
hooks:
- id: zizmor

Expand Down
29 changes: 15 additions & 14 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ line-length = 80
lint.select = ["ALL"]

lint.ignore = [
"CPY001", # Missing copyright notice at top of file
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D213", # incompatible. Ignoring `multi-line-summary-second-line`
Expand All @@ -20,13 +21,13 @@ lint.ignore = [
]
"test_*.py" = [
"ANN001", # Missing type annotation for function argument
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"ANN201", # Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
"INP001", # File is part of an implicit namespace package
"PD901", # Avoid using the generic variable name `df` for DataFrames
"S101", # Use of assert detected
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
]
"ctd/extras.py" = [
"ANN001", # Missing type annotation for function argument
Expand All @@ -36,18 +37,18 @@ lint.ignore = [
# nbqa-ruff acts on converted .py so we cannot glob .ipynb :-/
# https://github.com/nbQA-dev/nbQA/issues/823
"notebooks/*" = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"B018", # Found useless expression. Either assign it to a variable or remove it
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"E402", # Module level import not at top of file
"FBT003", # Boolean positional value in function call
"INP001", # File is part of an implicit namespace package
"N816", # Variable in global scope should not be mixedCase
"PD901", # Avoid using the generic variable name `df` for DataFrames
"SLF001", # Private member accessed
"T201", # `print` found"
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"B018", # Found useless expression. Either assign it to a variable or remove it
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"E402", # Module level import not at top of file
"FBT003", # Boolean positional value in function call
"INP001", # File is part of an implicit namespace package
"N816", # Variable in global scope should not be mixedCase
"PD901", # Avoid using the generic variable name `df` for DataFrames
"SLF001", # Private member accessed
"T201", # `print` found"
]
[lint.pycodestyle]
max-doc-length = 180