Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csentry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Harrisson
csentry
Commits
5b586fb5
Commit
5b586fb5
authored
6 years ago
by
Benjamin Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Add pre-commit hooks
- black - flake8 See
https://pre-commit.com
parent
504d018b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+10
-0
10 additions, 0 deletions
.pre-commit-config.yaml
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
with
12 additions
and
0 deletions
.pre-commit-config.yaml
0 → 100644
+
10
−
0
View file @
5b586fb5
repos
:
-
repo
:
https://github.com/ambv/black
rev
:
stable
hooks
:
-
id
:
black
language_version
:
python3.6
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v1.3.0
hooks
:
-
id
:
flake8
This diff is collapsed.
Click to expand it.
pyproject.toml
0 → 100644
+
2
−
0
View file @
5b586fb5
[tool.black]
py36
=
true
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