Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
8
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
rc
rabbitmq_agents
Commits
a66bc175
Commit
a66bc175
authored
3 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Add pylint to pre commit and Github Action
parent
ade94fb8
No related branches found
No related tags found
2 merge requests
!131
WIP: Fix linting
,
!125
Update CI config
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/linting.yaml
+5
-2
5 additions, 2 deletions
.github/workflows/linting.yaml
.pre-commit-config.yaml
+4
-0
4 additions, 0 deletions
.pre-commit-config.yaml
with
9 additions
and
2 deletions
.github/workflows/linting.yaml
+
5
−
2
View file @
a66bc175
...
@@ -26,10 +26,10 @@ jobs:
...
@@ -26,10 +26,10 @@ jobs:
#options: "--check --diff"
#options: "--check --diff"
#src: "."
#src: "."
version
:
"
22.3.0"
version
:
"
22.3.0"
-
name
:
Install
flake8
-
name
:
Install
tools
run
:
|
run
:
|
python -m pip install --upgrade pip
python -m pip install --upgrade pip
pip install flake8
pip install flake8
pylint
#if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
#if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-
name
:
Lint with flake8
-
name
:
Lint with flake8
run
:
|
run
:
|
...
@@ -38,3 +38,6 @@ jobs:
...
@@ -38,3 +38,6 @@ jobs:
flake8 .
flake8 .
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
-
name
:
Lint with pylint
run
:
|
pylint app *.py
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
4
−
0
View file @
a66bc175
...
@@ -13,3 +13,7 @@ repos:
...
@@ -13,3 +13,7 @@ repos:
rev
:
4.0.1
rev
:
4.0.1
hooks
:
hooks
:
-
id
:
flake8
-
id
:
flake8
-
repo
:
https://github.com/PyCQA/pylint
rev
:
v2.13.8
hooks
:
-
id
:
pylint
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