-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add workflow and setup to ensure compliance with ruff-enforced style
The idea being that we let a machine decide how code needs to look like, and we tell the machine how we like that via configuration. The configuration is in `pyproject.toml` (`tools.ruff`). Hatch users can also run ``` hatch fmt [--check] ```
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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,17 @@ | ||
name: Ruff | ||
on: [push, pull_request] | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
# run on a "fresh" python | ||
python-version: 3.12 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install hatch | ||
run: python -m pip install hatch | ||
- name: Check code | ||
run: hatch fmt --check |
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