Skip to content

Commit 2232e59

Browse files
committed
Updated files with git_helper
1 parent 62f915b commit 2232e59

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

.ci/travis_deploy_conda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e -x
55

66
if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
7-
if [ -z "$TRAVIS_TAG" ] && [ "$TRAVIS_COMMIT_MESSAGE" == "Bump Version*" ]; then
7+
if ([ -z "$TRAVIS_TAG" ] && [ "$TRAVIS_COMMIT_MESSAGE" == "Bump Version*" ]); then
88
echo "Deferring building conda package because this is release"
99
else
1010

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
include:
3131
- stage: deploy_pypi
3232
python: "3.6"
33+
script: skip
3334
deploy:
3435
on:
3536
tags: true

lint_roller.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
#!/bin/bash
22

33
# fix these
4-
declare errors="E301 E302 E303 E304 E305 E306 E502 E265 W291 W292 W293 W391 E226 E225 E241 E231 "
4+
declare errors="E301,E303,E304,E305,E306,E502,W291,W293,W391,E226,E225,E241,E231,"
5+
6+
# Be belligerent for these
7+
declare belligerent="W292,E265,"
58

69
# Only warn for these
7-
declare warnings="E101 E111 E112 E113 E121 E122 E124 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 "
10+
declare warnings="E101,E111,E112,E113,E121,E122,E124,E125,E127,E128,E129,E131,E133,E201,E202,E203,E211,E222,E223,E224,E225,E227,E228,E242,E251,E261,E262,E271,E272,E402,E703,E711,E712,E713,E714,E721,W504,E302,"
11+
812

913
if [ -z "$(git status --porcelain --untracked-files=no)" ] || [ "$1" == "-f" ]; then
1014
# Working directory clean
1115

1216
echo "Running autopep8"
1317

1418
autopep8 --in-place --select "$errors" -a --recursive domdf_python_tools/
15-
>&2 flake8 --select "$errors" domdf_python_tools/
19+
autopep8 --in-place --select "$belligerent" -a -a -a -a -a --recursive domdf_python_tools/
20+
>&2 flake8 --select "$errors$belligerent" domdf_python_tools/
1621

1722

1823
autopep8 --in-place --select "$errors" -a --recursive tests/
19-
>&2 flake8 --select "$errors" tests/
24+
autopep8 --in-place --select "$belligerent" -a -a -a -a -a --recursive tests/
25+
>&2 flake8 --select "$warnings" tests/
2026

2127

2228
echo "Running flake8"

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ commands =
3030

3131
[testenv:docs]
3232
basepython = python3.6
33-
skip_install = true
34-
deps = -r{toxinidir}/doc-source/requirements.txt
35-
commands = sphinx-build doc-source doc-source/build
33+
changedir={toxinidir}/doc-source
34+
deps = -r{toxinidir}/requirements.txt
35+
-r{toxinidir}/doc-source/requirements.txt
36+
commands = sphinx-build -M html . ./build
3637

3738
[testenv:lint]
3839
basepython = python3.6
@@ -49,5 +50,5 @@ commands =
4950

5051
[flake8]
5152
max-line-length = 120
52-
select = E301 E302 E303 E304 E305 E306 E502 E265 W291 W292 W293 W391 E226 E225 E241 E231 E101 E111 E112 E113 E121 E122 E124 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504
53+
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 E101 E111 E112 E113 E121 E122 E124 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 W292 E265
5354
exclude = .git,__pycache__,doc-source,old,build,dist,make_conda_recipe.py,__pkginfo__.py,setup.py

0 commit comments

Comments
 (0)