-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpyproject.toml
More file actions
33 lines (29 loc) · 921 Bytes
/
pyproject.toml
File metadata and controls
33 lines (29 loc) · 921 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
33
# https://coverage.readthedocs.io/en/latest/config.html
[tool.coverage.run]
# some workarounds for source and test files being intermingled, not all using modules, etc.
source = ["examples/", "examples/flask/", "tests/"]
## ruff stuff ##
# https://docs.astral.sh/ruff/settings/
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-ignore = [
"E501", # line too long
]
# https://docs.astral.sh/ruff/rules/
extend-select = [
"B", # flake8-bugbear (common bugs)
"C90", # McCabe complexity
"E", # pycodestyle errors
"F", # Pyflakes (basic errors)
"I", # isort (import sorting)
"N", # pep8-naming
"PD", # pandas-vet
"PLR", # Pylint refactor (function/module length, complexity)
"SIM", # flake8-simplify
"UP", # pyupgrade (modern Python)
"W", # pycodestyle warnings
]
[tool.ruff.lint.per-file-ignores]
# Streamlit expects "useless expression"s
"examples/bigquery/query.py" = ["B018"]