-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace black for ruff format (#372)
- Loading branch information
1 parent
f5ff5f1
commit 2954023
Showing
4 changed files
with
34 additions
and
149 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 |
---|---|---|
|
@@ -54,31 +54,10 @@ jobs: | |
poetry config virtualenvs.in-project true | ||
- name: 🏗 Install Python dependencies | ||
run: poetry install --no-interaction | ||
- name: 🚀 Run Ruff | ||
run: poetry run ruff . | ||
|
||
black: | ||
name: black | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: 🏗 Set up Poetry | ||
run: pipx install poetry | ||
- name: 🏗 Set up Python ${{ env.DEFAULT_PYTHON }} | ||
id: python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
cache: "poetry" | ||
- name: 🏗 Install workflow dependencies | ||
run: | | ||
poetry config virtualenvs.create true | ||
poetry config virtualenvs.in-project true | ||
- name: 🏗 Install Python dependencies | ||
run: poetry install --no-interaction | ||
- name: 🚀 Run black on docs | ||
run: poetry run blacken-docs | ||
- name: 🚀 Run Ruff linter | ||
run: poetry run ruff check --output-format=github . | ||
- name: 🚀 Run Ruff formatter | ||
run: poetry run ruff format --check . | ||
|
||
pre-commit-hooks: | ||
name: pre-commit-hooks | ||
|
@@ -120,8 +99,6 @@ jobs: | |
run: poetry run pre-commit run check-xml --all-files | ||
- name: 🚀 Check YAML files | ||
run: poetry run pre-commit run check-yaml --all-files | ||
- name: 🚀 Check YAML files | ||
run: poetry run pre-commit run check-yaml --all-files | ||
- name: 🚀 Detect Private Keys | ||
run: poetry run pre-commit run detect-private-key --all-files | ||
- name: 🚀 Check End of Files | ||
|
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
Oops, something went wrong.