-
-
Notifications
You must be signed in to change notification settings - Fork 31
46 lines (42 loc) · 1.26 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Lint
"on":
push:
branches:
- main
pull_request:
jobs:
lint:
uses: kdeldycke/workflows/.github/workflows/lint.yaml@v4.4.0
lint-jinja:
name: Lint Jinja
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.1
with:
python-version: "3.12"
- name: Install uv
run: |
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.0/requirements/uv.txt
- name: Install djlint
run: |
uv --no-progress venv --system
uv --no-progress pip install ".[test]"
- name: Autofix Jinja
run: >
uv --no-progress run -- djlint --lint --profile jinja plumage/templates/*.html
lint-css:
name: Lint CSS files
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.7
- name: Install stylelint
run: |
npm install --save-dev stylelint stylelint-config-standard stylelint-config-sass-guidelines
- name: Lint CSS
run: |
npx stylelint --config stylelint-config-standard "plumage/static/**/*.css"
- name: Lint SCSS
run: |
npx stylelint --config stylelint-config-sass-guidelines "plumage/static/**/*.scss"