Skip to content

Commit

Permalink
Remove pytest-mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianDAlessandro committed Oct 16, 2024
1 parent 5f09263 commit a54543f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-pip-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
working-directory: my_project
run: pip install .[dev]

- name: Run mypy
working-directory: my_project
run: mypy .

- name: Run tests
working-directory: my_project
run: pytest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
working-directory: my_project
run: poetry install

- name: Run mypy
working-directory: my_project
run: poetry run mypy .

- name: Run tests
working-directory: my_project
run: poetry run pytest
Expand Down
6 changes: 6 additions & 0 deletions {{ cookiecutter.project_slug }}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Run mypy
run: poetry run mypy .

- name: Run tests
run: poetry run pytest
{%- if cookiecutter.mkdocs %}
Expand All @@ -51,6 +54,9 @@ jobs:
- name: Install dependencies
run: pip install -r dev-requirements.txt

- name: Run mypy
run: mypy .

- name: Run tests
run: pytest
{%- if cookiecutter.mkdocs %}
Expand Down
25 changes: 8 additions & 17 deletions {{ cookiecutter.project_slug }}/dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# pip-compile --extra=dev --output-file=dev-requirements.txt pyproject.toml
#
attrs==24.2.0
# via pytest-mypy
build==1.2.2.post1
# via pip-tools
cfgv==3.4.0
Expand All @@ -17,17 +15,13 @@ coverage[toml]==7.6.3
distlib==0.3.9
# via virtualenv
filelock==3.16.1
# via
# pytest-mypy
# virtualenv
# via virtualenv
identify==2.6.1
# via pre-commit
iniconfig==2.0.0
# via pytest
mypy==1.11.2
# via
# datahub (pyproject.toml)
# pytest-mypy
# via my_project (pyproject.toml)
mypy-extensions==1.0.0
# via mypy
nodeenv==1.9.1
Expand All @@ -37,33 +31,30 @@ packaging==24.1
# build
# pytest
pip-tools==7.4.1
# via datahub (pyproject.toml)
# via my_project (pyproject.toml)
platformdirs==4.3.6
# via virtualenv
pluggy==1.5.0
# via pytest
pre-commit==4.0.0
# via datahub (pyproject.toml)
# via my_project (pyproject.toml)
pyproject-hooks==1.2.0
# via
# build
# pip-tools
pytest==8.3.3
# via
# datahub (pyproject.toml)
# my_project (pyproject.toml)
# pytest-cov
# pytest-mock
# pytest-mypy
pytest-cov==5.0.0
# via datahub (pyproject.toml)
# via my_project (pyproject.toml)
pytest-mock==3.14.0
# via datahub (pyproject.toml)
pytest-mypy==0.10.3
# via datahub (pyproject.toml)
# via my_project (pyproject.toml)
pyyaml==6.0.2
# via pre-commit
ruff==0.6.8
# via datahub (pyproject.toml)
# via my_project (pyproject.toml)
typing-extensions==4.12.2
# via mypy
virtualenv==20.26.6
Expand Down
5 changes: 2 additions & 3 deletions {{ cookiecutter.project_slug }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ authors = [
python = "^3.12"

[tool.poetry.group.dev.dependencies]
mypy = "VERSION"
pytest = "VERSION"
pytest-cov = "VERSION"
pytest-mypy = "VERSION"
pytest-mock = "VERSION"
pre-commit = "VERSION"
ruff = "VERSION"
Expand Down Expand Up @@ -55,7 +55,6 @@ dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mypy",
"pytest-mock",
]
{% if cookiecutter.mkdocs %}doc = [
Expand Down Expand Up @@ -89,7 +88,7 @@ module = "tests.*"
disallow_untyped_defs = false

[tool.pytest.ini_options]
addopts = "-v --mypy -p no:warnings --cov={{ cookiecutter.project_slug }} --cov-report=html --doctest-modules --ignore={{ cookiecutter.project_slug }}/__main__.py"
addopts = "-v -p no:warnings --cov={{ cookiecutter.project_slug }} --cov-report=html --doctest-modules --ignore={{ cookiecutter.project_slug }}/__main__.py"

[tool.ruff]
target-version = "py312"
Expand Down

0 comments on commit a54543f

Please sign in to comment.