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

Enable more linting#292

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

Closed
jayvdb wants to merge1 commit intohtml5lib:masterfromjayvdb:misc-tidy
Closed

Conversation

jayvdb
Copy link
Contributor

@jayvdbjayvdb commentedJul 26, 2016
edited
Loading

WIP-ish PR. Interested to see if there are any parts that are objectionable.

I'm happy to split it into smaller chunks for different types of lint issues, with nice commit messages.

Also, I can add more fine tuning by implementing my ownflake8-putty, which allows rules to be disabled per-file and even per-line without modifying the source, so new rules can be enforced for new code while existing lint errors in old code are ignored.


This change is Reviewable

@gsnedders
Copy link
Member

In general, <3. Thanks for doing this! I'm pretty sure I'd rather not have some of the changes because I disagree with the lint, but I think that's a small number of the changes; will have a close look through tomorrow.

FWIW, there was some vague intent to just get rid offlake8-run.sh given it's pretty gratuitous now. Also, when it comes to pylint, if we're going to have it in Travis/tox we should probably pin it to one exact version to avoid breakage when it gets updated (this really goes for flake8 and its dependencies too, but I've far more experience of pylint changing things like the disable strings from version-to-version).

@jayvdb
Copy link
ContributorAuthor

No worries. Im just waking up, so I'll focus on cleaning up only the actual provable user-facing bugs herein until I hear more from you.


import urllib.request
import urllib.error
import urllib.parse
import urllib.robotparser
import md5
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Testing this change turned into a mini project#294 .

@jayvdb
Copy link
ContributorAuthor

I split off the CI and pylint changes to be#293.

@willkgwillkg added this to the1.0 milestoneOct 3, 2017
@willkg
Copy link
Contributor

@jayvdb We've landed a bunch of changes, but I'm a little fuzzy on whether all the important things in this PR have been covered now or not. Are there outstanding things we want in this PR or can we close it out?

@jayvdb
Copy link
ContributorAuthor

Quite a few parts are now simpler, but still heaps to do. I rebased and revised this last week, but was waiting for the other PRs to be merged, and was doing Google Code-in launch prep.
I'll push my revised version asap.

@willkgwillkg removed this from the1.0 milestoneDec 4, 2017
@willkg
Copy link
Contributor

I want to get 1.0.0 out, so I'm going to drop this from the milestone.

Thank you for working on it! We can definitely land this in the future.

@hugovk
Copy link
Contributor

At this point in time, I'd suggest just running Black and let it decide on the style choices.

gsnedders, jayvdb, and ambv reacted with thumbs up emoji

@gsnedders
Copy link
Member

gsnedders commentedFeb 26, 2020
edited
Loading

@hugovk Let's try and minimise the number of open PRs when we do that (i.e., wait till after we've merged many of the currently open PRs), given it'll cause conflicts with everything, but yes, applying black seems sane. (Keeping this open in lieu of opening a new issue because I'm about to go to bed 🙃)

hugovk reacted with thumbs up emoji

@ambv
Copy link
Member

ambv commentedMar 1, 2023

I think this is too outdated with the current state of the code to recover. Too many conflicts. Re-open if you think I'm wrong.

List of conflicts from an attempt to merge
CONFLICT (modify/delete): .travis.yml deleted in master and modified in HEAD.  Version HEAD of .travis.yml left in tree.Auto-merging debug-info.pyAuto-merging html5lib/_inputstream.pyCONFLICT (content): Merge conflict in html5lib/_inputstream.pyAuto-merging html5lib/_tokenizer.pyAuto-merging html5lib/_utils.pyCONFLICT (content): Merge conflict in html5lib/_utils.pyAuto-merging html5lib/filters/sanitizer.pyCONFLICT (content): Merge conflict in html5lib/filters/sanitizer.pyAuto-merging html5lib/html5parser.pyCONFLICT (content): Merge conflict in html5lib/html5parser.pyAuto-merging html5lib/serializer.pyAuto-merging html5lib/tests/conftest.pyCONFLICT (content): Merge conflict in html5lib/tests/conftest.pyAuto-merging html5lib/tests/support.pyAuto-merging html5lib/tests/test_encoding.pyAuto-merging html5lib/tests/test_parser2.pyAuto-merging html5lib/tests/test_serializer.pyCONFLICT (content): Merge conflict in html5lib/tests/test_serializer.pyAuto-merging html5lib/tests/test_stream.pyAuto-merging html5lib/tests/test_treewalkers.pyCONFLICT (content): Merge conflict in html5lib/tests/test_treewalkers.pyAuto-merging html5lib/tests/tokenizer.pyAuto-merging html5lib/treeadapters/__init__.pyAuto-merging html5lib/treeadapters/genshi.pyAuto-merging html5lib/treeadapters/sax.pyCONFLICT (content): Merge conflict in html5lib/treeadapters/sax.pyAuto-merging html5lib/treebuilders/__init__.pyCONFLICT (content): Merge conflict in html5lib/treebuilders/__init__.pyAuto-merging html5lib/treebuilders/base.pyCONFLICT (content): Merge conflict in html5lib/treebuilders/base.pyAuto-merging html5lib/treebuilders/etree_lxml.pyAuto-merging parse.pyCONFLICT (content): Merge conflict in parse.pyAuto-merging requirements-test.txtCONFLICT (content): Merge conflict in requirements-test.txtAuto-merging setup.pyAuto-merging tox.iniCONFLICT (content): Merge conflict in tox.iniAuto-merging utils/entities.pyCONFLICT (modify/delete): utils/spider.py deleted in master and modified in HEAD.  Version HEAD of utils/spider.py left in tree.Automatic merge failed; fix conflicts and then commit the result.

In general, while I'm a big supporter of linting, I feel like flake8 and pylint cover a lot of the same ground and using both in a project is too much.

I agree with@hugovk that after we go over the other open PRs in the repo we should adopt auto-formatting, which would further cut down on the needed lint rules.

Then I'd figure out what the lowest supported Python version should be for html5lib going forward.

Finally, after all that we can return to refine the adopted linting.

@ambvambv closed thisMar 1, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@jayvdb@gsnedders@willkg@hugovk@ambv

[8]ページ先頭

©2009-2025 Movatter.jp