Skip to content

Commit 707864a

Browse files
committed
Merge pull request #12035 from jreback/lint2
CI: lint for rest of pandas
2 parents 449ab6b + eba98eb commit 707864a

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,4 @@ after_script:
175175
- source activate pandas && ci/print_versions.py
176176
- ci/print_skipped.py /tmp/nosetests.xml
177177
- ci/lint.sh
178+
- ci/lint_ok_for_now.sh

ci/lint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ echo "inside $0"
44

55
source activate pandas
66

7-
echo flake8 pandas/core --statistics
8-
flake8 pandas/core --statistics
7+
for path in 'core'
8+
do
9+
echo "linting -> pandas/$path"
10+
flake8 pandas/$path --filename '*.py' --statistics -q
11+
done
912

1013
RET="$?"
1114

ci/lint_ok_for_now.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
echo "inside $0"
4+
5+
source activate pandas
6+
7+
for path in 'io' 'stats' 'computation' 'tseries' 'util' 'compat' 'tools' 'sparse' 'tests'
8+
do
9+
echo "linting [ok_for_now] -> pandas/$path"
10+
flake8 pandas/$path --filename '*.py' --statistics -q
11+
done
12+
13+
RET="$?"
14+
15+
# we are disabling the return code for now
16+
# to have Travis-CI pass. When the code
17+
# passes linting, re-enable
18+
#exit "$RET"
19+
20+
exit 0

0 commit comments

Comments
 (0)