forked from richelbilderbeek/programming_formalisms_testing
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 820 Bytes
/
lint_code.yaml
File metadata and controls
36 lines (28 loc) · 820 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
# Check if all code follows a recommended coding standard
# From https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#using-ruff-to-lint-code
name: Lint code
on:
push:
pull_request:
schedule:
- cron: "0 0 1 * *"
jobs:
lint_code:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with Ruff
run: |
pip install ruff
ruff --format=github --target-version=py37 .
continue-on-error: false