Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#66)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Philipp A. <flying-sheep@web.de>
  • Loading branch information
pre-commit-ci[bot] and flying-sheep authored Dec 10, 2024
1 parent 3d6b52c commit 0c452f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
PYTEST_ADDOPTS: "-v --color=yes"
FORCE_COLOR: "1"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.8.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ optional-dependencies.test = [
"coverage",
"coverage-rich",
"pytest",
"typer<0.14", # https://github.com/WaylonWalker/coverage-rich/issues/4
]
urls.Source = "https://github.com/flying-sheep/legacy-api-wrap"

Expand All @@ -36,11 +37,13 @@ source = "vcs"
[tool.hatch.build.targets.wheel]
packages = [ "src/legacy_api_wrap", "src/testing/legacy_api_wrap" ]

[tool.hatch.envs.test]
[tool.hatch.envs.hatch-test]
default-args = [ ]
features = [ "test" ]
[tool.hatch.envs.test.scripts]
run = "pytest {args}"
cov = "coverage run -m pytest {args} && coverage-rich report && coverage html"
scripts.run = "pytest{env:HATCH_TEST_ARGS:} {args}"
scripts.run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
scripts.cov-combine = "coverage combine"
scripts.cov-report = "coverage-rich report"
[[tool.hatch.envs.test.matrix]]
python = [ "3.8", "3.9", "3.10", "3.11" ]

Expand Down

0 comments on commit 0c452f0

Please # to comment.