Skip to content

Commit 244aa03

Browse files
committed
chore: Update ruff and linter.yaml
1 parent 0e66e1f commit 244aa03

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/linter.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ jobs:
6464
VALIDATE_GIT_COMMITLINT: false
6565
PYTHON_MYPY_CONFIG_FILE: .mypy.ini
6666
FILTER_REGEX_INCLUDE: "^src/**"
67+
PYTHON_RUFF_CONFIG_FILE: .ruff.toml

.ruff.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ ignore = [
1818
"FBT002",
1919
"D203",
2020
"D213",
21-
"ANN001",
22-
"ANN201",
23-
"ANN204",
2421
"D100", # Ignore Missing docstring in public module (often desired at top level __init__.py)
25-
"D102", # Ignore return type annotation in public method
2622
"D104", # Ignore Missing docstring in public package (often desired at top level __init__.py)
2723
"D107", # Ignore Missing docstring in __init__ (use class docstring)
2824
"TD002", # Ignore Missing author in TODOs (often not required)
@@ -116,7 +112,7 @@ docstring-quotes = "double"
116112
inline-quotes = "single"
117113

118114
[lint.per-file-ignores]
119-
"__init__.py" = ["F401"] # Ignore unused imports in __init__.py
115+
"__init__.py" = ["F401", "D", "ANN"] # Ignore unused imports in __init__.py
120116
"*_test.py" = ["D", "ANN"] # Ignore docstring and annotation issues in test files
121117
"test_*.py" = ["D", "ANN"] # Ignore docstring and annotation issues in test files
122118
"types.py" = ["D", "E501", "N815"] # Ignore docstring and annotation issues in types.py

0 commit comments

Comments
 (0)