|
| 1 | +[flake8] |
| 2 | +max-line-length = 120 |
| 3 | + |
| 4 | +# Formatting rules ignored due to black compatibility and style preferences |
| 5 | +# E203: whitespace before ':' - conflicts with black |
| 6 | +# W503/W504: line break before/after binary operator - style preference, black handles |
| 7 | +# E131: continuation line unaligned - black handles |
| 8 | +# E225/E226: missing whitespace around operators - black handles |
| 9 | +# E303: too many blank lines - black handles |
| 10 | + |
| 11 | +# Documentation rules ignored for practical reasons |
| 12 | +# D100: missing module docstring - not critical for all modules |
| 13 | +# D104: missing package docstring - __init__.py files don't need docs |
| 14 | +# D105: missing magic method docstring - rarely needed |
| 15 | +# D107: missing __init__ docstring - simple constructors don't need docs |
| 16 | +# D200/D202/D205: docstring formatting - cosmetic issues |
| 17 | +# D400/D401/D402: docstring grammar/style - not critical |
| 18 | + |
| 19 | +# Bugbear rules ignored for specific architectural reasons |
| 20 | +# B010: setattr with constants - sometimes needed for dynamic access |
| 21 | +# B017: pytest.raises without match - not always necessary |
| 22 | + |
| 23 | +# Comprehension optimizations ignored as minor |
| 24 | +# C416/C420: unnecessary comprehensions - minor performance gains |
| 25 | + |
| 26 | +extend-ignore = E203,W503,E501,D100,D104,D105,D107,D200,D202,D205,D400,D401,D402,B010,B017,C416,C420,E131,E225,E226,E303,W504 |
| 27 | + |
| 28 | +select = F821,F841,F403,F405,E721,E722,B001,B006,B007,B009,B011,B023,F541,F811,F822,D101,D102,D103,E402,B004,B014,B019,B024,B027 |
| 29 | +exclude = |
| 30 | + .git, |
| 31 | + __pycache__, |
| 32 | + .venv, |
| 33 | + test-env, |
| 34 | + build, |
| 35 | + dist, |
| 36 | + *.egg-info, |
| 37 | + .tox, |
| 38 | + .coverage, |
| 39 | + .coverage.*, |
| 40 | + .cache, |
| 41 | + nosetests.xml, |
| 42 | + coverage.xml, |
| 43 | + *.cover, |
| 44 | + *.log, |
| 45 | + .mypy_cache, |
| 46 | + .pytest_cache, |
| 47 | + src/infrastructure/registry/enhanced_provider_registry_example.py, |
| 48 | + src/infrastructure/registry/enhanced_storage_registry_example.py |
| 49 | +per-file-ignores = |
| 50 | + # Test files - relaxed documentation and import rules |
| 51 | + tests/*:F821,F841,D101,D102,D103,E402 |
| 52 | + |
| 53 | + # Complex integration test with legitimate function-in-loop patterns |
| 54 | + tests/integration/test_advanced_edge_cases.py:B023 |
| 55 | + |
| 56 | + # Abstract base classes with abstract methods in subclasses |
| 57 | + src/application/base/handlers.py:B024 |
| 58 | + src/infrastructure/registry/base_registry.py:B024 |
| 59 | + src/infrastructure/registry/enhanced_base_registry.py:B024 |
| 60 | + |
| 61 | + # Performance-critical singleton with intentional lru_cache |
| 62 | + src/infrastructure/error/exception_handler.py:B019 |
| 63 | + |
| 64 | + # Intentional specific exception handling for dynamic imports |
| 65 | + src/infrastructure/di/command_handler_services.py:B014 |
| 66 | + src/infrastructure/di/provider_services.py:B014 |
| 67 | + |
| 68 | + # Entry point with necessary path manipulation before imports |
| 69 | + src/run.py:E402 |
| 70 | + |
| 71 | + # Module files with star imports for convenience |
| 72 | + __init__.py:F401,F403,F405,F821 |
| 73 | + src/infrastructure/utilities/common/file_utils.py:F403,F405,F821 |
| 74 | + src/infrastructure/utilities/common/collections/__init__.py:F403,F405,F821 |
| 75 | + src/providers/aws/domain/machine/value_objects.py:F403,F405,F821 |
| 76 | + src/providers/aws/domain/request/value_objects.py:F403,F405,F821 |
| 77 | + src/providers/aws/exceptions/__init__.py:F403,F405,F821 |
| 78 | + src/providers/aws/utilities/ec2/__init__.py:F403,F405,F821 |
| 79 | + src/providers/base/strategy/load_balancing_strategy.py:F403,F405,F821 |
0 commit comments