-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add formatting and linting in CI (#2)
- Loading branch information
Showing
7 changed files
with
1,272 additions
and
1,736 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly |
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,22 @@ | ||
name: CI | ||
on: | ||
push: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pixi | ||
uses: prefix-dev/[email protected] | ||
- name: Format and lint | ||
run: | | ||
pixi run fmt | ||
pixi run check | ||
- name: Generate schema | ||
run: | | ||
pixi run generate | ||
- name: Assert no changes | ||
run: | | ||
git diff --exit-code |
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,13 @@ | ||
select = ["ALL"] | ||
target-version = "py312" | ||
line-length = 100 | ||
ignore = [ | ||
"E501", # https://docs.astral.sh/ruff/rules/line-too-long/ | ||
"D", # https://docs.astral.sh/ruff/rules/#pydocstyle-d | ||
"COM812", # https://docs.astral.sh/ruff/rules/missing-trailing-comma/ | ||
"ISC001", # https://docs.astral.sh/ruff/rules/single-line-implicit-string-concatenation/ | ||
] | ||
|
||
[format] | ||
quote-style = "double" | ||
indent-style = "space" |
Oops, something went wrong.