mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2024-12-23 14:51:49 +01:00
add mypy & isort as pre-commit hooks
This commit is contained in:
parent
2cc1abedd7
commit
c39ccc0d9b
@ -1,12 +1,9 @@
|
|||||||
|
fail_fast: true
|
||||||
|
default_stages: [commit]
|
||||||
|
exclude: ".git"
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pausan/cblack
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: release-22.3.0
|
|
||||||
hooks:
|
|
||||||
- id: cblack
|
|
||||||
name: cblack
|
|
||||||
description: "Black: The uncompromising Python code formatter - 2 space indent fork"
|
|
||||||
entry: cblack . -l 100
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
rev: v2.3.0
|
rev: v2.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
@ -14,3 +11,21 @@ repos:
|
|||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
|
||||||
|
- repo: https://github.com/pausan/cblack
|
||||||
|
rev: release-22.3.0
|
||||||
|
hooks:
|
||||||
|
- id: cblack
|
||||||
|
name: cblack
|
||||||
|
description: "Black: The uncompromising Python code formatter - 2 space indent fork"
|
||||||
|
entry: cblack . -l 100
|
||||||
|
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 23.1.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
|
||||||
|
- repo: https://github.com/PyCQA/isort
|
||||||
|
rev: 5.12.0
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
Loading…
Reference in New Issue
Block a user