File tree Expand file tree Collapse file tree 6 files changed +12
-17
lines changed Expand file tree Collapse file tree 6 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 3
3
max-line-length = 88
4
4
5
5
extend-ignore =
6
- D107, # Missing docstring in __init__
6
+ # Missing docstring in __init__
7
+ D107
7
8
8
- per-file-ignores =
9
+ per-file-ignores =
9
10
# TODO: Incrementally add missing docstrings
10
11
# D100 Missing docstring in public module
11
12
# D101 Missing docstring in public class
Original file line number Diff line number Diff line change 52
52
- name : Run type-checking
53
53
run : python -m tox -e types
54
54
- name : Run tests
55
- run : python -m tox -e py -- --cov-report xml
56
- - uses : codecov/codecov-action@v1
57
- if : github.event_name != 'schedule'
58
- with :
59
- file : ./coverage.xml
60
- name : ${{ matrix.python-version }} - ${{ matrix.platform }}
61
- fail_ci_if_error : true
55
+ run : python -m tox -e py
62
56
63
57
# Because the tests can be flaky, they shouldn't be required for merge, but
64
58
# it's still helpful to run them on PRs. See:
Original file line number Diff line number Diff line change 10
10
.. image :: https://img.shields.io/github/workflow/status/pypa/twine/Main
11
11
:target: https://github.com/pypa/twine/actions
12
12
13
- .. image :: https://img.shields.io/codecov/c/github/pypa/twine
14
- :target: https://codecov.io/gh/pypa/twine
15
-
16
13
twine
17
14
=====
18
15
Original file line number Diff line number Diff line change @@ -6,5 +6,4 @@ filterwarnings=
6
6
ignore:the imp module is deprecated::setuptools
7
7
8
8
addopts =
9
- --cov =twine --cov-context =test --cov-report =
10
9
--disable-socket
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ def configure_output():
20
20
"""
21
21
rich .reconfigure (
22
22
no_color = True ,
23
+ color_system = None ,
24
+ emoji = False ,
25
+ highlight = False ,
23
26
width = 500 ,
24
27
)
25
28
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ isolated_build = True
7
7
deps =
8
8
pretend
9
9
pytest
10
- pytest-cov
11
10
pytest-socket
12
11
build
12
+ coverage
13
13
passenv =
14
14
PYTEST_ADDOPTS
15
15
commands =
16
- pytest --ignore-glob ' *integration*.py' {posargs:--cov-report term-missing --cov-report html}
16
+ python -m coverage run -m pytest --ignore-glob ' *integration*.py'
17
+ python -m coverage html --show-contexts
18
+ python -m coverage report -m --fail-under 97
17
19
18
20
[testenv:integration]
19
21
deps =
26
28
passenv =
27
29
PYTEST_ADDOPTS
28
30
commands =
29
- # Skipping coverage because that should be handled by the other tests
30
- pytest -r aR --no-cov tests/test_integration.py
31
+ pytest -r aR tests/test_integration.py
31
32
32
33
[testenv:docs]
33
34
deps =
You can’t perform that action at this time.
0 commit comments