Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
62e03ae4
Commit
62e03ae4
authored
5 years ago
by
Martin Bauer
Browse files
Options
Downloads
Plain Diff
Merge branch 'pre-push-hook' into 'master'
Pre-push hook See merge request
!36
parents
bd672752
edf5ca18
No related branches found
No related tags found
1 merge request
!36
Pre-push hook
Pipeline
#17397
passed
5 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.flake8
+1
-1
1 addition, 1 deletion
.flake8
pre-push
+22
-0
22 additions, 0 deletions
pre-push
with
23 additions
and
1 deletion
.flake8
+
1
−
1
View file @
62e03ae4
...
@@ -3,4 +3,4 @@ max-line-length=120
...
@@ -3,4 +3,4 @@ max-line-length=120
exclude=pystencils/jupyter.py,
exclude=pystencils/jupyter.py,
pystencils/plot.py
pystencils/plot.py
pystencils/session.py
pystencils/session.py
ignore = W293 W503 W291
ignore = W293 W503 W291
C901
This diff is collapsed.
Click to expand it.
pre-push
0 → 100755
+
22
−
0
View file @
62e03ae4
#!/usr/bin/env bash
# Checks run before every push
# has to be copied to .git/hooks
echo
"Running pre-push hook"
echo
"Running flak8 check"
flake8
--append-config
=
.flake8 pystencils
# $? stores exit value of the last command
if
[
$?
-ne
0
]
;
then
echo
"flake8 failed"
exit
1
fi
python3 setup.py quicktest
# $? stores exit value of the last command
if
[
$?
-ne
0
]
;
then
echo
"quicktest failed"
exit
1
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment