forked from securefederatedai/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
39 lines (33 loc) · 1012 Bytes
/
setup.cfg
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
[flake8]
ignore =
# Conflicts with black
E203
# Line break occurred before a binary operator. Update by W504 Line
W503
# Allow "import torch.nn.functional as F"
N812
# Line length, handled separately by max-line-length
E501
# too many leading '#' for block comments
E266
per-file-ignores =
# Unused imports in __init__.py are OK
**/__init__.py:F401
exclude =
*_pb2*,
.git,
__pycache__,
build,
dist,
.venv
max-line-length = 100
copyright-check = True
# Enable specific checks or plugins
# B: Bandit security checks (e.g., detecting insecure function use).
# C: Cyclomatic complexity, used to flag overly complex functions.
# E: PEP8 errors (e.g., style issues).
# F: Pyflakes errors, like unused imports or undefined names.
# W: PEP8 warnings (e.g., stylistic issues).
# T4: Type checking from third-party tools (like mypy).
# B9: Bugbear, for additional warnings about potentially error-prone code.
select = B,C,E,F,W,T4,B9