-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.cfg
executable file
·125 lines (117 loc) · 2.8 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
[metadata]
name = SiegPy
version = 0.0.1.dev
description = Siegert states with Python
long_description = file: README.md
url = https://gitlab.maisondelasimulation.fr/lgenoves/SiegPy.git
author = L_Sim @CEA Grenoble
license = MIT
keywords = siegpy, Siegert, physics, resonant states
classifiers =
Development Status :: 2 - Pre-Alpha
Intended Audience :: Science/Research
Intended Audience :: Education
Topic :: Scientific/Engineering :: Physics
Topic :: Education
License :: OSI Approved :: GNU General Public License (GPL)
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3 :: Only
[options]
packages = siegpy
install_requires =
numpy
scipy
mpmath
matplotlib
sympy
setup_requires =
setuptools >= 30.3
[options.extras_require]
test =
numpy >= 1.14 # use the new printing style for tests
pytest
pytest-cov
pytest-html
pytest-sugar
pytest-xdist
pytest-flake8
tox
doc =
sphinx
sphinx_rtd_theme
jupyter_client
ipython
ipykernel
nbsphinx
m2r
[options.package_data]
data_file =
doc/notebooks/siegerts.dat
mpl_style =
siegpy*SiegPy.mplstyle
[aliases]
test = test
[tool:pytest]
addopts =
# create an html report for code coverage
--cov-report html
# report the missing lines
--cov-report term-missing
--cov=siegpy
# perform the doctests
--doctest-modules
# maximal verbosity
-vv
# start with last failed tests and continue with all other tests
--ff
# number of tests failed before pytest stops
# --maxfail=1
# disable all capturing
-s
# create a pytest html report
--html=pytest_report.html
# runs the tests on two procs
# -n 2
# tests PEP8 compliance
--flake8
# show local
-l
[coverage:run]
omit =
setup.py
siegpy/tests/*py
[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't test the representations:
def __repr__
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
[flake8]
# Accomodate with black line length
max-line-length = 88
exclude =
doc/conf.py
htmlcov
doc
assets
__pycache__
*.egg*
.tox
.cache
.git
ignore =
F401 siegpy/__init__.py
E203 # whitespace before ':'; this accomodates with black
E226 # whitespace around operators
E741 # ambiguous variable names
W503 # linebreak before operators
W504 # linebreak after operators