Skip to content

Commit

Permalink
Add formatting and linting in CI (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Nov 19, 2023
1 parent f673bbc commit cdfba33
Show file tree
Hide file tree
Showing 7 changed files with 1,272 additions and 1,736 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
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
13 changes: 13 additions & 0 deletions .ruff.toml
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"
Loading

0 comments on commit cdfba33

Please sign in to comment.