-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 961 Bytes
/
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
name: Linter
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint python files, repository.yaml, and mockup folder structure
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
strategy:
fail-fast: false
env:
HATCH_VERBOSE: 1
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install hatch
run: uv tool install hatch
- name: Lint Python files
run: hatch run lintformat:lint
- name: Lint repository.yaml and check mockup folder structure
run: hatch run test:pytest tests/test_repository_yaml.py tests/test_mockup_folder_structure.py -v