adjusted workflows -> merge of lint/formatter per lang
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
name: Lint (Python)
|
||||
name: Lint & Format (Python)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
lint-format:
|
||||
runs-on: alpine
|
||||
container: node:20-alpine
|
||||
|
||||
@@ -18,10 +18,16 @@ jobs:
|
||||
git \
|
||||
python3 \
|
||||
py3-pip
|
||||
|
||||
- name: Ruff
|
||||
run: |
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
pip install --no-cache-dir ruff
|
||||
|
||||
- name: Format check
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
ruff format --check .
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
ruff check .
|
||||
|
||||
Reference in New Issue
Block a user