mirror of
https://github.com/bics-rug/felice-models.git
synced 2026-03-10 05:06:02 +01:00
Initial commit
Co-authored-by: Aradhana Dube <a.dube@rug.nl> Co-authored-by: Renzo I. Barraza Altamirano <r.i.barraza.altamirano@rug.nl> Co-authored-by: Paolo Gibertini <p.gibertini@rug.nl> Co-authored-by: Luca D. Fehlings <l.d.fehlings@rug.nl>
This commit is contained in:
42
tox.ini
Normal file
42
tox.ini
Normal file
@@ -0,0 +1,42 @@
|
||||
[tox]
|
||||
requires =
|
||||
tox>=4.33.0
|
||||
tox-uv>=1.29.0
|
||||
env_list = type, lint, 3.14, 3.13, 3.12, 3.11
|
||||
|
||||
[testenv]
|
||||
description = Run test under {base_python}
|
||||
deps =
|
||||
pytest>=9.0.2
|
||||
pytest-sugar>=1.1.1
|
||||
commands =
|
||||
uv pip install .[local]
|
||||
pytest {posargs:tests}
|
||||
|
||||
[testenv:lint]
|
||||
description = Run linters
|
||||
skip_install = true
|
||||
deps =
|
||||
ruff>=0.14.9
|
||||
commands =
|
||||
ruff check {posargs:src tests scripts}
|
||||
ruff format --check {posargs:src tests scripts}
|
||||
|
||||
[testenv:format]
|
||||
description = Run code formatting
|
||||
skip_install = true
|
||||
deps =
|
||||
ruff>=0.14.9
|
||||
commands =
|
||||
ruff check --fix {posargs:src tests scripts}
|
||||
ruff check --select I --fix {posargs:src tests scripts}
|
||||
ruff format {posargs:src tests scripts}
|
||||
|
||||
[testenv:type]
|
||||
description = run type checker
|
||||
deps =
|
||||
mypy>=1.19.1
|
||||
commands =
|
||||
uv pip install .[local]
|
||||
uv pip install pandas-stubs types-tqdm
|
||||
mypy {posargs:src tests scripts}
|
||||
Reference in New Issue
Block a user