From 507e7958db41e870b53d3149c80b882b29436daa Mon Sep 17 00:00:00 2001 From: chfw Date: Tue, 14 Jan 2020 22:26:39 +0000 Subject: [PATCH] :green_heart: make travis green --- .moban.yml | 1 - .travis.yml | 3 +-- lint.sh | 2 ++ pypi-mobans-pkg.yml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 lint.sh diff --git a/.moban.yml b/.moban.yml index 4f7ba6f..dc036d1 100644 --- a/.moban.yml +++ b/.moban.yml @@ -19,4 +19,3 @@ targets: - output: "CHANGELOG.rst" configuration: changelog.yml template: CHANGELOG.rst.jj2 - - ".github/workflows/pythonpublish.yml": "pythonpublish.yml" diff --git a/.travis.yml b/.travis.yml index 2a60fef..31c2d88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,8 +37,7 @@ stages: submodules: false python: 3.6 stage: lint - install: pip install flake8 - script: flake8 + script: bash lint.sh .moban: &moban <<: *disable_global diff --git a/lint.sh b/lint.sh new file mode 100644 index 0000000..48b4fd4 --- /dev/null +++ b/lint.sh @@ -0,0 +1,2 @@ +pip install flake8 +flake8 . --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long diff --git a/pypi-mobans-pkg.yml b/pypi-mobans-pkg.yml index d15239d..285dd0c 100644 --- a/pypi-mobans-pkg.yml +++ b/pypi-mobans-pkg.yml @@ -16,3 +16,4 @@ setup_py: false rsrcdir: docs/source rbuilddir: docs/_build mastertocmaxdepth: 3 +lint_command: bash lint.sh \ No newline at end of file