Skip to content

Commit 977f26a

Browse files
committed
chore: sync' ruff config
1 parent 4e5d697 commit 977f26a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ extend = "ruff_defaults.toml"
6161
[tool.ruff.lint.pep8-naming]
6262
extend-ignore-names = ["mcs", "test_*"]
6363

64+
[tool.ruff.lint.extend-per-file-ignores]
65+
# Allow f-string without an `f` prefix for our custom error formatter.
66+
"**/questionpy_sdk/webserver/question_ui/errors.py" = ["RUF027"]
67+
6468
[tool.ruff.lint.pylint]
6569
allow-dunder-method-names = ["__get_pydantic_core_schema__"]
6670

ruff_defaults.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ extend-select = [
7272
]
7373

7474
ignore = [
75+
# builtin-module-shadowing (relative module names such as 'abc' or 'types' are pretty normal)
76+
"A005",
77+
78+
# allow async functions with timeout parameter
79+
"ASYNC109",
80+
7581
# Relax on missing docstrings
7682
"D1",
7783

@@ -109,7 +115,6 @@ pydocstyle = { convention = "google" }
109115
[lint.per-file-ignores]
110116
"**/scripts/*" = ["INP001", "T201"]
111117
"**/tests/**/*" = ["PLC1901", "PLC2701", "PLR2004", "S", "TID252", "FBT"]
112-
"**/question_ui/errors.py" = ["RUF027"] # Allow f-string without an `f` prefix for our custom error formatter.
113118

114119
[lint.flake8-builtins]
115120
# help: (guess it's ok since built-in `help()` is for interactive use and no collisions are expected)

0 commit comments

Comments
 (0)