Skip to content

Commit

Permalink
chore: add pytest-cov to monitor test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
IamGianluca committed Mar 23, 2024
1 parent 8d93dd3 commit be813ca
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ mypy:
test:
pytest

coverage:
pytest --cov=blazingai tests

static-checks:
mypy . --ignore-missing-imports --exclude build/
33 changes: 17 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,35 @@ authors = [{name= "Gianluca Rossi" , email= "gr.gianlucarossi@gmail.com" }]
license = {file = "LICENSE"}
readme = "README.md"
dependencies = [
"scipy>1.9.3",
"loguru>0.6.0",
"omegaconf>2.2.3",
"scikit-learn>1.1.3",
"timm>0.6.11",
"torchmetrics>0.10.3",
"tqdm>4.64.1",
"transformers>4.24.0",
"pandas>1.5.1",
"scipy>=1.9.3",
"loguru>=0.6.0",
"omegaconf>=2.2.3",
"scikit-learn>=1.1.3",
"timm>=0.6.11",
"torchmetrics>=0.10.3",
"tqdm>=4.64.1",
"transformers>=4.24.0",
"pandas>=1.5.1",
"lightning>=2.2.0",
"torch",
"numpy",
"datasets>2.7.1",
"sentencepiece>0.1.97",
"datasets>=2.7.1",
"sentencepiece>=0.1.97",
]

[project.optional-dependencies]
dev = [
"ruff",
"pytest",
"pytest-cov",
"ipdb",
"mypy",
"usort",
"pynvim",
"pynvim", # required for nvim lsp
]
medical = [
"pydicom>2.3.1",
"pylibjpeg>1.4.0",
"pylibjpeg-libjpeg>1.3.2",
"pylibjpeg-openjpeg>1.2.1",
"pydicom>=2.3.1",
"pylibjpeg>=1.4.0",
"pylibjpeg-libjpeg>=1.3.2",
"pylibjpeg-openjpeg>=1.2.1",
]
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ click==8.1.7
# via
# moreorless
# usort
coverage==7.4.4
# via pytest-cov
datasets==2.18.0
decorator==5.1.1
# via
Expand Down Expand Up @@ -199,6 +201,8 @@ pylibjpeg-libjpeg==2.0.2
pylibjpeg-openjpeg==2.1.1
pynvim==0.5.0
pytest==8.1.1
# via pytest-cov
pytest-cov==4.1.0
python-dateutil==2.9.0.post0
# via pandas
pytorch-lightning==2.2.1
Expand Down Expand Up @@ -252,6 +256,7 @@ toml==0.10.2
# via usort
tomli==2.0.1
# via
# coverage
# ipdb
# mypy
# pytest
Expand Down

0 comments on commit be813ca

Please sign in to comment.