Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit ec07c2a

Browse files
committed
Add coverage support and pytest-flake8 integration
1 parent adf3a5c commit ec07c2a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pytest.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[pytest]
2-
addopts = --doctest-modules everywhere tests
2+
addopts = --flake8 -v --cov everywhere --cov-report html --cov-report term --doctest-modules everywhere tests
3+
flake8-ignore =
4+
everywhere/__init__.py F401
5+
6+
# F401 - module imported but unused

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
author_email='[email protected]',
1515
description=('A template project for Python'),
1616
license='BSD',
17-
setup_requires=['pytest-runner', 'flake8', 'mypy-lang'],
17+
setup_requires=['pytest-runner',
18+
'coverage', 'pytest-cov',
19+
'flake8', 'pytest-flake8',
20+
'mypy-lang'],
1821
tests_require=['pytest'],
1922
install_requires=requires,
2023
packages=find_packages(exclude=exclude_from_packages),

0 commit comments

Comments
 (0)