1
1
Fork 0
PythonLearning/.gitea/workflows/lint.yaml
EntropicDecay c04142c2bd
Some checks failed
Lint Code / Ruff (push) Successful in 7s
Lint Code / MyPy (push) Failing after 9s
Lint Code / Pylint (push) Failing after 9s
Fixed workflow
2024-05-23 22:33:29 -05:00

43 lines
931 B
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')
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')
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')