-
Notifications
You must be signed in to change notification settings - Fork 553
/
setup.cfg
85 lines (74 loc) · 3 KB
/
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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# All configuration for plugins and other utils is defined here.
# Read more about `setup.cfg`:
# https://docs.python.org/3/distutils/configfile.html
# === Linter configuration ===
# You can reuse this configuration in your own projects.
# See: https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/nitpick.html
[flake8]
# Base flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
format = wemake
show-source = True
statistics = False
doctests = True
# Plugins:
max-complexity = 6
max-line-length = 100
# Self settings:
max-imports = 17
# Excluding some directories:
exclude =
.git
__pycache__
.venv
.eggs
*.egg
dist
# Exclude some checks globally:
ignore = B001, C901, D100, D101, D102, D103, D104, D107, D205, D400, E221, E241,
E251, E266, E271, E272, E722, F403, F405, I004, N802, N803, N806, P101,
Q000, W503, W504, WPS110, WPS111, WPS112, WPS122, WPS202, WPS204, WPS210,
WPS212, WPS213, WPS214, WPS220, WPS221, WPS222, WPS223, WPS226, WPS229,
WPS231, WPS232, WPS301, WPS323, WPS336, WPS337, WPS338, WPS341, WPS347,
WPS412, WPS420, WPS421, WPS430, WPS432, WPS433, WPS440, WPS504, WPS514,
WPS515, WPS602, WPS605
per-file-ignores =
ROPgadget.py: WPS102
ropgadget/__init__.py: F401
ropgadget/args.py: E501, WPS317, WPS318
ropgadget/binary.py: E501
ropgadget/core.py: E501, I001, S110, WPS125, WPS503, WPS513, WPS609
ropgadget/gadgets.py: C812, E126, E261, E501, E800, WPS318, WPS319, WPS513
ropgadget/loaders/__init__.py: F401
ropgadget/loaders/elf.py: E126, E203, E222, E501, E701, N801, WPS114,
WPS115, WPS120, WPS318, WPS339
ropgadget/loaders/macho.py: E126, E203, E222, E501, N801, WPS114, WPS115,
WPS120, WPS318, WPS339, WPS349
ropgadget/loaders/pe.py: E126, E203, E222, E501, N801, WPS114, WPS115,
WPS120, WPS318, WPS339, WPS349
ropgadget/loaders/raw.py: E126, E222, E501, WPS318
ropgadget/loaders/universal.py: E126, E501, N801, WPS114, WPS115, WPS120,
WPS318, WPS328, WPS339, WPS519
ropgadget/options.py: E501, S110
ropgadget/ropchain/__init__.py: F401
ropgadget/ropchain/arch/__init__.py: F401
ropgadget/ropchain/arch/ropmakerx64.py: E501, S112, W605, WPS211, WPS327,
WPS503
ropgadget/ropchain/arch/ropmakerx86.py: E501, S112, W605, WPS211, WPS327,
WPS503
ropgadget/ropchain/ropmaker.py: E501, N400
ropgadget/updateAlert.py: E501, I001, I003, S309, W605, WPS102, WPS301
setup.py: E501
[isort]
# isort configuration:
# https://github.com/timothycrosley/isort/wiki/isort-Settings
include_trailing_comma = true
use_parentheses = true
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
# Is the same as 80 in flake8:
line_length = 100
[darglint]
# darglint configuration:
# https://github.com/terrencepreilly/darglint
strictness = long