Skip to content

Commit

Permalink
Add extra dependencies for test and typing and run mypy prior tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philpep committed Dec 19, 2023
1 parent ad97676 commit df564c1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
include:
- tox_env: check-manifest
- tox_env: lint
- tox_env: mypy
- tox_env: py39
- tox_env: py310
- tox_env: py311
Expand Down
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[mypy]
files = pdfss
show_error_codes = true

[mypy-pdfminer.*]
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ dependencies = [
"pdfminer.six",
]

[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
]
typing = [
"mypy",
]

[project.urls]
Source = "https://github.com/lowatt/pdfss"
Tracker = "https://github.com/lowatt/pdfss/issues"
Expand Down
16 changes: 5 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[tox]
isolated_build = true
envlist =
check-manifest,lint,py3,mypy
check-manifest,lint,py3

[testenv]
deps =
pytest
pytest-cov
extras =
test
typing
commands =
mypy
{envpython} -m pytest {posargs:--cov pdfss --cov-report term --cov-fail-under 88}

[testenv:lint]
Expand All @@ -34,10 +35,3 @@ deps =
check-manifest
commands =
{envpython} -m check_manifest {toxinidir}


[testenv:mypy]
deps =
mypy
commands =
{envpython} -m mypy pdfss

0 comments on commit df564c1

Please sign in to comment.