1
1
Fork 0
PythonLearning/.gitea/workflows/lint.yaml

49 lines
1.1 KiB
YAML
Raw Normal View History

2024-04-29 17:46:36 -05:00
name: Actions
on:
push:
branches:
2024-04-29 22:58:05 +00:00
- 'master'
2024-04-29 17:46:36 -05:00
jobs:
Lint Code (Ruff):
2024-04-29 17:46:36 -05:00
runs-on: docker
2024-04-29 23:03:52 +00:00
container: ghcr.io/catthehacker/ubuntu:act-latest
2024-04-29 17:46:36 -05:00
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Ruff
run: pip install ruff
2024-04-29 23:02:53 +00:00
2024-04-29 17:46:36 -05:00
- name: Analysing code with Ruff
2024-04-29 22:58:40 +00:00
run: ruff check $(git ls-files '*.py')
2024-04-29 17:46:36 -05:00
continue-on-error: true
Lint Code (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
2024-05-08 12:46:36 -04:00
- name: Analysing code with MyPy
run: mypy $(git ls-files '*.py')
continue-on-error: true
2024-05-08 12:49:17 -04:00
Lint Code (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
2024-05-08 12:49:17 -04:00
- name: Analysing code with Pylint
run: pylint --rcfile=.gitea/workflows/config/.pylintrc $(git ls-files '*.py')
continue-on-error: true