Skip to content

STYLE: add black makefile & skip some dirs #27231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2019
Merged

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Jul 4, 2019

No description provided.

@jreback jreback added the Code Style Code style, linting, code_checks label Jul 4, 2019
@jreback jreback added this to the 0.25.0 milestone Jul 4, 2019
@jreback
Copy link
Contributor Author

jreback commented Jul 4, 2019

cc @jorisvandenbossche

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -15,8 +12,11 @@ build: clean_pyc
lint-diff:
git diff upstream/master --name-only -- "*.py" | xargs flake8

black:
black . --exclude '(asv_bench/env|\.egg|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this to speed up (to prevent black from traversing those dirs)? as some of those dirs should in principle never contain .py files (eg build, .git or .mypy_cache)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no these are black defaults for exclude except for the asv env one
i am unsure whether the defaults are there if u override

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, OK, I see. Yeah, I think it is not additive, so we need to do this .. (for this it would be nice to be able to put this in a pyproject.toml, maybe we should look at that again)

@jreback jreback merged commit a61218d into pandas-dev:master Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants