File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Ruff configuration
2+ # https://docs.astral.sh/ruff/configuration/
3+
4+ line-length = 120
5+ target-version = " py38"
6+
7+ exclude = [
8+ " .git" ,
9+ " .venv" ,
10+ " __pycache__" ,
11+ " build" ,
12+ " dist" ,
13+ " *.egg-info" ,
14+ " *virtualenv*" ,
15+ " optimizely/lib/pymmh3.py" ,
16+ " tests/testapp/application.py" ,
17+ ]
18+
19+ [lint ]
20+ # Flake8-equivalent rules:
21+ # E, W = pycodestyle (style errors & warnings)
22+ # F = Pyflakes (logic errors, undefined names, unused imports)
23+ select = [" E" , " W" , " F" ]
24+
25+ # Match current flake8 ignores
26+ # E722 - do not use bare 'except'
27+ ignore = [" E722" ]
28+
29+ # Allow autofix for all rules
30+ fixable = [" ALL" ]
31+ unfixable = []
32+
33+ [lint .per-file-ignores ]
34+ # Ignore unused imports in __init__ files
35+ "__init__.py" = [" F401" ]
36+
37+ [lint .isort ]
38+ known-first-party = [" optimizely" ]
You can’t perform that action at this time.
0 commit comments