Skip to content

CI: fix flake C413, C414, C416 errors #29646

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 4 commits into from
Nov 16, 2019

Conversation

simonjayhawkins
Copy link
Member

@simonjayhawkins simonjayhawkins commented Nov 15, 2019

  • closes CI: lint checks failing #29644
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@simonjayhawkins simonjayhawkins added CI Continuous Integration Code Style Code style, linting, code_checks labels Nov 15, 2019
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @simonjayhawkins

Copy link
Member

@jschendel jschendel 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 overall; can you also pin the flake8-comprehensions version in the pre-commit configuration, so it automatically updates for people who've already installed pre-commit:

additional_dependencies: [flake8-comprehensions]

Just need to modify it to be flake8-comprehensions==3.1.0 (maybe >= would also be okay?)

@simonjayhawkins
Copy link
Member Author

Thanks @jschendel comments addressed

@@ -9,7 +9,7 @@ repos:
hooks:
- id: flake8
language: python_venv
additional_dependencies: [flake8-comprehensions]
additional_dependencies: [flake8-comprehensions>=3.1.0]
Copy link
Contributor

Choose a reason for hiding this comment

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

you should also change in environment.yaml

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @jreback done.

@jbrockmendel
Copy link
Member

we should merge this, i.e. not wait for the postgres thing to get sorted out

@jreback jreback added this to the 1.0 milestone Nov 16, 2019
@jreback
Copy link
Contributor

jreback commented Nov 16, 2019

sure lgtm

go for it

@simonjayhawkins simonjayhawkins merged commit 57490b1 into pandas-dev:master Nov 16, 2019
@simonjayhawkins simonjayhawkins deleted the flake8 branch November 16, 2019 01:24
Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: lint checks failing
5 participants