Skip to content

Commit 98f7cde

Browse files
authored
fix: Fix github workflow to use fmt instead of hatch run (#898)
1 parent 337c43e commit 98f7cde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ jobs:
9090
9191
- name: Run lint
9292
id: lint
93-
run: hatch run test-lint
93+
run: hatch fmt --linter --check
9494
continue-on-error: false

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ repos:
33
hooks:
44
- id: hatch-format
55
name: Format code
6-
entry: hatch run test-format
6+
entry: hatch fmt --formatter --check
77
language: system
88
pass_filenames: false
99
types: [python]
1010
stages: [pre-commit]
1111
- id: hatch-lint
1212
name: Lint code
13-
entry: hatch run test-lint
13+
entry: hatch fmt --linter --check
1414
language: system
1515
pass_filenames: false
1616
types: [python]

0 commit comments

Comments
 (0)