Skip to content

Commit

Permalink
Unify script/env names to equal aleph-vm conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
MHHukiewitz committed Mar 15, 2024
1 parent ec194dc commit cc9c987
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: sudo apt-get install -y libsecp256k1-dev

- name: Run Hatch lint
run: hatch run lint:all
run: hatch run linting:all
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: sudo apt-get install -y python3-pip libsecp256k1-dev
- run: python -m pip install --upgrade pip hatch
- run: hatch run test:run
- run: hatch run testing:test
if: matrix.python-version != '3.11'
- run: hatch run test:run-coverage-report
- run: hatch run testing:cov
if: matrix.python-version == '3.11'
- uses: codecov/[email protected]
if: matrix.python-version == '3.11'
Expand Down
27 changes: 15 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ include = [
[tool.isort]
profile = "black"

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]

[tool.hatch.envs.test]
features = [
"cosmos",
Expand All @@ -125,19 +128,19 @@ dependencies = [
"httpx",
"secp256k1",
]
[tool.hatch.envs.test.scripts]
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests"
run = "pytest {args:.}"
run-coverage-report = [
"run-coverage",
"- coverage combine",
"coverage report",
[tool.hatch.envs.testing.scripts]
test = "pytest {args:tests}"
test-cov = "pytest --cov {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]

[tool.hatch.envs.lint]
[tool.hatch.envs.linting]
detached = true
dependencies = [
"black==24.2.0",
Expand All @@ -146,7 +149,7 @@ dependencies = [
# "ruff==0.1.15",
"isort==5.13.2",
]
[tool.hatch.envs.lint.scripts]
[tool.hatch.envs.linting.scripts]
typing = "mypy --config-file=pyproject.toml {args:} ./src/ ./tests/ ./examples/"
style = [
# "ruff {args:.}",
Expand Down

0 comments on commit cc9c987

Please sign in to comment.