-
Notifications
You must be signed in to change notification settings - Fork 8
57 lines (54 loc) · 1.49 KB
/
lint.yml
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
47
48
49
50
51
52
53
54
55
56
57
---
name: Lint
on: pull_request
jobs:
# Thanks for the inspiration:
# https://black.readthedocs.io/en/stable/integrations/github_actions.html
python:
name: Python Lint
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[dev]'
- name: black Lint
uses: psf/[email protected]
- name: isort Lint
uses: isort/isort-action@v1
with:
requirements-files: "pyproject.toml"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
plugins: "flake8-pyproject"
- name: lint - FawltyDeps
uses: tweag/[email protected]
with:
options: --detailed
templates:
name: Templates Lint
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[dev]'
- name: djlint Lint
run: |
djlint --check freezing/web/templates
- name: PyMarkdown Lint
run: |
pymarkdown scan .