File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build PyPI
22on :
3- workflow_call :
3+ workflow_call :
44 workflow_dispatch :
55 push :
66 pull_request :
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
3030requires-python = " >=3.10"
@@ -42,12 +42,15 @@ source = "vcs"
4242[tool .hatch .version .raw-options ]
4343local_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 ]
5356line-length = 120
You can’t perform that action at this time.
0 commit comments