Skip to content

Commit

Permalink
move pytest config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed May 24, 2024
1 parent e33653d commit cb1ffd9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,16 @@ line-length = 99
[tool.isort]
profile = "black"
line_length = 99

[tool.pytest]
norecursedirs = [".*", "*.egg*", "build", "dist", "conda.recipe"]
addopts = [
"--junitxml=junit.xml",
"--ignore setup.py",
"--ignore run_test.py",
"--cov-report term-missing",
"--tb native",
"--strict-markers",
"--durations=20",
]
markers = ["serial: execute test serially (to avoid race conditions)"]
15 changes: 0 additions & 15 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,3 @@
max-line-length = 100
ignore = E122,E123,E126,E127,E128,E731,E722
exclude = build,src/conda_package_handling/_version.py,tests,conda.recipe,.git,versioneer.py,benchmarks,.asv,rever

[tool:pytest]
norecursedirs= .* *.egg* build dist conda.recipe
addopts =
--junitxml=junit.xml
--ignore setup.py
--ignore run_test.py
--cov-report term-missing
--tb native
--strict-markers
--durations=20
env =
PYTHONHASHSEED=0
markers =
serial: execute test serially (to avoid race conditions)
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
python_requires=">=3.8",
install_requires=["conda-package-streaming >= 0.9.0"],
extras_require={
"docs": ["furo", "sphinx", "sphinx-argparse", "myst-parser", "mdit-py-plugins>=0.3.0"],
"docs": [
"furo",
"sphinx",
"sphinx-argparse",
"myst-parser",
"mdit-py-plugins>=0.3.0",
],
"test": ["mock", "pytest", "pytest-cov", "pytest-mock"],
},
)

0 comments on commit cb1ffd9

Please sign in to comment.