Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#20)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.1](tox-dev/pyproject-fmt@1.8.0...2.1.1)
- [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](astral-sh/ruff-pre-commit@v0.4.3...v0.4.4)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 20, 2024
1 parent 838afd6 commit cc56434
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
rev: "2.1.1"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
73 changes: 46 additions & 27 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,55 +29,67 @@ 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]

[tool.ruff]
output-format = "full"
show-fixes = true

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

[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 cc56434

Please sign in to comment.