-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1.08 KB
/
linting.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
name: linting
# Triggers the workflow on push for all branches
on:
push:
paths-ignore:
pyproject.toml
jobs:
lint:
runs-on: ubuntu-latest
steps:
# Check out repo and set up Python
- uses: actions/checkout@v4
with:
lfs: true
# Use cached python and dependencies, install poetry
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: 3.8
poetry-version: 1.2.2
# Linting steps, execute all linters even if one fails
- name: ruff
run:
poetry run ruff sed tests
- name: ruff formatting
if: ${{ always() }}
run:
poetry run ruff format --check sed tests
- name: mypy
if: ${{ always() }}
run:
poetry run mypy sed tests
- name: spellcheck
if: ${{ always() }}
uses: streetsidesoftware/cspell-action@v6
with:
check_dot_files: false
incremental_files_only: false
config: './cspell.json'