Skip to content

Commit 07a7b82

Browse files
authored
Merge pull request #12 from negz/one-lint
Use a single lint command
2 parents 902ae12 + f9fbf32 commit 07a7b82

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
run: pipx install hatch==1.7.0
3333

3434
- name: Lint
35-
run: |
36-
hatch run lint:check-format
37-
hatch run lint:check
35+
run: hatch run lint:check
3836

3937
unit-test:
4038
runs-on: ubuntu-22.04
@@ -77,4 +75,4 @@ jobs:
7775
name: module
7876
path: "dist/*"
7977
if-no-files-found: error
80-
retention-days: 1
78+
retention-days: 1

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ Some useful commands:
2929
# Generate gRPC stubs.
3030
hatch run generate:protoc
3131

32-
# Lint the code, using ruff.
32+
# Lint the code.
3333
hatch run lint:check
34-
hatch run lint:check-format
3534

3635
# Run unit tests.
3736
hatch run test:unit
3837

39-
# Build an sdist and wheel
38+
# Build an sdist and wheel.
4039
hatch build
4140
```
4241

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ path = ".venv-lint"
5353
dependencies = ["ruff==0.1.6"]
5454

5555
[tool.hatch.envs.lint.scripts]
56-
check = "ruff check crossplane tests"
57-
check-format = "ruff format --diff crossplane tests"
56+
check = "ruff check crossplane tests && ruff format --diff crossplane tests"
5857

5958
[tool.hatch.envs.test]
6059
type = "virtual"

0 commit comments

Comments
 (0)