Skip to content
Snippets Groups Projects
Commit 7c5d62bf authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Make lint jobs only run on merge requests

parent a77bbcf5
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,8 @@ black: ...@@ -25,6 +25,8 @@ black:
stage: lint stage: lint
script: script:
- black --check --diff . - black --check --diff .
only:
- merge_requests
flake8: flake8:
tags: tags:
...@@ -32,6 +34,8 @@ flake8: ...@@ -32,6 +34,8 @@ flake8:
stage: lint stage: lint
script: script:
- flake8 . - flake8 .
only:
- merge_requests
pylint: pylint:
tags: tags:
...@@ -39,3 +43,5 @@ pylint: ...@@ -39,3 +43,5 @@ pylint:
stage: lint stage: lint
script: script:
- pylint app *.py - pylint app *.py
only:
- merge_requests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment