2024-05-08 12:52:45 -04:00
|
|
|
name: Lint Code
|
2024-04-29 18:46:36 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
2024-05-08 12:52:45 -04:00
|
|
|
Ruff:
|
2024-04-29 18:46:36 -04:00
|
|
|
runs-on: docker
|
2024-04-29 19:03:52 -04:00
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
2024-04-29 18:46:36 -04:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2024-05-08 12:51:11 -04:00
|
|
|
- name: Install Ruff
|
|
|
|
run: pip install ruff
|
2024-04-29 19:02:53 -04:00
|
|
|
|
2024-05-08 12:52:45 -04:00
|
|
|
- name: Analysing code
|
2024-04-29 18:58:40 -04:00
|
|
|
run: ruff check $(git ls-files '*.py')
|
2024-04-29 18:46:36 -04:00
|
|
|
|
2024-05-08 12:52:45 -04:00
|
|
|
MyPy:
|
2024-05-08 12:51:11 -04:00
|
|
|
runs-on: docker
|
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install MyPy
|
|
|
|
run: pip install mypy
|
|
|
|
|
2024-05-08 12:52:45 -04:00
|
|
|
- name: Analysing code
|
2024-05-08 12:46:36 -04:00
|
|
|
run: mypy $(git ls-files '*.py')
|
2024-05-08 12:49:17 -04:00
|
|
|
|
2024-05-08 12:52:45 -04:00
|
|
|
Pylint:
|
2024-05-08 12:51:11 -04:00
|
|
|
runs-on: docker
|
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Pylint
|
|
|
|
run: pip install pylint
|
|
|
|
|
2024-05-08 12:52:45 -04:00
|
|
|
- name: Analysing code
|
2024-05-08 12:49:17 -04:00
|
|
|
run: pylint --rcfile=.gitea/workflows/config/.pylintrc $(git ls-files '*.py')
|