-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3468ed
commit f9db40c
Showing
2 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: lint | ||
|
||
on: | ||
push: | ||
branches: [dev] | ||
paths: | ||
- "**.py" | ||
- ".github/workflows/check.yaml" | ||
- "pyproject.toml" | ||
pull_request: | ||
branches: [dev, main] | ||
paths: | ||
- "**.py" | ||
- ".github/workflows/check.yaml" | ||
- "pyproject.toml" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install rye | ||
uses: phi-friday/[email protected] | ||
id: install-rye | ||
with: | ||
python_version: "3.8" | ||
use_uv: true | ||
|
||
- name: Code checks | ||
run: | | ||
rye install pre-commit | ||
pre-commit run --all-files --show-diff-on-failure |