Skip to content

Commit

Permalink
Document ignore patterns for code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-hen committed Aug 30, 2022
1 parent 8a01f7b commit 477cab8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
name = 'MPh'
authors = [{name='John Hennig'}]
license = {file='license.txt'}
keywords = ['Comsol', 'multiphysics', 'physics', 'finite elements',
'computer simulation']
keywords = [
'Comsol',
'multiphysics',
'physics',
'finite elements',
'computer simulation',
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3.6',
Expand All @@ -19,7 +24,8 @@ classifiers = [
'Topic :: Scientific/Engineering :: Physics',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'License :: OSI Approved :: MIT License']
'License :: OSI Approved :: MIT License',
]
readme = 'PyPI.md'
dynamic = ['version', 'description']
requires-python = '>= 3.6'
Expand Down Expand Up @@ -95,11 +101,11 @@ testpaths = ['tests']

[tool.coverage.run]
source = ['mph/']
omit = ['mph/discovery.py']
omit = ['mph/discovery.py'] # Ignore platform-dependent discovery mechanism.
relative_files = true

[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'def location',
'def location', # Ignore platform-dependent configuration search.
]

0 comments on commit 477cab8

Please sign in to comment.