Skip to content

Commit 5c69c39

Browse files
authored
feat: Use dev env for running tests (#27)
1 parent a80ed07 commit 5c69c39

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build PyPI
22
on:
3-
workflow_call:
3+
workflow_call:
44
workflow_dispatch:
55
push:
66
pull_request:
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: pip install hatch
3131
- name: Run unit and integrations tests
32-
run: hatch run test:pytest --cov=reqstool-python-decorators --cov-report=xml --cov-report=html
32+
run: hatch run dev:pytest --cov=reqstool-python-decorators --cov-report=xml --cov-report=html
3333
- name: Build project
3434
run: hatch build
3535
# Upload artifacts for later use

‎.github/workflows/lint.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
- name: Install pip package(s)
1717
run: pip install hatch
1818
- name: Run black formatter check
19-
run: hatch run lint:black --check --verbose src tests
19+
run: hatch run dev:black --check --verbose src tests
2020
- name: Run flake8 linter
21-
run: hatch run lint:flake8
21+
run: hatch run dev:flake8

‎pyproject.toml‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers = [
2424
"License :: OSI Approved :: MIT License",
2525
"Programming Language :: Python :: 3",
2626
"Operating System :: OS Independent",
27-
"Development Status :: 4 - Beta"
27+
"Development Status :: 4 - Beta",
2828
]
2929

3030
requires-python = ">=3.10"
@@ -42,12 +42,15 @@ source = "vcs"
4242
[tool.hatch.version.raw-options]
4343
local_scheme = "no-local-version"
4444

45-
[tool.hatch.envs.test]
46-
dependencies = ["pytest==8.3.3", "pytest-sugar==1.0.0", "pytest-cov==5.0.0"]
47-
48-
[tool.hatch.envs.lint]
49-
detached = true
50-
dependencies = ["black==24.10.0", "flake8==7.1.1", "flake8-pyproject==1.2.3"]
45+
[tool.hatch.envs.dev]
46+
dependencies = [
47+
"pytest==8.3.3",
48+
"pytest-sugar==1.0.0",
49+
"pytest-cov==5.0.0",
50+
"black==24.10.0",
51+
"flake8==7.1.1",
52+
"flake8-pyproject==1.2.3",
53+
]
5154

5255
[tool.black]
5356
line-length = 120

0 commit comments

Comments
 (0)