Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
16
Issue boards
Milestones
Wiki
Code
Merge requests
10
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
Merge requests
!98
Feat GitHub action
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feat GitHub action
github/fork/diedpigs/feat-github-action
into
feat-cod-rmq
Overview
1
Commits
6
Pipelines
0
Changes
2
Merged
Bo-Chun Chen
requested to merge
github/fork/diedpigs/feat-github-action
into
feat-cod-rmq
4 years ago
Overview
1
Commits
6
Pipelines
0
Changes
2
Expand
Setup GitHub Actions for python linting on pull request.
👍
0
👎
0
Merge request reports
Compare
feat-cod-rmq
feat-cod-rmq (base)
and
latest version
latest version
511d3a74
6 commits,
1 year ago
2 files
+
35
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
.github/workflows/linting.yaml
0 → 100644
+
33
−
0
Options
name
:
Linting
on
:
[
push
,
pull_request
]
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Python
3.6
uses
:
actions/setup-python@v2
with
:
# Semantic version range syntax or exact version of a Python version
python-version
:
'
3.6'
# Optional - x64 or x86 architecture, defaults to x64
architecture
:
'
x64'
-
name
:
find trailing whitespace
uses
:
harupy/find-trailing-whitespace@master
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install flake8
#if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-
name
:
Lint with flake8
run
:
|
# stop the build if there are Python syntax errors or undefined names
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --max-line-length=79 --show-source --statistics
# 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
Loading