-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathruff.toml
More file actions
34 lines (28 loc) · 951 Bytes
/
ruff.toml
File metadata and controls
34 lines (28 loc) · 951 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
34
target-version="py312"
# Rule selection.
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
]
# Ignore specific directories
exclude = [
"python-gurobi-price-optimization",
"python-wf-databricks/hello-world-nextmv-app.ipynb",
"python-wf-databricks-ml-gurobi-price-optimization/avocado-price-optimizer.ipynb",
"python-wf-databricks-ml-gurobi-price-optimization/avocado-ml-regressor.ipynb"
]
# Rule configuration.
line-length = 120
# Allow generous cyclomatic complexity for examples.
lint.mccabe.max-complexity = 25
[lint.per-file-ignores]
# Set a different max complexity for a specific file
"python-ortools-shiftassignment/main.py" = ["C901"]
"python-gurobi-knapsack/main.ipynb" = ["I001"]
"python-highs-knapsack/main.ipynb" = ["I001"]
"python-nextroute/main.ipynb" = ["I001"]