-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 918 Bytes
/
lint.yml
File metadata and controls
28 lines (27 loc) · 918 Bytes
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
name: Lint (black and flake8)
on:
workflow_dispatch:
workflow_call:
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install and configure Poetry (this should ideally be done from pyproject.toml but..)
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
with:
version: 1.8.5
virtualenvs-create: true
- name: Install poetry-dynamic-versioning
run: poetry self add "poetry-dynamic-versioning[plugin]"
- name: Install dependencies
run: poetry install --with dev
- name: Run black formatter check
run: poetry run black --check --verbose src tests
- name: Run flake8 linter
run: poetry run flake8