mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
style: use proper indentation in ruff.yml
(#11237)
* style: use proper indentation in `ruff.yml` * chore: run `prettier` on `yml` files * Update .pre-commit-config.yaml * Update .pre-commit-config.yaml * Update .pre-commit-config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update .pre-commit-config.yaml * chore: run prettier on workflow files --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
ffb93adf46
commit
13559aee43
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -25,10 +25,10 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
# TODO: #8818 Re-enable quantum tests
|
# TODO: #8818 Re-enable quantum tests
|
||||||
run: pytest
|
run: pytest
|
||||||
--ignore=quantum/q_fourier_transform.py
|
--ignore=quantum/q_fourier_transform.py
|
||||||
--ignore=project_euler/
|
--ignore=project_euler/
|
||||||
--ignore=scripts/validate_solutions.py
|
--ignore=scripts/validate_solutions.py
|
||||||
--cov-report=term-missing:skip-covered
|
--cov-report=term-missing:skip-covered
|
||||||
--cov=. .
|
--cov=. .
|
||||||
- if: ${{ success() }}
|
- if: ${{ success() }}
|
||||||
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
||||||
|
|
6
.github/workflows/ruff.yml
vendored
6
.github/workflows/ruff.yml
vendored
|
@ -11,6 +11,6 @@ jobs:
|
||||||
ruff:
|
ruff:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: pip install --user ruff
|
- run: pip install --user ruff
|
||||||
- run: ruff --output-format=github .
|
- run: ruff --output-format=github .
|
||||||
|
|
|
@ -13,7 +13,7 @@ repos:
|
||||||
- repo: https://github.com/MarcoGorelli/auto-walrus
|
- repo: https://github.com/MarcoGorelli/auto-walrus
|
||||||
rev: v0.2.2
|
rev: v0.2.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: auto-walrus
|
- id: auto-walrus
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.1.11
|
rev: v0.1.11
|
||||||
|
@ -59,3 +59,9 @@ repos:
|
||||||
- --install-types # See mirrors-mypy README.md
|
- --install-types # See mirrors-mypy README.md
|
||||||
- --non-interactive
|
- --non-interactive
|
||||||
additional_dependencies: [types-requests]
|
additional_dependencies: [types-requests]
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
rev: "v3.1.0"
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
types_or: [toml, yaml]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user