Skip to content

Commit a61218d

Browse files
authored
STYLE: add black makefile & skip some dirs (#27231)
1 parent 2efb607 commit a61218d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
tseries: pandas/_libs/lib.pyx pandas/_libs/tslib.pyx pandas/_libs/hashtable.pyx
2-
python setup.py build_ext --inplace
3-
4-
.PHONY : develop build clean clean_pyc tseries doc
1+
.PHONY : develop build clean clean_pyc doc lint-diff black
52

63
clean:
74
-python setup.py clean
@@ -15,8 +12,11 @@ build: clean_pyc
1512
lint-diff:
1613
git diff upstream/master --name-only -- "*.py" | xargs flake8
1714

15+
black:
16+
black . --exclude '(asv_bench/env|\.egg|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)'
17+
1818
develop: build
19-
-python setup.py develop
19+
python setup.py develop
2020

2121
doc:
2222
-rm -rf doc/build doc/source/generated

ci/code_checks.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
5656
black --version
5757

5858
MSG='Checking black formatting' ; echo $MSG
59-
black . --check
59+
black . --check --exclude '(asv_bench/env|\.egg|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)'
6060
RET=$(($RET + $?)) ; echo $MSG "DONE"
6161

6262
# `setup.cfg` contains the list of error codes that are being ignored in flake8

0 commit comments

Comments
 (0)