-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
122 lines (105 loc) · 2.08 KB
/
setup.cfg
File metadata and controls
122 lines (105 loc) · 2.08 KB
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
[metadata]
name = pubpypack-harmony-sourcedelica
version = 0.0.7
description = This package does harmonious things
[options]
include_package_data = True
install_requires = termcolor>=1.1.0,<2
package_dir =
=src
packages = find:
[options.packages.find]
where = src
exclude =
test*
[options.entry_points]
console_scripts =
harmony = imppkg.harmony:main
[tool:pytest]
addopts = --cov
testpaths =
test
[coverage:run]
branch = True
source = imppkg
[coverage:report]
exclude_lines =
pragma: no cover
if __name__ == .__main__.:
fail_under = 75.0
skip_covered = True
show_missing = True
[coverage:paths]
source =
src/imppkg/
.venv/lib/python3.10/site-packages/imppkg/
[flake8]
max-line-length = 120
[tox:tox]
isolated_build = True
envlist = py310,py39
[testimports]
deps =
pytest
; This is run for each env in envlist when tox is run with no params
[testenv]
commands =
pytest {posargs}
deps =
{[testimports]deps}
pytest-cov
[testenv:weather]
skip_install = True
commands =
python -c "import requests; print(requests.get('http://wttr.in').text)"
deps =
requests
[testenv:typecheck]
deps =
{[testimports]deps}
mypy
types-termcolor
commands =
mypy {posargs:src test}
[testenv:format]
skip_install = True
deps =
black
commands =
black {posargs:--check --diff src test}
[testenv:lint]
skip_install = True
deps =
flake8
flake8-bugbear
commands =
flake8 {posargs:src test}
[testenv:docs]
deps =
sphinx
commands =
sphinx-apidoc \
--force \
--implicit-namespaces \
--module-first \
--separate \
-o docs/reference/ \
src/imppkg/ \
src/imppkg/*.c \
src/imppkg/*.so
sphinx-build -n -W --keep-going -b html docs/ docs/_build/
[testenv:devdocs]
deps =
sphinx
sphinx-autobuild
commands =
sphinx-apidoc \
--force \
--implicit-namespaces \
--module-first \
--separate \
-o docs/reference/ \
src/imppkg/ \
src/imppkg/*.c \
src/imppkg/*.so
sphinx-autobuild -n -W -b html docs/ docs/_build/