-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.hooks4git.ini
More file actions
36 lines (31 loc) · 993 Bytes
/
.hooks4git.ini
File metadata and controls
36 lines (31 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[vars]
STAGED_FILES_IF_ANY = h4g/get_staged_files --format csv --prefix "--filename=" --suffix ""
[scripts]
flake8 = flake8 --max-line-length=119 --exclude .git,build,dist ${STAGED_FILES_IF_ANY}
pytest = python -m pytest --cov=hooks4git tests/
travis_linter = ./node_modules/.bin/travis-lint .travis.yml
md_linter = ./node_modules/.bin/markdownlint README.md
bandit = bandit -r hooks4git
checkbranch = h4g/check_branch_name.sh "^(feature|bugfix|hotfix|fix)\/.+"
black = black . --line-length=119 --check -t py36
make_reqs = pipenv run pipenv_to_requirements -f
pipenv = pipenv install --dev
[hooks.pre-commit.scripts]
checkbranch = checkbranch
check1 = flake8
check2 = black
[hooks.pre-push.scripts]
doc_linter = md_linter
tests = pytest
; ci_linter = travis_linter
security = bandit
[hooks.post-merge.scripts]
update_deps = pipenv
make_reqs = make_reqs
[hooks.ci.scripts]
update_deps = pipenv
doc_linter = md_linter
check1 = flake8
security = bandit
tests = pytest
make_reqs = make_reqs