-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e54887f
commit 3cb2f74
Showing
4 changed files
with
54 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Formatter | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
env: | ||
SKIP: pylint,isort,black | ||
|
||
jobs: | ||
Formatter: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- uses: isort/[email protected] | ||
with: | ||
configuration: "--settings-file=.isort.cfg" | ||
requirements-files: "requirements.txt" | ||
- uses: psf/black@stable | ||
with: | ||
options: "--line-length=120" | ||
version: "24.2.0" | ||
- uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: "Format code with isort and black" | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
- uses: pre-commit/[email protected] | ||
Pylint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint $(git ls-files '*.py') --rcfile=$(git ls-files '.pylintrc') |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.