Skip to content

Commit 2f3b993

Browse files
committed
chore: move pytest and mypy config into pyproject
1 parent f5c76b4 commit 2f3b993

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
uv run flake8 vistopia tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4040
- name: Test with pytest
4141
run: |
42-
uv run pytest --cov=vistopia --cov-report=xml
42+
uv run pytest
4343
- name: Type check with mypy
4444
run: |
45-
uv run mypy .
45+
uv run mypy
4646
- uses: codecov/codecov-action@v4
4747
with:
4848
token: ${{ secrets.CODECOV_TOKEN }}

mypy.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ include = ["vistopia"]
3030

3131
[tool.setuptools.dynamic]
3232
version = {attr = "vistopia.__version__"}
33+
34+
[tool.pytest.ini_options]
35+
addopts = "--cov vistopia --doctest-modules --cov-report=xml --cov-report=term"
36+
37+
[tool.mypy]
38+
files = ["vistopia", "tests"]
39+
check_untyped_defs = true
40+
show_error_codes = true

pytest.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)