File tree Expand file tree Collapse file tree 3 files changed +50
-23
lines changed Expand file tree Collapse file tree 3 files changed +50
-23
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ packages =
21
21
libmodernize.fixes
22
22
py_modules = modernize
23
23
zip_safe = False
24
- tests_require = nose
25
24
python_requires = ~=3.6
26
25
install_requires = fissix
27
26
@@ -33,6 +32,10 @@ console_scripts =
33
32
[options.extras_require]
34
33
docs =
35
34
sphinx~=3.2
35
+ test =
36
+ pytest
37
+ pytest-cov
38
+ coverage>=5.3
36
39
37
40
[bdist_wheel]
38
41
universal = 1
@@ -46,3 +49,48 @@ extend-ignore =
46
49
[isort]
47
50
profile = black
48
51
add_imports =from __future__ import generator_stop
52
+
53
+ [tool:pytest]
54
+ addopts =
55
+ --strict-config
56
+ --strict-markers
57
+ --cov
58
+ --cov-report =term-missing:skip-covered
59
+ xfail_strict = True
60
+ junit_family = xunit2
61
+ filterwarnings =
62
+ error
63
+
64
+ [coverage:run]
65
+ branch = True
66
+ source_pkgs =
67
+ modernize
68
+ libmodernize
69
+ source =
70
+ tests
71
+
72
+ [coverage:paths]
73
+ source =
74
+ .
75
+ .tox/*/lib/*/site-packages/
76
+ .tox\\*\\Lib\\site-packages\\
77
+
78
+ [tox:tox]
79
+ envlist =
80
+ py{36,37,38},lint
81
+
82
+ [testenv]
83
+ extras = test
84
+ commands = pytest {posargs}
85
+
86
+ [testenv:coveralls]
87
+ passenv = GITHUB_*
88
+ deps =
89
+ coveralls
90
+ coverage>=5.3
91
+ commands = coveralls
92
+
93
+ [testenv:lint]
94
+ deps = pre-commit
95
+ commands = pre-commit run --all-files --show-diff-on-failure {posargs}
96
+ skip_install = true
Original file line number Diff line number Diff line change 13
13
raise Exception ("couldn't find version number" )
14
14
version = version_match .group (1 )
15
15
16
- setup (version = version , test_suite = "nose.collector" )
16
+ setup (version = version )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments