-
Notifications
You must be signed in to change notification settings - Fork 31
47 lines (38 loc) · 929 Bytes
/
ci-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
name: Python Linter
on:
pull_request:
paths:
- '.github/**'
- 'dags/**'
- 'extract/**'
- 'plugins/**'
- 'tests/**'
- 'utils/**'
- 'poetry.lock'
- 'pyproject.toml'
jobs:
tests:
name: Check code style for all python code
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Poetry
run: pipx install poetry
- uses: actions/setup-python@v4
id: setup-python
with:
python-version: '3.10'
cache: 'poetry'
- name: Install dependencies
run: poetry install
- name: Run isort
run: poetry run isort . --check
- name: Run black
run: poetry run black . --check
- name: Run flake8
run: poetry run flake8 --config build/.flake8 .