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).

Allows for easier exclusion by downstream integrators. Ref #138
  • Loading branch information
jaraco committed Aug 8, 2024
1 parent ab34814 commit de0eba1
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
]

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

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

cover = [
"pytest-cov",
]

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
cover
type
check
enabler

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

0 comments on commit de0eba1

Please sign in to comment.