-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 837 Bytes
/
lint.yml
File metadata and controls
44 lines (34 loc) · 837 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
43
44
name: Lint Project
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Python
uses: actions/setup-python@v4
id: cp311
with:
python-version: 3.12
- name: Cache Dependencies
uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: Install pip Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install .[dev]
- uses: chartboost/ruff-action@v1
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
- name: Run mypy
run: mypy SideBot