-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.flake8
69 lines (63 loc) · 2.07 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
66
67
68
69
[flake8]
max-line-length = 89
max-doc-length = 89
indent-size = 4
statistics = True
multiline-quotes = """
docstring-quotes = """
inline-quotes = "
# Cyclomatic complexity desactivated
# max-complexity = 15
# Ignore the unused import in __init__.py (F401)
# Asserts needed in test code (S101)
per-file-ignores = __init__.py:F401
= setup.py :E501
= tests/* :S101
= test/* :S101
= sparkle/platform/settings_objects.py :S110
= sparkle/tools/parameters.py :S110
= sparkle/types/__init__.py :S110,S307,F401
= sparkle/instance/__init__.py :N802
= sparkle/CLI/run_parallel_portfolio.py :FS001
= sparkle/configurator/implementations/__init__.py :S307,F401
docstring-convention=google
# Ignore docstring double quote error
ignore = D300 # Conflicts with docstring-quotes rule
W503 # Will soon be an anti-pattern: https://www.flake8rules.com/rules/W503.html
S605 # Flags all spawns of subprocesses, which we can't do without
S311 # Only relevant for cryptographic purposes
S607 # No way to locate bin folder beforehand
S404 # Just a warning about the usage of subprocess
S603 # Flags only false positives as of now
exclude =
sparkle/Components/ablationAnalysis-0.9.4/,
sparkle/Components/runsolver/,
sparkle/Components/smac2-v2.10.03-master-778/
sparkle/Components/irace-v4.2.0/,
Examples/Resources/CVRP/,
Examples/Resources/CCAG/,
Examples/Resources/Solvers/CSCCSat/,
Examples/Resources/Solvers/PbO-CCSAT-Generic/,
Examples/Resources/Solvers/MiniSAT/,
Examples/Resources/MinVC/,
Examples/Resources/Extractors/,
Extractors/,
Settings/,
.git,
Instances/,
Log/,
Output/,
__pycache__,
.pytest_cache,
Snapshots/,
Reference_Lists/,
scratch/,
Solvers/,
Tmp/,
build/,
dist/
# use-fstring configurations
percent-greedy=2
format-greedy=2
# enable-extensions=FS003
fstring-ignore-format=False