Skip to content

Conversation

MarcoGorelli
Copy link
Member

- black=20.8b1
- cpplint
- flake8<3.8.0 # temporary pin, GH#34150
- flake8
Copy link
Member

Choose a reason for hiding this comment

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

you can probably remove the pip install of pyflakes>=2.2.0 now.

@jbrockmendel jbrockmendel added the CI Continuous Integration label Sep 29, 2020
@MarcoGorelli
Copy link
Member Author

Turns out this can be simplified - no need for a fork/mirror, we can just pin flake8-rst and flake8 in additional_dependencies and run it as a local hook

@fangchenli
Copy link
Member

The new pip dependency resolver will become default soon https://discuss.python.org/t/announcement-pip-20-2-release/4863. I tested it earlier. It got stuck if flake8 is pinned using < sign.

Also

The conflict is caused by:
    The user requested pyflakes>=2.2.0
    flake8 3.7.9 depends on pyflakes<2.2.0 and >=2.1.0

So we probibly need to merge this before pip 20.3 release.

@jreback jreback added this to the 1.2 milestone Oct 7, 2020
@jreback
Copy link
Contributor

jreback commented Oct 7, 2020

can you merge master and ping on green.

Is there a way to have an option in code_checks.sh that actually runs the appropriate pre-commit hook? that way we have a single source of truth, and you can actually still run them (of course have to avoid running these on the CI from the script as well).

@MarcoGorelli
Copy link
Member Author

Sure, done

Is there a way to have an option in code_checks.sh that actually runs the appropriate pre-commit hook?

Have opened #36956 for this

@jreback
Copy link
Contributor

jreback commented Oct 10, 2020

lgtm. can you merge master. merge on green (just to be sure nothing broken since this).

@jreback jreback merged commit 1f7d8b0 into pandas-dev:master Oct 10, 2020
@jreback
Copy link
Contributor

jreback commented Oct 10, 2020

thanks @MarcoGorelli

@MarcoGorelli MarcoGorelli deleted the flake8-rst-pre-commit branch October 11, 2020 08:36
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Linting errors from flake >= 3.8.1

7 participants