-
Notifications
You must be signed in to change notification settings - Fork 202
/
.flake8
68 lines (67 loc) · 2.27 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
# This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2019-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
[flake8]
show-source = true
statistics = true
max-line-length = 88
ignore =
# not clear whether f"{s!r}" is better than "'{s}'" and suggestion is invalid for non-string objects
B028,
# temporarily disabled for historic reasons: line length, naming
E501,N801,N802,N803,N806,N815,
# the risk of class attributes shadowing builtins is quite small
# https://github.com/gforcada/flake8-builtins/issues/22#issuecomment-378755804
A003,
# warnings about mutable default values trigger too often
B006,
# flags complex expressions, but too many
ECE001,
# do not match Black output
E203,W503,
# followup warning from another one (F403 for star imports)
F405,
# we have no isort config
I,
# "... if .. else ..." is fine
IF100,
# https://github.com/globality-corp/flake8-logging-format/issues/49
G004,
# logging messages of exceptions is not problematic
G200,
# using a result variable instead of early return allows later addition of logic
R504,
# elif/else after return/raise/continue/break is not necessary but can be easier to read
R505,R506,R507,R508,
# no warnings about assert
B011, S101,
# no warnings about pickle,
S301,S403,
# no warnings about XML parsing
S318,S320,S405,S408,S410,
# no warnings about all uses of subprocess
S404,S603,S607,
# several scripts use print() for their output, so allow it
T001,T201,
# only relevant if pytest is used
PT,T003
per-file-ignores =
# references to /tmp are for other reasons
benchexec/containerexecutor.py:S108
# wildcard imports significantly shorten test code,
# accessing /tmp is ok
benchexec/test*.py:F405,S108
# Tool-info modules are not garbage-collected anyway, caching is ok
benchexec/tools/*.py:B019
# should be refactored completely first (everything in functions)
contrib/create_yaml_files.py:B023
exclude =
# code copied by build system
build,
# Created locally by IDE plugins
.ropeproject,
# scripts from JS modules
node_modules,