@@ -8,20 +8,20 @@ dynamic = ["version"]
88description = " Tools that update the pyOpenSci contributor and review metadata that is posted on our website"
99authors = [{
name =
" Leah Wasser" ,
email =
" [email protected] " }]
1010maintainers = [
11- {
name =
" pyOpenSci" ,
email =
" [email protected] " },
# Optional 11+ {
name =
" pyOpenSci" ,
email =
" [email protected] " },
# Optional1212]
1313classifiers = [
14- " Development Status :: 4 - Beta" ,
15- " Intended Audience :: Developers" ,
16- " Topic :: Software Development :: Build Tools" ,
14+ " Development Status :: 4 - Beta" ,
15+ " Intended Audience :: Developers" ,
16+ " Topic :: Software Development :: Build Tools" ,
1717
18- # Pick your license - we suggest MIT, BSD3 or Apache if you are corporate
19- " License :: OSI Approved :: MIT License" ,
20- # Specify the Python versions ensuring that you indicate you support Python 3.
21- # this is only for pypi and other metadata associated with your package - for your users to see
22- " Programming Language :: Python :: 3 :: Only" , # BE sure to specify that you use python 3.x
23- " Programming Language :: Python :: 3.10" ,
24- " Programming Language :: Python :: 3.11" ,
18+ # Pick your license - we suggest MIT, BSD3 or Apache if you are corporate
19+ " License :: OSI Approved :: MIT License" ,
20+ # Specify the Python versions ensuring that you indicate you support Python 3.
21+ # this is only for pypi and other metadata associated with your package - for your users to see
22+ " Programming Language :: Python :: 3 :: Only" , # BE sure to specify that you use python 3.x
23+ " Programming Language :: Python :: 3.10" ,
24+ " Programming Language :: Python :: 3.11" ,
2525]
2626dependencies = [
2727 " pydantic>=2.0" ,
@@ -56,6 +56,11 @@ update-contributors = "pyosmeta.cli.update_contributors:main"
5656update-reviews = " pyosmeta.cli.process_reviews:main"
5757update-review-teams = " pyosmeta.cli.update_review_teams:main"
5858
59+ [tool .coverage .run ]
60+ branch = true
61+ include = [" src/pyosmeta/*" ]
62+ # Don't run coverage on tests directory or version file created by scm
63+ omit = [" tests/*" , " src/pyosmeta/_version.py" ]
5964
6065# ## Hatch config ###
6166
@@ -64,15 +69,12 @@ version.source = "vcs"
6469build.hooks.vcs.version-file = " src/pyosmeta/_version.py"
6570
6671[tool .hatch .envs .test ]
67- dependencies = [
68- " pytest" ,
69- " pytest-cov" ,
70- ]
72+ dependencies = [" pytest" , " pytest-cov" , " coverage[toml]" ]
7173
7274[tool .hatch .envs .test .scripts ]
73- # run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests"
74- # run = "run-coverage --no-cov"
75- run-tests = " pytest "
75+ run-coverage = " pytest --cov-config=pyproject.toml --cov=pyosmeta --cov=tests/* "
76+ run-no-cov = " run-coverage --no-cov"
77+ run-report = " run-coverage --cov-report=xml:coverage.xml "
7678
7779
7880# ## Tool configuration ###
0 commit comments