Skip to content

Commit ad1dbce

Browse files
committed
improve documentation
1 parent 3fd43d9 commit ad1dbce

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Remove `black` from `pyproject.toml` and `tasks.py`
1111
- Upgrade `ruff` to `0.15.12`
1212
- Merge `check` and `lint` features into `qa`
13+
- Remove `lint-black`, `lint-ruff`, `fix-black`, `fix-ruff`, `lintall`, `fixall`, and
14+
`check-pyright` invoke tasks
15+
- Add new invoke tasks: `check-lint`, `check-format`, `check-type`, `check-all`,
16+
`fix-format`, `fix-lint` and `fix-all`
1317

1418
### Changed
1519

docs/Usage.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ If you've not already read it, please check our [Policy](./Policy.md) first.
1919
❯ hatch run test:run
2020
# run tests in a single matrixed' env
2121
❯ hatch env run -e test -i py=3.11 coverage
22-
# run static type checks
23-
❯ hatch env run -e qa check-type
2422

2523
# building packages
2624
❯ hatch build
@@ -38,12 +36,13 @@ If you've not already read it, please check our [Policy](./Policy.md) first.
3836
# scripts discovery
3937
❯ inv -l
4038

41-
# linting, testing, coverage, static type checks
39+
# check linting, formatting and static type checks
4240
❯ inv check-all
41+
# fix everything automatically
4342
❯ inv fix-all
43+
# run tests
4444
❯ inv test
4545
❯ inv coverage
46-
❯ inv check-type
4746

4847
# building packages
4948
❯ pip install build

tasks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ def _lint(ctx: Context, args: str = "."):
5050

5151
@task(optional=["args"], help={"args": "ruff additional arguments"})
5252
def check_lint(ctx: Context, args: str = "."):
53+
"""check linting with ruff"""
5354
args = args or "." # needed for hatch script
5455
_lint(ctx, args)
5556

5657

5758
@task(optional=["args"], help={"args": "ruff additional arguments"})
5859
def fix_lint(ctx: Context, args: str = "."):
60+
"""fix linting issues with ruff"""
5961
args = args or "." # needed for hatch script
6062
_lint(ctx, f"--fix {args}")
6163

@@ -75,19 +77,21 @@ def _format(ctx: Context, args: str = "."):
7577

7678
@task(optional=["args"], help={"args": "ruff additional arguments"})
7779
def check_format(ctx: Context, args: str = "."):
80+
"""check formatting with ruff"""
7881
args = args or "." # needed for hatch script
7982
_format(ctx, f"--check {args}")
8083

8184

8285
@task(optional=["args"], help={"args": "ruff additional arguments"})
8386
def fix_format(ctx: Context, args: str = "."):
87+
"""fix formatting with ruff"""
8488
args = args or "." # needed for hatch script
8589
_format(ctx, args)
8690

8791

8892
@task(optional=["args"], help={"args": "additional arguments"})
8993
def check_all(ctx: Context, args: str = ""):
90-
"""check static types"""
94+
"""check linting, formatting and static types"""
9195
args = args or "." # needed for hatch script
9296
check_lint(ctx, args)
9397
check_format(ctx, args)

0 commit comments

Comments
 (0)