Skip to content

Commit d0aae78

Browse files
committed
merge lint and check environments into qa
1 parent 927510f commit d0aae78

3 files changed

Lines changed: 13 additions & 21 deletions

File tree

docs/Usage.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ If you've not already read it, please check our [Policy](./Policy.md) first.
1313
❯ hatch env show
1414

1515
# linting, testing, coverage, checking
16-
❯ hatch run lint:all
17-
❯ hatch run lint:fixall
16+
❯ hatch run qa:analyse-all
17+
❯ hatch run qa:fixall
1818
# run tests on all matrixed' envs
1919
❯ hatch run test:run
2020
# run tests in a single matrixed' env
2121
❯ hatch env run -e test -i py=3.11 coverage
2222
# run static type checks
23-
❯ hatch env run check:all
23+
❯ hatch env run -e qa type-check
2424

2525
# building packages
2626
❯ hatch build
@@ -39,13 +39,13 @@ If you've not already read it, please check our [Policy](./Policy.md) first.
3939
❯ inv -l
4040

4141
# linting, testing, coverage, static type checks
42-
❯ inv lintall
42+
❯ inv analyse-all
4343
❯ inv fixall
4444
❯ inv test
4545
❯ inv coverage
46-
❯ inv checkall
46+
❯ inv type-check
4747

4848
# building packages
4949
❯ pip install build
5050
❯ python3 -m build
51-
```
51+
```

pyproject.toml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ additional-keywords = ["some"]
1919
scripts = [
2020
"invoke==2.2.0",
2121
]
22-
lint = [
22+
qa = [
2323
"ruff==0.15.12",
24-
]
25-
check = [
2624
"pyright==1.1.370",
2725
]
2826
test = [
@@ -33,9 +31,8 @@ dev = [
3331
"pre-commit==3.7.1",
3432
"debugpy==1.8.2",
3533
"great-project[scripts]",
36-
"great-project[lint]",
34+
"great-project[qa]",
3735
"great-project[test]",
38-
"great-project[check]",
3936
]
4037

4138
[project.scripts]
@@ -68,21 +65,16 @@ report-cov = "inv report-cov"
6865
coverage = "inv coverage --args '{args}'"
6966
html = "inv coverage --html --args '{args}'"
7067

71-
[tool.hatch.envs.lint]
72-
template = "lint"
68+
[tool.hatch.envs.qa]
69+
template = "qa"
7370
skip-install = false
74-
features = ["scripts", "lint"]
71+
features = ["scripts", "qa", "test"]
7572

76-
[tool.hatch.envs.lint.scripts]
73+
[tool.hatch.envs.qa.scripts]
7774
lint = "inv lint --args '{args}'"
7875
format = "inv format --args '{args}'"
7976
check-format = "inv check-format"
8077
fixall = "inv fixall"
81-
82-
[tool.hatch.envs.check]
83-
features = ["scripts", "check"]
84-
85-
[tool.hatch.envs.check.scripts]
8678
type-check = "inv type-check --args '{args}'"
8779
analyse-all = "inv analyse-all"
8880

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ def check_format(ctx: Context):
8080
@task()
8181
def fixall(ctx: Context):
8282
"""Fix everything automatically"""
83-
lint(ctx, "--select I --fix") # sort imports along with check fixes
83+
lint(ctx, "--fix")
8484
format(ctx)

0 commit comments

Comments
 (0)