forked from raidensakura/modmail
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 781 Bytes
/
Copy pathlint.yml
File metadata and controls
36 lines (34 loc) · 781 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
name: Lint python
on:
push:
branches:
- stable
- develop
pull_request:
jobs:
code-style:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
name: Python ${{ matrix.python-version }} on ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: Install dependencies
run: |
pdm install --group dev
- name: Ruff
run: pdm run ruff . --no-fix
continue-on-error: true
- name: Black
run: |
pdm run black . --diff --check