Skip to content

Commit a803ba2

Browse files
committed
Unify script/env names to equal aleph-vm conventions
1 parent ec194dc commit a803ba2

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
run: sudo apt-get install -y libsecp256k1-dev
3434

3535
- name: Run Hatch lint
36-
run: hatch run lint:all
36+
run: hatch run linting:all

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
python-version: ${{ matrix.python-version }}
2323
- run: sudo apt-get install -y python3-pip libsecp256k1-dev
2424
- run: python -m pip install --upgrade pip hatch
25-
- run: hatch run test:run
25+
- run: hatch run testing:test
2626
if: matrix.python-version != '3.11'
27-
- run: hatch run test:run-coverage-report
27+
- run: hatch run testing:cov
2828
if: matrix.python-version == '3.11'
2929
- uses: codecov/[email protected]
3030
if: matrix.python-version == '3.11'

pyproject.toml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ include = [
104104
[tool.isort]
105105
profile = "black"
106106

107-
[tool.hatch.envs.test]
107+
[[tool.hatch.envs.all.matrix]]
108+
python = ["3.8", "3.9", "3.10", "3.11"]
109+
110+
[tool.hatch.envs.testing]
108111
features = [
109112
"cosmos",
110113
"dns",
@@ -125,19 +128,19 @@ dependencies = [
125128
"httpx",
126129
"secp256k1",
127130
]
128-
[tool.hatch.envs.test.scripts]
129-
run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests"
130-
run = "pytest {args:.}"
131-
run-coverage-report = [
132-
"run-coverage",
133-
"- coverage combine",
134-
"coverage report",
131+
[tool.hatch.envs.testing.scripts]
132+
test = "pytest {args:tests}"
133+
test-cov = "pytest --cov {args:tests}"
134+
cov-report = [
135+
"- coverage combine",
136+
"coverage report",
137+
]
138+
cov = [
139+
"test-cov",
140+
"cov-report",
135141
]
136142

137-
[[tool.hatch.envs.all.matrix]]
138-
python = ["3.8", "3.9", "3.10", "3.11"]
139-
140-
[tool.hatch.envs.lint]
143+
[tool.hatch.envs.linting]
141144
detached = true
142145
dependencies = [
143146
"black==24.2.0",
@@ -146,7 +149,7 @@ dependencies = [
146149
# "ruff==0.1.15",
147150
"isort==5.13.2",
148151
]
149-
[tool.hatch.envs.lint.scripts]
152+
[tool.hatch.envs.linting.scripts]
150153
typing = "mypy --config-file=pyproject.toml {args:} ./src/ ./tests/ ./examples/"
151154
style = [
152155
# "ruff {args:.}",

0 commit comments

Comments
 (0)