-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
19 changed files
with
1,499 additions
and
326 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 |
---|---|---|
|
@@ -75,3 +75,6 @@ virtualenv | |
|
||
# mac os | ||
.DS_Store | ||
|
||
# lock files | ||
*.lock |
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,53 +1,49 @@ | ||
# This file configures pre-commit hooks. | ||
# See https://pre-commit.com/ for general information | ||
# See https://pre-commit.com/hooks.html for a listing of possible hooks | ||
|
||
default_language_version: | ||
python: python3.12 | ||
repos: | ||
# General hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-docstring-first | ||
- id: check-json | ||
exclude: "tsconfig.*json" | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: check-executables-have-shebangs | ||
- id: end-of-file-fixer | ||
exclude_types: | ||
- svg | ||
- pofile | ||
exclude: "(^LICENSE$)" | ||
- id: mixed-line-ending | ||
args: | ||
- "--fix=lf" | ||
- id: trailing-whitespace | ||
exclude_types: | ||
- svg | ||
- id: check-case-conflict | ||
- id: detect-private-key | ||
# See https://github.com/prettier/prettier/issues/15742 for the fork reason | ||
- repo: https://github.com/rbubley/mirrors-prettier | ||
rev: "v3.4.2" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.9.0 | ||
hooks: | ||
- id: prettier | ||
types_or: | ||
- javascript | ||
- ts | ||
- markdown | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.3.0 | ||
hooks: | ||
- id: codespell | ||
# Python hooks | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: 'v0.8.2' | ||
exclude: ^tests | ||
additional_dependencies: | ||
- tomli | ||
- repo: https://github.com/jsh9/pydoclint | ||
rev: 0.5.15 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
# Run the formatter. | ||
- id: ruff-format | ||
- id: pydoclint | ||
args: | ||
[ | ||
--style=google, | ||
--check-return-types=False, | ||
--arg-type-hints-in-docstring=False, | ||
] | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: "v2.5.0" | ||
hooks: | ||
- id: pyproject-fmt | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: uv run mypy | ||
require_serial: true | ||
language: system | ||
types: [python] |
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
Oops, something went wrong.