-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathruff.toml
More file actions
38 lines (31 loc) · 758 Bytes
/
ruff.toml
File metadata and controls
38 lines (31 loc) · 758 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
35
36
37
38
# Ruff configuration
# https://docs.astral.sh/ruff/configuration/
line-length = 120
target-version = "py39"
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
"*.egg-info",
"*virtualenv*",
"optimizely/lib/pymmh3.py",
"tests/testapp/application.py",
]
[lint]
# Flake8-equivalent rules:
# E, W = pycodestyle (style errors & warnings)
# F = Pyflakes (logic errors, undefined names, unused imports)
select = ["E", "W", "F"]
# Match current flake8 ignores
# E722 - do not use bare 'except'
ignore = ["E722"]
# Allow autofix for all rules
fixable = ["ALL"]
unfixable = []
[lint.per-file-ignores]
# Ignore unused imports in __init__ files
"__init__.py" = ["F401"]
[lint.isort]
known-first-party = ["optimizely"]