-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (28 loc) · 895 Bytes
/
Copy pathpython-lint.yml
File metadata and controls
32 lines (28 loc) · 895 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
# This workflow will install Python dependencies and run some static tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Lint
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Ruff
run: pip install ruff
- name: Ruff Check
run: ruff check . --output-format=github
- name: Ruff Format
run: ruff format . --check
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Python dependencies
run: |
python -m pip install flake8 mypy -r requirements.txt
- name: Mypy
uses: liskin/gh-problem-matcher-wrap@v2
with:
linters: mypy
run: mypy --show-column-numbers .