Fixes #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# © Aeris1One, [email protected] (2022) | |
# | |
# Ce fichier représente un programme informatique servant à vérifier que le | |
# code de ce dépôt est fonctionnel et conforme à la PEP-8. | |
# | |
# Ce programme est régi par la licence CeCILL soumise au droit français et | |
# respectant les principes de diffusion des logiciels libres. Vous pouvez | |
# utiliser, modifier et/ou redistribuer ce programme sous les conditions | |
# de la licence CeCILL difusée sur le site "http://www.cecill.info". | |
name: Python Linter for Push | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- beta | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Python dependencies | |
run: pip install -r requirements.txt | |
- name: Install Linters | |
run: pip install black pylint | |
- name: Run linters | |
uses: wearerequired/lint-action@121b69fdf77b22fa2bbb8d081b455bd31d563197 | |
with: | |
black: true | |
pylint: true | |
pylint_args: "--disable=C,R,I" | |
auto_fix: true | |
git_name: "GuniBot" | |
git_email: "[email protected]" | |
commit_message: "🌟 style: fix code style issues with ${linter}" |