forked from spectrochempy/spectrochempy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
136 lines (123 loc) · 2.81 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[flake8]
ignore =
# whitespace before ‘,’, ‘;’, or ‘:’
E203,
# module level import not at top of file
E402,
# line too long > 88 (compatibility with black) (To be retired when all files will be fixed)
E501,
# statement ends with a semicolon
E703,
# do not assign a lambda expression, use a def
E731,
# PermissionError: [Errno 13] Permission denied
E902,
# name may be undefined, or defined from star imports: module
F405,
# line break before binary operator
W503,
# line break after binary operator
W504,
# invalid escape sequence ‘x’
W605,
# class name should use CapWords convention
N801
# function name should be lowercase
N802,
# argument name should be lowercase
N803,
# first argument of a method should be named 'self'
N805,
# variable in function should be lowercase
N806,
# lowercase variable imported as non lowercase variable
N812,
# variable in class scope should not be mixedCase
N815,
# variable in function should be lowercase
N816
rst-roles =
class,
meth,
func,
ref,
term,
attr,
const,
cite:t
rst-directives =
plot
per-file-ignores =
docs/**/*.py:E501
# compatibility with default black line length
max-line-length = 88
max-complexity = 100
select =
C,
# All E class violations are “errors” reported by pycodestyle
E,
# All F class violations are reported by pyflakes
F,
# All W class violations are “warnings” reported by pycodestyle
W,
# Check your code against PEP 8 naming conventions.
# N8
# RST and docstring analysis (uncomment for testing with flake 8 + flake8-rst-docstrings locally,
# but comment it for committing on github as many problems cannot be solved easily.
# RST
count = True
statistics = True
exclude =
# exclude test, and some other folder for now (may be done later)
.idea
.eggs
build
~*
docs/sphinxext
# docs/userguide
*.ipynb_checkpoints
[tool:pytest]
testpaths =
"tests"
addopts =
--ignore="~*"
--doctest-plus
-p no:warnings
doctest_plus = enabled
doctest_optionflags =
ELLIPSIS
NORMALIZE_WHITESPACE
IGNORE_EXCEPTION_DETAIL
ALLOW_UNICODE
ALLOW_BYTES
;filterwarnings =
; ignore::DeprecationWarning
; ignore::UserWarning
; ignore::numpy.ComplexWarning
; ignore::FutureWarning
; ignore:invalid value encountered in .*:RuntimeWarning
[coverage:run]
source = spectrochempy/
[coverage:report]
exclude_lines =
pragma: no cover
'# '
if self.debug:
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
def __repr__
if settings.DEBUG
ignore_errors = true
omit =
*/.ci/**/*
*/tests/**/
*/docs/**/*
*/build/**/*
*/.eggs/**/*
*/scripts/**/*
*/scp_data/**/*
*/~sandbox/**/*
*/~tools/**/*
*/spectrochempy/extern/**/*