Skip to content

Commit

Permalink
Moved coverage configuration into pyproject.toml and sorted requireme…
Browse files Browse the repository at this point in the history
…nts.txt and requirements-dev.txt plus made sure coverage can read toml
  • Loading branch information
Sigurd-Borge committed Sep 25, 2024
1 parent 2ed8bc1 commit ed510a5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Test
run: |
pytest --cov src --cov-report xml tests/antares
pytest --cov-config=pyproject.toml --cov src --cov-report xml tests/antares
- name: Archive code coverage results
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ section-order = [

[tool.ruff.lint.isort.sections]
testing = ["pytest*", "*mock*"]

[tool.coverage.run]
relative_files = true
7 changes: 5 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
-r requirements.txt
coverage[toml]~=7.6.1
mypy~=1.10.0
ruff~=0.4.7
pytest-cov~=5.0.0
requests-mock~=1.12.1
types-requests~=2.31.0
ruff~=0.4.7
setuptools~=75.1.0
setuptools-scm[toml]~=8.1.0
tox~=4.18.1
tox-uv~=1.11.3
types-requests~=2.31.0
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
absl-py~=1.4.0
click~=8.1.7
configparser~=5.0.2
numpy~=1.26.4
protobuf~=4.23.3
requests~=2.31.0
pandas~=2.2.2
pandas-stubs~=2.2.2
protobuf~=4.23.3
pydantic~=2.7.1
pytest~=7.2.1
python-dateutil~=2.9.0
pydantic~=2.7.1
configparser~=5.0.2
click~=8.1.7
requests~=2.31.0

0 comments on commit ed510a5

Please sign in to comment.