Skip to content

Commit fa4ebbb

Browse files
add to CI code checks
1 parent ed4e7ee commit fa4ebbb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ci/code_checks.sh

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ fi
5252
### LINTING ###
5353
if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
5454

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+
5562
# `setup.cfg` contains the list of error codes that are being ignored in flake8
5663

5764
echo "flake8 --version"

environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- cython>=0.28.2
1717

1818
# code checks
19+
- black
1920
- cpplint
2021
- flake8
2122
- flake8-comprehensions # used by flake8, linting of unnecessary comprehensions

0 commit comments

Comments
 (0)