-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 956 Bytes
/
code_quality.yml
File metadata and controls
42 lines (35 loc) · 956 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: Code Quality
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
code_quality:
runs-on: ubuntu-latest
container: python:3.10-slim
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
apt-get update
apt-get install -y git build-essential
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --default-timeout=100 --retries=5 -r requirements-dev.txt
- name: Lint with ruff
run: ruff check --output-format=github --line-length 79
- name: Run mypy
run: |
mypy \
--ignore-missing-imports \
--disallow-untyped-defs \
--strict-optional \
--warn-unused-ignores \
--disable-error-code type-arg \
.
- name: YAML Lint
run: yamllint --strict .