-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathruff.toml
36 lines (29 loc) · 861 Bytes
/
ruff.toml
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
33
34
35
36
line-length = 120
target-version = "py37"
fix = true
# Exclude a variety of commonly ignored directories.
extend-exclude = ["__pycache__", "docs/source/conf.py"]
[lint]
extend-ignore = ["A002"]
# Enable Pyflakes `E` and `F` codes by default.
extend-select = [
"W", # pycodestyle warnings
"I", # isort
"C90", # Complexity
# "B", # flake8-bugbear
"C", # flake8-comprehensions
# "ANN", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"T10", # flake8-debugger
"A", # flake8-builtins
"UP", # pyupgrade
]
[lint.per-file-ignores]
"python-sdk/src/astro/sql/__init__.py" = ["F401"]
"python-sdk/src/astro/lineage/__init__.py" = ["F401"]
"python-sdk/src/astro/sql/table.py" = ["F401"]
[lint.mccabe]
max-complexity = 6
[lint.isort]
combine-as-imports = true
known-first-party = ["astro", "tests"]