-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace black, fake8 and isort with ruff and ruff-format (#249)
* replace black, fake8 and isort with ruff and ruff-format Signed-off-by: gruebel <[email protected]> * fix workflow Signed-off-by: gruebel <[email protected]> * use full version tag for pre-commit/action action Signed-off-by: gruebel <[email protected]> --------- Signed-off-by: gruebel <[email protected]> Signed-off-by: Anton Grübel <[email protected]>
- Loading branch information
Showing
7 changed files
with
72 additions
and
42 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -68,14 +68,8 @@ jobs: | |
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run black formatter check | ||
run: black --check . | ||
|
||
- name: Run flake8 formatter check | ||
run: flake8 . | ||
|
||
- name: Run isort formatter check | ||
run: isort . | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 |
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 |
---|---|---|
@@ -1,28 +1,16 @@ | ||
default_stages: [commit] | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.9 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files"] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
language_version: python3.9 | ||
- id: ruff | ||
# args: [ --fix ] | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
["flake8-print", "flake8-builtins", "flake8-functions==0.0.4"] |
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
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
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
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
pylint==3.0.3 | ||
pytest==7.4.4 | ||
pytest-mock==3.12.0 | ||
black==23.12.1 | ||
pre-commit | ||
flake8==6.1.0 | ||
coverage==7.4.0 | ||
behave==1.2.6 |