new: added pre-commit dev tool (#20)
This commit is contained in:
Родитель
9929b01065
Коммит
aecc87b2ae
|
@ -0,0 +1,22 @@
|
|||
repos:
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: '3.8.3'
|
||||
hooks:
|
||||
- id: flake8
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: check-ast
|
||||
- id: check-case-conflict
|
||||
- id: check-docstring-first
|
||||
- id: check-merge-conflict
|
||||
- id: check-executables-have-shebangs
|
||||
- id: check-json
|
||||
- id: pretty-format-json
|
||||
- id: debug-statements
|
||||
- id: detect-private-key
|
||||
- id: double-quote-string-fixer
|
||||
- id: end-of-file-fixer
|
||||
- id: fix-encoding-pragma
|
||||
- id: name-tests-test
|
||||
- id: trailing-whitespace
|
4
Makefile
4
Makefile
|
@ -67,5 +67,5 @@ install-tests: ## Install the package and test dependencies
|
|||
$(PYTHON_EXECUTABLE) -m pip install -e .[tests]
|
||||
|
||||
.PHONY: install-all
|
||||
install-all: ## Install the package, docs, and test dependencies
|
||||
$(PYTHON_EXECUTABLE) -m pip install -e .[all]
|
||||
install-all: ## Install the package, docs, and test dependencies as well as pre-commit hooks
|
||||
$(PYTHON_EXECUTABLE) -m pip install -e .[all] && pre-commit install
|
||||
|
|
Загрузка…
Ссылка в новой задаче