Skip to content

Commit b75b90a

Browse files
committed
🐛 allow different lint command
1 parent 2288f9a commit b75b90a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

templates/travis.yml.jj2

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
{% if lint_command %}
2+
{% set lint = lint_command%}
3+
{% else %}
4+
{% set lint = 'flake8' %}
5+
{% endif %}
6+
17
sudo: false
28
dist: xenial
39
language: python
@@ -36,7 +42,7 @@ stages:
3642
python: 3.6
3743
stage: lint
3844
install: pip install flake8
39-
script: flake8
45+
script: {{ lint }}
4046

4147
jobs:
4248
include:

0 commit comments

Comments
 (0)