Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
graintracking
DCT
Commits
b485b805
Commit
b485b805
authored
3 years ago
by
Joao P C Bertoldo
Browse files
Options
Downloads
Patches
Plain Diff
add flake8
parent
1fc5c952
No related branches found
Branches containing commit
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
+6
-1
6 additions, 1 deletion
.pre-commit-config.yaml
pyproject.toml
+4
-1
4 additions, 1 deletion
pyproject.toml
with
10 additions
and
2 deletions
.pre-commit-config.yaml
+
6
−
1
View file @
b485b805
...
...
@@ -30,4 +30,9 @@ repos:
rev
:
20.8b1
# Replace by any tag/version: https://github.com/psf/black/tags
hooks
:
-
id
:
black
language_version
:
python3.8
# Should be a command that runs python3.6+
\ No newline at end of file
language_version
:
python3.8
# Should be a command that runs python3.6+
-
repo
:
https://github.com/pycqa/flake8
rev
:
'
3.9.0'
# pick a git hash / tag to point to
hooks
:
-
id
:
flake8
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pyproject.toml
+
4
−
1
View file @
b485b805
[tool.black]
line-length
=
127
target-version
=
[
'py36'
,
'py37'
,
'py38'
]
include
=
'\.pyi?$'
\ No newline at end of file
include
=
'\.pyi?$'
[flake8]
max-line-length
=
127
\ No newline at end of file
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