Skip to content

Commit

Permalink
Add pre-push config (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliandi authored and tellarin committed Jun 27, 2019
1 parent a313d33 commit 007f812
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Python/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
default_stages: [push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-autopep8
rev: master
hooks:
- id: autopep8
8 changes: 8 additions & 0 deletions Python/build.ci.cmd
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
ECHO ==============================PYTHON BUILD/TEST START==============================

ECHO # Installing Requirements

CALL pip install -r .\requirements.txt

CALL pre-commit install --hook-type pre-push

pushd libraries\resource-generator


REM Dependencies
ECHO.
ECHO # Installing Resource Generator Dependencies
CALL pip install -r .\requirements.txt


REM Build Resources
ECHO.
ECHO # Building Resources
Expand Down
5 changes: 5 additions & 0 deletions Python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
emoji
grapheme
pre-commit
autopep8
flake8
2 changes: 0 additions & 2 deletions Python/tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
pytest-cov
pytest>=3.2.0
emoji
grapheme

0 comments on commit 007f812

Please sign in to comment.