Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with simplified .coveragerc #43

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ linux_mac_task:
- name: test (Linux - 3.9)
container: {image: "python:3.9-buster"}
- name: test (Linux - 3.10)
allow_failures: true # Some packages (e.g. Sphinx) might still have some problems
container: {image: "python:3.10-buster"}
- name: test (Linux - 3.11)
allow_failures: true # Some packages (e.g. Sphinx) might still have some problems
container: {image: "python:3.11-rc-buster"}
- name: test (Linux - Anaconda)
container: {image: "continuumio/anaconda3:2021.05"}
env:
Expand Down Expand Up @@ -183,15 +185,16 @@ windows_task:


coverage_task:
name: coverage (Linux - 3.6)
name: coverage (Linux - 3.8)
clone_script: *clone
container: {image: "python:3.6-buster"}
container: {image: "python:3.8-buster"}
env:
COVERAGE: yes
depends_on:
- test (Linux - 3.6)
- test (Linux - 3.7)
- test (Linux - 3.8)
- test (Linux - 3.9)
- test (Linux - 3.10)
- test (Linux - Anaconda)
- test (OS X)
pip_install_script:
Expand Down
20 changes: 1 addition & 19 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
# .coveragerc to control coverage.py
[run]
branch = True
source = markdown
source = pyscaffoldext.markdown
# omit = bad_file.py

[paths]
source =
src/
*/site-packages/

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pyscaffold.cli =
# CAUTION: --cov flags may prohibit setting breakpoints while debugging.
# Comment those flags to avoid this py.test issue.
addopts =
--cov pyscaffoldext.markdown --cov-report term-missing
--cov --cov-report term-missing
--verbose
norecursedirs =
dist
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[tox]
minversion = 3.15
envlist = default
isolated_build = True


[testenv]
Expand Down