Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre_push tasks to .pre-commit-config.yaml
- Loading branch information
1 parent
e7f63b1
commit 92908bd
Showing
1 changed file
with
54 additions
and
6 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,7 +1,55 @@ | ||
fail_fast: true | ||
repos: | ||
- hooks: | ||
- id: black | ||
language_version: python3 | ||
repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
- repo: local | ||
hooks: | ||
- id: static_word_checks | ||
args: | ||
- '--replace' | ||
entry: python -m tools.static_word_checks | ||
language: system | ||
name: Static Word Checks | ||
pass_filenames: false | ||
types: [ python ] | ||
|
||
- id: check_documentation | ||
entry: python -m tools.check_documentation | ||
language: system | ||
name: Check Documentation | ||
pass_filenames: false | ||
types: [ python ] | ||
|
||
- repo: https://github.com/psf/black | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
rev: 21.7b0 | ||
|
||
- repo: https://github.com/LilSpazJoekp/docstrfmt | ||
hooks: | ||
- id: docstrfmt | ||
rev: v1.4.0 | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
hooks: | ||
- id: flake8 | ||
rev: 3.9.2 | ||
|
||
- repo: https://github.com/ikamensh/flynt/ | ||
hooks: | ||
- id: flynt | ||
args: | ||
- '-ll' | ||
- '1000' | ||
- '-tc' | ||
language_version: python3.8 | ||
rev: '0.63' | ||
|
||
- repo: https://github.com/pycqa/isort | ||
hooks: | ||
- id: isort | ||
rev: 5.9.3 | ||
|
||
- repo: https://github.com/pycqa/pydocstyle | ||
hooks: | ||
- id: pydocstyle | ||
files: praw/.* | ||
rev: 6.1.1 |