-
-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathruff.toml
More file actions
32 lines (28 loc) · 900 Bytes
/
Copy pathruff.toml
File metadata and controls
32 lines (28 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# See the default values at: https://docs.astral.sh/ruff/configuration/
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".ruff_cache",
".vscode",
"__pypackages__",
"site-packages",
# Custom QFieldCloud dirs to ignore.
"**/docker-qgis/libqfieldsync/",
"**/docker-qgis/qfieldcloud-sdk-python/",
]
# Support Python 3.10+.
target-version = "py310"
[lint]
extend-select = [
"I", # isort
"B006", # Mutable argument default
"BLE001", # Checks for except clauses that catch all exceptions, see https://docs.astral.sh/ruff/rules/blind-except/
"UP035", # Checks for uses of deprecated imports based on the minimum supported Python version, see https://docs.astral.sh/ruff/rules/deprecated-import/
]
ignore = []
[lint.mccabe]
max-complexity = 30