1
1
Fork 0
PythonLearning/.gitea/workflows/lint.yaml
SeaswimmerTheFsh 3640c321b7
All checks were successful
Lint Code / Ruff (push) Successful in 7s
Lint Code / MyPy (push) Successful in 9s
Lint Code / Pylint (push) Successful in 9s
renamed the jobs
2024-05-08 12:52:45 -04:00

46 lines
1 KiB
YAML

name: Lint Code
on:
push:
jobs:
Ruff:
runs-on: docker
container: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Ruff
run: pip install ruff
- name: Analysing code
run: ruff check $(git ls-files '*.py')
continue-on-error: true
MyPy:
runs-on: docker
container: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install MyPy
run: pip install mypy
- name: Analysing code
run: mypy $(git ls-files '*.py')
continue-on-error: true
Pylint:
runs-on: docker
container: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Pylint
run: pip install pylint
- name: Analysing code
run: pylint --rcfile=.gitea/workflows/config/.pylintrc $(git ls-files '*.py')
continue-on-error: true