-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tidy .travis.yml * run unittests under multiple python versions * add [pycodestyle] section in tox.ini so pycodestyle can be run with no args
- Loading branch information
1 parent
dd0bd83
commit 6227814
Showing
4 changed files
with
72 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# When we run cylc commands, there are processes being forked, that get a | ||
# new working directory. As .coveragerc contains relatives paths, it fails | ||
# to produce the correct coverage, unless we use absolute paths. The `sed` | ||
# call below tries to define the data_file, and sources locations for Travis. | ||
sed -e "s|data_file=.coverage|data_file=${TRAVIS_BUILD_DIR}/.coverage|g; s|./bin|${TRAVIS_BUILD_DIR}/bin|g; s|./lib|${TRAVIS_BUILD_DIR}/lib|g" .coveragerc > /tmp/.coveragerc | ||
# And some tests fail if we touch files in the git working directory, due | ||
# to Cylc's version appearing with the "dirty" suffix. To avoid this, we |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[pycodestyle] | ||
ignore= | ||
; module level import not at top of file | ||
E402, | ||
; line break before binary operator | ||
W503 | ||
exclude= | ||
./lib/jinja2, | ||
./lib/markupsafe |