mirror of
https://github.com/jazzband/django-fernet-encrypted-fields.git
synced 2026-03-16 22:40:27 +00:00
format with ruff in CI
This commit is contained in:
parent
d7fefc1198
commit
6a4958382e
1 changed files with 12 additions and 10 deletions
22
.github/workflows/lint-and-test.yml
vendored
22
.github/workflows/lint-and-test.yml
vendored
|
|
@ -10,18 +10,20 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install ruff black
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Lint with Ruff
|
||||
run: |
|
||||
ruff check .
|
||||
- name: "Set up Python"
|
||||
uses: actions/setup-python@v6
|
||||
|
||||
- name: Lint with Black
|
||||
run: |
|
||||
black --check .
|
||||
- name: "install Ruff"
|
||||
uses: astral-sh/ruff-action@v3
|
||||
with:
|
||||
version: ">=0.15,<0.16"
|
||||
# ToDo: use pyrpoject.toml as version-file
|
||||
# version-file: "pyproject.toml"
|
||||
|
||||
- name: "Check formatting"
|
||||
run: ruff format --check --diff
|
||||
|
||||
test:
|
||||
strategy:
|
||||
|
|
|
|||
Loading…
Reference in a new issue