forked from blue-llama/e-treasure-hunt
-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1014 Bytes
/
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
44
45
46
47
48
49
50
name: Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ${{ matrix.image }}
strategy:
matrix:
os:
- Ubuntu
python-version:
- "3.10"
- "3.11"
include:
- os: Ubuntu
image: Ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install unixodbc-dev
run: sudo apt-get install --yes --no-install-recommends unixodbc-dev
- name: Set up python {{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: snok/install-poetry@v1
- name: Install project
run: poetry install --extras azure
- name: ruff
run: poetry run ruff .
- name: black
run: poetry run black --check .
- name: mypy
run: poetry run mypy .