-
Notifications
You must be signed in to change notification settings - Fork 1
/
.flake8
65 lines (55 loc) · 1.58 KB
/
.flake8
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
56
57
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
# =============================================================================
# Flake8 Configuration
# =============================================================================
[flake8]
# Ignore the following rules:
# - E203: Whitespace before ':' (often conflicts with Black)
# - E266: Too many leading '#' for block comments
# - E501: Line too long (handled by Black)
# - W503: Line break occurred before a binary operator (handled by Black)
# - F401: Ignore unused imports in `__init__.py` files (often used for API exposure)
ignore =
D100,
D102
D103,
D203,
E203,
E266,
D400,
D401,
E501,
W503,
F401
# Enable the following rules:
# - E731: Do not assign a lambda expression, use a def
# - F405: May be undefined, or defined from star imports
enable-extensions =
E731,
F405
# Maximum allowed McCabe complexity (useful to identify overly complex code)
max-complexity = 10
# Maximum line length allowed (often set to match Black's default)
max-line-length = 79
# Show the source code for each error
show-source = True
# Count the number of issues instead of printing them all
statistics = True
# Exclude these directories and files from being checked
exclude =
.git,
__pycache__,
build,
dist,
.venv,
.eggs,
*.egg,
*.egg-info,
.tox,
.mypy_cache,
docs/conf.py
# Specify the files to include (you can be specific or generic)
# For example: include all Python files
include = *.py
# Set this to True if you want to allow `# noqa` comments to silence flake8 warnings
enable-noqa = True