-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from Borda/refactor/pyptoject.toml
refactor: migrate `setup.cfg` to `pyproject.toml`
- Loading branch information
Showing
8 changed files
with
67 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,4 +97,4 @@ jobs: | |
python -m pip install -e . | ||
- name: Tests | ||
run: pytest | ||
run: pytest tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,62 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools >= 40.0", | ||
"setuptools>=40", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.check-manifest] | ||
ignore = [".pre-commit-config.yaml"] | ||
|
||
[project] | ||
name = "pytest-rerunfailures" | ||
version = "13.1.dev0" | ||
description = "pytest plugin to re-run tests to eliminate flaky failures" | ||
dynamic = [ | ||
"readme", | ||
] | ||
keywords = [ | ||
"failures", | ||
"flaky", | ||
"pytest", | ||
"pytest", | ||
"rerun", | ||
] | ||
license = {text = "Mozilla Public License 2.0 (MPL 2.0)"} | ||
authors = [{name = "Leah Klearman", email = "[email protected]"}] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Pytest", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Software Development :: Quality Assurance", | ||
"Topic :: Software Development :: Testing", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [ | ||
"packaging>=17.1", | ||
"pytest>=7", | ||
] | ||
urls = {Homepage = "https://github.com/pytest-dev/pytest-rerunfailures"} | ||
|
||
[tool.setuptools.dynamic] | ||
readme = {file = ["HEADER.rst", "README.rst", "CHANGES.rst"]} | ||
|
||
[project.entry-points.pytest11] | ||
rerunfailures = "pytest_rerunfailures" | ||
[tool.ruff] | ||
fix = true | ||
# todo: drop when migrated project metadata from setup.cfg | ||
target-version = "py38" | ||
lint.select = [ | ||
"E", # https://pypi.org/project/pyflakes/ | ||
"W", # https://pypi.org/project/pycodestyle/ | ||
|
@@ -19,6 +66,9 @@ lint.select = [ | |
"UP", # https://pypi.org/project/upgrade-checker/ | ||
] | ||
|
||
[tool.ruff.lint.isort] | ||
known-first-party = ["pytest_rerunfailures"] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"test_*.py" = ["S101", "S311"] | ||
|
||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters