-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.cfg
130 lines (110 loc) · 2.28 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
[bumpversion]
current_version = 3.0.3
commit = True
tag = False
message = '{current_version} → {new_version}'
[aliases]
test = pytest
[check-manifest]
ignore =
.travis.yml
.github
.github/*
[bumpversion:file:setup.py]
search = 'fallback_version': '{current_version}'
replace = 'fallback_version': '{new_version}'
[bumpversion:file:pyproject.toml]
search = fallback_version = '{current_version}'
replace = fallback_version = '{new_version}'
[bumpversion:file:README.rst]
search = v{current_version}
replace = v{new_version}
[bumpversion:file:src/pygaps/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'
[bumpversion:file:conda_recipe/meta.yaml]
search = version = release = '{current_version}'
replace = version = release = '{new_version}'
[tool:pytest]
testpaths =
tests
norecursedirs =
.git
.tox
.env
dist
build
migrations
python_files =
test_*.py
*_test.py
tests.py
addopts =
-ra
--ignore=docs/conf.py
--ignore=setup.py
--ignore=ci
--ignore=examples
--ignore=.eggs
--doctest-modules
--doctest-glob=\*.rst
--tb=short
markers =
core: core pygaps python functionality.
characterisation: characterisation tests on isotherms.
modelling: model generation from isotherms.
graphing: plotting functionality testing.
parsing: parsing functionality testing.
okay: custom emtpy marker.
filterwarnings =
ignore::UserWarning
[coverage]
show_missing = true
precision = 2
omit = *migrations*
[coverage:paths]
source =
src
*/site-packages
[coverage:run]
branch = False
source =
src
omit =
*/tests/*
parallel = true
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self\.debug
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
[pylint]
extension-pkg-whitelist = numpy, pandas, matplotlib
[flake8]
ignore =
E402,
W503,
W504,
E126
max-line-length = 140
exclude = .tox,.eggs,ci/templates,build,dist
[pydocstyle]
convention = numpy
match-dir = 'src\/.*'
[yapf]
based_on_style = pep8
dedent_closing_brackets = true
coalesce_brackets = true
split_complex_comprehension = true
split_before_dot = true
[tool:isort]
force_single_line = True
line_length = 120
known_first_party = pygaps
default_section = THIRDPARTY
forced_separate = test_pygaps
skip = .tox,.eggs,ci/templates,build,dist