Skip to content

Commit

Permalink
Ändern workflow build w/coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dornech committed Nov 18, 2024
1 parent 8452002 commit 1066b82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
hatch run lint:all
- name: Run Tests
run: |
hatch run test:pytest
hatch run test:cov
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ repos:

# Ruff replaces black, flake8, autoflake, isort and more
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.5.7' # make sure this is always consistent with hatch configs
rev: 'v0.7.4' # make sure this is always consistent with hatch configs
hooks:
- id: ruff
- id: ruff-format
args: [--check, --config, ./pyproject.toml]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.1' # make sure this is always consistent with hatch configs
rev: 'v1.13.0' # make sure this is always consistent with hatch configs
hooks:
- id: mypy
args: ["--install-types", "--non-interactive"]
Expand Down
12 changes: 4 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ addopts = "-ra -q --doctest-glob='*.md'"
testpaths = [
"tests",
]
log_cli = true
log_cli_level = "INFO"
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"

[tool.coverage.run]
branch = true
Expand Down Expand Up @@ -285,8 +281,8 @@ build-check = [
[tool.hatch.envs.lint]
template = "lint" # don't inherit from default!
dependencies = [
"mypy==1.11.1",
"ruff==0.5.7",
"mypy==1.13.0",
"ruff==0.7.4",
]
[tool.hatch.envs.lint.scripts]
typing = [
Expand All @@ -309,6 +305,6 @@ all = [
]

# Test matrix for various Python versions replacing the functionality of tox
[[tool.hatch.envs.py-test.matrix]]
[[tool.hatch.envs.test.matrix]]
template = ["test"]
python = ["39", "310", "311", "312"]
python = ["39", "310", "311", "312", "313"]

0 comments on commit 1066b82

Please sign in to comment.