-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .pre-commit-config.yaml * Remove codespell action since it's in pre-commit * Remove pre-commit-search-and-replace * Apply pre-commit changes to markdown * Update conf.py * Apply pre-commit updates * Update quotes * Fix trailing whitespace * end-of-file-fixer * Exclude some files * Apply mdformat * Remove unnecessary default language version * Exclude code of conduct from codespell
- Loading branch information
Showing
24 changed files
with
305 additions
and
314 deletions.
There are no files selected for viewing
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
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,60 @@ | ||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: monthly | ||
|
||
repos: | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
name: check for git merge conflicts | ||
exclude: .*\.rst | ||
- id: check-case-conflict | ||
name: check for filename case conflicts | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
|
||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.28.0 | ||
hooks: | ||
- id: check-github-workflows | ||
|
||
- repo: https://github.com/sirosen/texthooks | ||
rev: 0.6.6 | ||
hooks: | ||
- id: fix-smartquotes | ||
- id: fix-spaces | ||
- id: fix-ligatures | ||
- id: forbid-bidi-controls | ||
|
||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.12.0 | ||
hooks: | ||
- id: pretty-format-ini | ||
args: [--autofix] | ||
- id: pretty-format-yaml | ||
args: [--autofix] | ||
# For the labeler GitHub Action, labels with spaces in them must | ||
# be put in quotes. However, the pretty-format-yaml hook will | ||
# remove the quotes which will break that action, so we should not | ||
# run this hook on `labeler.yml` (or certain other files). | ||
exclude: .github/labeler.yml|.pre-commit-search-and-replace.yaml | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
hooks: | ||
- id: codespell | ||
name: codespell (add false positives to pyproject.toml) | ||
args: [--write-changes] | ||
additional_dependencies: | ||
- tomli | ||
exclude: shortcodes|plugins|CODE_OF_CONDUCT.rst | ||
|
||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.17 | ||
hooks: | ||
- id: mdformat |
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
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.