feat: add linter to ci workflow
This commit is contained in:
@@ -14,12 +14,8 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install and run Ruff (Lint & Format Check)
|
||||
run: |
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
ruff check .
|
||||
ruff format --check .
|
||||
- name: Lint & Format Check python code with ruff
|
||||
uses: astral-sh/ruff-action@v3
|
||||
|
||||
- name: Lint Dockerfile (Hadolint)
|
||||
uses: hadolint/hadolint-action@v3.1.0
|
||||
|
||||
Reference in New Issue
Block a user