-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply Ruff formatting and linting and add pre-commit (#161)
* config: Add Ruff configuration (cherry picked from commit 3d165e3) * chore: Apply formatting and linting fixes (cherry picked from commit 26d5278) * fix: Apply linting fixes and add pre-commit config (cherry picked from commit 0af702a)
- Loading branch information
1 parent
a37319e
commit 82aa382
Showing
250 changed files
with
1,872 additions
and
1,365 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 |
---|---|---|
@@ -1 +1 @@ | ||
*.lockfile binary | ||
*.lockfile binary |
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,2 +1,3 @@ | ||
--- | ||
matches-ignore: | ||
- TESTAPP_SECRET | ||
- TESTAPP_SECRET |
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 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,71 @@ | ||
--- | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: debug-statements | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.3 | ||
hooks: | ||
- id: yamlfmt | ||
args: | ||
- --mapping | ||
- '2' | ||
- --sequence | ||
- '2' | ||
- --offset | ||
- '0' | ||
- --width | ||
- '80' | ||
- --preserve-quotes | ||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.35.1 | ||
hooks: | ||
- id: yamllint | ||
args: [--format, parsable, -d, relaxed] | ||
- repo: https://github.com/Yelp/detect-secrets | ||
rev: v1.5.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: | ||
- --baseline | ||
- .secrets.baseline | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: 'v0.5.3' | ||
hooks: | ||
- id: ruff-format | ||
- id: ruff | ||
args: [--extend-ignore=D1, --fix] | ||
# - repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v1.10.1 | ||
# hooks: | ||
# - id: mypy | ||
# args: | ||
# - --explicit-package-bases | ||
# - --namespace-packages | ||
# - --config-file=pyproject.toml | ||
# - --warn-unused-configs | ||
# additional_dependencies: | ||
# - mypy-extensions | ||
# - django-stubs[compatible-mypy] | ||
# - types-PyYAML | ||
# - types-requests | ||
- repo: https://github.com/shellcheck-py/shellcheck-py | ||
rev: v0.10.0.1 | ||
hooks: | ||
- id: shellcheck | ||
- repo: https://github.com/rhysd/actionlint | ||
rev: v1.7.1 | ||
hooks: | ||
- id: actionlint | ||
name: actionlint | ||
description: Runs actionlint to lint GitHub Actions workflow files |
Oops, something went wrong.