Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 13, 2024
1 parent eafbcc9 commit 32b5ca8
Showing 1 changed file with 45 additions and 26 deletions.
71 changes: 45 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=48",
"setuptools_scm[toml]>=6.3.1",
"setuptools-scm[toml]>=6.3.1",
]

[project]
name = "pytest-test-utils"
readme = "README.md"
license = { text = "Apache License 2.0" }
authors = [{ name = "Saugat Pachhai", email = "[email protected]" }]
authors = [
{ name = "Saugat Pachhai", email = "[email protected]" },
]
requires-python = ">=3.7"
classifiers = [
"Framework :: Pytest",
Expand All @@ -27,22 +29,20 @@ dynamic = [
dependencies = [
"pytest>=3.9",
]
[project.optional-dependencies]
dev = [
optional-dependencies.dev = [
"mypy==1.8",
"pytest-test-utils[tests]",
]
tests = [
optional-dependencies.tests = [
"coverage>=6",
]
[project.urls]
Issues = "https://github.com/iterative/pytest-test-utils/issues"
Source = "https://github.com/iterative/pytest-test-utils"
[project.entry-points.pytest11]
pytest_test_utils = "pytest_test_utils.pytest_plugin"

urls.Issues = "https://github.com/iterative/pytest-test-utils/issues"
urls.Source = "https://github.com/iterative/pytest-test-utils"
entry-points.pytest11.pytest_test_utils = "pytest_test_utils.pytest_plugin"
[tool.setuptools.package-data]
pytest_test_utils = ["py.typed"]
pytest_test_utils = [
"py.typed",
]

[tool.setuptools_scm]

Expand All @@ -51,31 +51,45 @@ output-format = "full"
show-fixes = true

[tool.ruff.lint]
ignore = ["S101"]
extend-select = ["S", "I", "B", "C4", "T10"]
ignore = [
"S101",
]
extend-select = [
"S",
"I",
"B",
"C4",
"T10",
]

[tool.codespell]
ignore-words-list = "cachable"

[tool.pytest.ini_options]
testpaths = ["tests.py"]
testpaths = [
"tests.py",
]

[tool.coverage.run]
branch = true
source = ["pytest_test_utils"]
source = [
"pytest_test_utils",
]

[tool.coverage.paths]
source = ["dvc"]
source = [
"dvc",
]

[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]
show_missing = true

Expand All @@ -91,8 +105,13 @@ strict = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
files = ["pytest_test_utils", "tests.py"]
files = [
"pytest_test_utils",
"tests.py",
]

[[tool.mypy.overrides]]
module = ["tests"]
module = [
"tests",
]
strict_equality = false

0 comments on commit 32b5ca8

Please sign in to comment.