-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
55 lines (54 loc) · 3.56 KB
/
setup.cfg
File metadata and controls
55 lines (54 loc) · 3.56 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[flake8]
max-line-length = 100
extend-exclude = .eggs,.git,.mypy_cache,.tox,.venv,build,dist,alembic/versions,__pycache__
# W292: Blank line at EOF is auto-fixed by pre-commit (ruff-format), causes commit loop
ignore = E203,EIM001,W292
enable-extensions = EIM002
max-cognitive-complexity = 15
per-file-ignores =
# Pytest conftest: F401 (star imports of fixtures are used by pytest discovery)
tests/conftest.py:F401
tests\conftest.py:F401
tests/conftest_modules/__init__.py:F401
tests\conftest_modules\__init__.py:F401
# Tests: DAR* (pytest fixtures use implicit params), E501 (long assertions),
# PF* (Pydantic models in fixtures), CCR001 (sequential/conditional by nature)
tests/*.py:DAR101,DAR201,DAR301,DAR401,E501,PF001,PF002,CCR001
tests\*.py:DAR101,DAR201,DAR301,DAR401,E501,PF001,PF002,CCR001
tests/**/*.py:DAR101,DAR201,DAR301,DAR401,E501,PF001,PF002,CCR001
tests\**\*.py:DAR101,DAR201,DAR301,DAR401,E501,PF001,PF002,CCR001
# SQLAlchemy ORM: PF* false positives — mapped_column(default=...) is SQLAlchemy syntax,
# not Pydantic Field(). flake8-pydantic incorrectly flags Mapped[] columns.
src/messagekit/infrastructure/kafka_dlq/orm_models.py:PF001,PF002,PF003
src/messagekit\infrastructure\kafka_dlq\orm_models.py:PF001,PF002,PF003
src/messagekit/infrastructure/persistence/outbox_orm.py:PF001,PF002,PF003
src/messagekit\infrastructure\persistence\outbox_orm.py:PF001,PF002,PF003
src/messagekit/infrastructure/persistence/processed_message_orm.py:PF001,PF002,PF003
src/messagekit\infrastructure\persistence\processed_message_orm.py:PF001,PF002,PF003
src/messagekit/infrastructure/persistence/orm_models/*.py:PF001,PF002,PF003
src/messagekit\infrastructure\persistence\orm_models\*.py:PF001,PF002,PF003
# Protocol class with class-level abstract declarations uses PF syntax
src/messagekit/infrastructure/pubsub/kafka/kafka_dead_letter_handler/handler_mixin.py:PF001,PF002,DAR102,DAR103
src/messagekit\infrastructure\pubsub\kafka\kafka_dead_letter_handler\handler_mixin.py:PF001,PF002,DAR102,DAR103
# DAR402: exceptions propagate through called functions (not directly raised)
src/messagekit/infrastructure/pubsub/consumer_base/consumer_consume.py:DAR402
src/messagekit\infrastructure\pubsub\consumer_base\consumer_consume.py:DAR402
# DAR103: optional parameters flagged; behaviorally correct
src/messagekit/infrastructure/pubsub/kafka/kafka_dead_letter_handler/execution.py:DAR103
src/messagekit\infrastructure\pubsub\kafka\kafka_dead_letter_handler\execution.py:DAR103
src/messagekit/infrastructure/pubsub/kafka/kafka_dead_letter_handler/handler.py:DAR102,DAR103
src/messagekit\infrastructure\pubsub\kafka\kafka_dead_letter_handler\handler.py:DAR102,DAR103
src/messagekit/infrastructure/pubsub/kafka/kafka_dead_letter_handler/helpers.py:DAR103
src/messagekit\infrastructure\pubsub\kafka\kafka_dead_letter_handler\helpers.py:DAR103
# PT011/B011/B017: chaos tests test unknown aiokafka error types after broker restart
tests/chaos/**/*.py:B017,PT011
tests\chaos\**\*.py:B017,PT011
# PT011/B017: property tests check for any validation error from multiple sources
tests/property_based/core/test_event_contract_validation.py:B017,PT011
tests\property_based\core\test_event_contract_validation.py:B017,PT011
# PT011: both None values produce same error message; exact match not worth splitting
tests/unit/infrastructure/test_consumer_helpers.py:PT011
tests\unit\infrastructure\test_consumer_helpers.py:PT011
[darglint]
docstring_style = google
strictness = short