Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Switch to pytest-pep8.#8001

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dstansby merged 1 commit intomatplotlib:masterfromQuLogic:pytest-pep8
Feb 2, 2017
Merged

Conversation

QuLogic
Copy link
Member

@QuLogicQuLogic commentedJan 31, 2017
edited
Loading

This is generally independent, so I opened it as a separate PR. It puts us one step closer to removing the top-levelconftest.py which will fix brokenness with#7974 on AppVeyor.

I chose to be explicit about which pep8 errors are being skipped so that we don't accidentally introduce even more issues.

@QuLogicQuLogic added this to the2.1 (next point release) milestoneJan 31, 2017
@QuLogic
Copy link
MemberAuthor

Rebased due to conflicts. Note, this PR is independent of the other pytest ones, and should be working at this point.

@QuLogicQuLogic changed the titleSwitch to pytest-pep8.[MRG] Switch to pytest-pep8.Feb 2, 2017
- python: 3.6
env: USE_PYTEST=true DELETE_FONT_CACHE=1TEST_ARGS=
env: USE_PYTEST=true DELETE_FONT_CACHE=1INSTALL_PEP8=pytest-pep8 RUN_PEP8=--pep8
Copy link
Member

Choose a reason for hiding this comment

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

Can you run pep8 without installing it? The two options seem redundant.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the one option handles optionally installing it on builds that use it, the other handles adding the argument to running pytest.

Copy link
Member

Choose a reason for hiding this comment

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

It be easier to have a boolean flag IMO

Copy link
Contributor

Choose a reason for hiding this comment

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

Then you have to have bash code that checks the boolean and manually install. I like this style better because the environment variables are always defined--less branching. It actually simplifies.travis.yml.

@@ -1,2 +1,134 @@
[pytest]
norecursedirs = .git build ci dist extern release tools unit venv
pep8ignore =
* E111 E114 E115 E116 E121 E122 E123 E124 E125 E126 E127 E128 E129 E131 E226 E240 E241 E242 E243 E244 E245 E246 E247 E248 E249 E265 E266 E704 W503
Copy link
Member

Choose a reason for hiding this comment

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

If I understand this file properly, we are just plainly ignoring a bunch of errors for each file?
I don't like our old system very much, but how is that going to be useful?

Copy link
Contributor

Choose a reason for hiding this comment

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

We could enable them again one-by-one? Maybe?shrugs

Could replace* with the files we don't expect to pass.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This line ignores errors based on ourexisting config +pep8's default ignore list. I tried not ignoring these globally, but they apply to alot of files, so it's very difficult to limit this to just the files that need it.

The files we don't expect to pass are already listed below with the specific ignores.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

E121,E123,E126,E226,E24,E704 are the defaults that come frompep8.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see now--that's what I get for a quick reply.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Wait, I take some of that back. Some of these ignores apply to many files, butsome apply to no files at all. I will remove the redundant ones.

Copy link
Member

@dstansbydstansbyFeb 2, 2017
edited
Loading

Choose a reason for hiding this comment

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

Presumably it would be really tedious but not too hard to slowly fix each PEP8 violation for each file and remove all the lines below one at a time.

Copy link
Member

Choose a reason for hiding this comment

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

This will create huge amount of conflicts with the rest of the pull requests.

Copy link
Contributor

@dopplershiftdopplershift left a comment

Choose a reason for hiding this comment

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

👍

@dstansbydstansby changed the title[MRG] Switch to pytest-pep8.Switch to pytest-pep8.Feb 2, 2017
@dstansbydstansby merged commit1f999f4 intomatplotlib:masterFeb 2, 2017
@QuLogicQuLogic deleted the pytest-pep8 branchFebruary 2, 2017 23:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@NelleVNelleVNelleV left review comments

@dopplershiftdopplershiftdopplershift approved these changes

@dstansbydstansbydstansby left review comments

Assignees
No one assigned
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@NelleV@dopplershift@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp