-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
81 lines (68 loc) · 1.86 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
[options]
zip_safe = False
include_package_data = True
package_dir=
=src
packages=find:
;scripts =
; bin/first.py
; bin/second.py
install_requires =
nox
importlib; python_version >= "3.7"
[options.packages.find]
where=src
[options.package_data]
* = *.txt, *.rst, *.csv
[tox:tox]
isolated_build = true
envlist = py38, py39, format, lint, build
[flake8]
max-line-length = 100
ignore = E122,E123,E126,E127,E128,E731,E722
exclude = build,pyimg/_version.py,tests,conda.recipe,.git,versioneer.py,benchmarks,.asv
[tool:pytest]
norecursedirs =
.git
.tox
.env
dist
build
migrations
python_files =
test_*.py
*_test.py
tests.py
addopts =
-ra
--strict-markers
--ignore=docs/conf.py
--ignore=setup.py
--ignore=ci
--ignore=.eggs
--doctest-modules
--doctest-glob=\*.rst
--tb=short
--pyargs
# The order of these options matters. testpaths comes after addopts so that
# pyimg in testpaths is interpreted as
# --pyargs pyimg.
# Any tests in the src/ directory (that is, tests installed with the package)
# can be run by any user with pytest --pyargs pyimg.
# Packages that are sensitive to the host machine, most famously NumPy,
# include tests with the installed package so that any user can check
# at any time that everything is working properly.
# If you do choose to make installable tests, this will run the installed
# tests as they are actually installed (same principle as when we ensure that
# we always test the installed version of the package).
# If you have no need for this (and your src/ directory is very large),
# you can save a few milliseconds on testing by telling pytest not to search
# the src/ directory by removing
# --pyargs and pyimg from the options here.
testpaths =
pyimg
tests/
markers =
serial: execute test serially (to avoid race conditions)
[bdist_wheel]
universal=1