Skip to content

Commit

Permalink
Split the test dependencies into four classes (test, cover, type, che…
Browse files Browse the repository at this point in the history
…ck). (#139)
  • Loading branch information
jaraco committed Aug 12, 2024
1 parent 3841656 commit 1a27fd5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
25 changes: 20 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ Source = "https://github.com/PROJECT_PATH"
test = [
# upstream
"pytest >= 6, != 8.1.*",
"pytest-checkdocs >= 2.4",
"pytest-cov",
"pytest-mypy",
"pytest-enabler >= 2.2",
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",

# local
]

doc = [
# upstream
"sphinx >= 3.5",
Expand All @@ -47,4 +43,23 @@ doc = [
# local
]

check = [
"pytest-checkdocs >= 2.4",
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
]

cover = [
"pytest-cov",
]

enabler = [
"pytest-enabler >= 2.2",
]

type = [
"pytest-mypy",
]



[tool.setuptools_scm]
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ commands =
usedevelop = True
extras =
test
check
cover
enabler
type

[testenv:diffcov]
description = run tests and check that diff from main is covered
Expand Down

0 comments on commit 1a27fd5

Please sign in to comment.