File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 52
52
# ## LINTING ###
53
53
if [[ -z " $CHECK " || " $CHECK " == " lint" ]]; then
54
54
55
+ echo " black --version"
56
+ black --version
57
+
58
+ MSG=' Checking black formatting' ; echo $MSG
59
+ black pandas --check
60
+ RET=$(( $RET + $? )) ; echo $MSG " DONE"
61
+
55
62
# `setup.cfg` contains the list of error codes that are being ignored in flake8
56
63
57
64
echo " flake8 --version"
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ dependencies:
16
16
- cython>=0.28.2
17
17
18
18
# code checks
19
+ - black
19
20
- cpplint
20
21
- flake8
21
22
- flake8-comprehensions # used by flake8, linting of unnecessary comprehensions
Original file line number Diff line number Diff line change @@ -12,8 +12,11 @@ tag_prefix = v
12
12
parentdir_prefix = pandas-
13
13
14
14
[flake8]
15
- max-line-length = 79
15
+ max-line-length = 88
16
16
ignore =
17
+ E501, # longer line length
18
+ E203, # space before : (needed for how black formats slicing)
19
+ E231, # space after comma (needed for how black formats getitem with final comma)
17
20
W503, # line break before binary operator
18
21
W504, # line break after binary operator
19
22
E402, # module level import not at top of file
You can’t perform that action at this time.
0 commit comments