Skip to content

Commit 30f9a2e

Browse files
committed
chore(deps): update ruff-pre-commit to v0.15.8
1 parent d3230dc commit 30f9a2e

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- id: check-toml
99

1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.14.2
11+
rev: v0.15.8
1212
hooks:
1313
- id: ruff-check
1414
args: [--fix, --exit-zero]

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We use [uv](https://docs.astral.sh/uv/) for project management, [Hatch](https://
1010
To install this package and its development dependencies, run:
1111

1212
```sh
13-
just dev
13+
just sync
1414
```
1515

1616
or

Justfile

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,35 @@ _require-hatch:
88
@hatch --version > /dev/null || (echo "Please install hatch: uv tool install hatch" && exit 1)
99

1010
# check code style and potential issues
11-
lint:
12-
ruff check
11+
lint: _require-uv
12+
uv run ruff check .
1313

1414
# format code
15-
format:
16-
ruff format
15+
format: _require-uv
16+
uv run ruff format .
1717

1818
# fix automatically fixable linting issues
19-
fix:
20-
ruff check --fix
19+
fix: _require-uv
20+
uv run ruff check --fix .
2121

2222
# run tests across all supported Python versions
2323
test: _require-hatch
2424
hatch run test:test
2525

26+
2627
# build the package
2728
build: _require-uv
2829
uv build
2930

3031
# setup or update local dev environment, keeps previously installed extras
31-
dev: _require-uv
32+
sync: _require-uv
3233
uv sync --inexact --extra dev
3334
uv run pre-commit install
3435

3536
# run tests with coverage and show a coverage report
36-
coverage:
37-
coverage run -m pytest
38-
coverage report
37+
coverage: _require-uv
38+
uv run coverage run -m pytest
39+
uv run coverage report
3940

4041
# clean build artifacts and caches
4142
clean:
@@ -47,8 +48,8 @@ typecheck: _require-uv
4748
uv run mypy
4849

4950
# check code for common misspellings
50-
spell:
51-
codespell
51+
spell: _require-uv
52+
uv run codespell
5253

5354
# run all quality checks
5455
check: format lint coverage typecheck spell
@@ -60,3 +61,5 @@ help:
6061
alias fmt := format
6162
alias cov := coverage
6263
alias mypy := typecheck
64+
65+
alias dev := sync

0 commit comments

Comments
 (0)