-
Notifications
You must be signed in to change notification settings - Fork 125
Bump Pylint to 2.17 and flake8 to 6.0 #359
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
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ac7c673
Update
bebound 44c36ee
Minor fix
bebound d4070e8
Enable no_self_use
bebound 1928f29
Minor fix
bebound c60042d
Minor fix
bebound 3a22e88
Minor fix
bebound 87cb41c
Minor fix
bebound 2fd99af
Fix flake8
bebound 998a0bc
Update setup.py
dciborow 4cd84e7
Update cli_pylintrc
dciborow 7a2c4fe
Update ext_pylintrc
dciborow a4bb458
Merge branch 'dev' into dciborow/pylint
dciborow 0fa543d
Merge branch 'dev' into dciborow/pylint
dciborow a071b95
Update .pylintrc
dciborow 1028936
Apply suggestions from code review
dciborow d207de8
Update setup.py
dciborow 23cb1db
Update azdev/operations/testtool/tests/test_profile_context.py
dciborow ec84363
Apply suggestions from code review
dciborow 513539f
Update ext_pylintrc
dciborow 664c6c8
Update cli_pylintrc
dciborow 074f8aa
Update .pylintrc
dciborow 510f0c1
Apply suggestions from code review
dciborow f07822b
Update azdev/operations/help/__init__.py
bebound a4623ce
Update setup.py
bebound ae28381
Merge branch 'dev' into dciborow/pylint
bebound 53f9b3d
Ignore missing-timeout
bebound 4d2e2a5
Merge branch 'dev' into dciborow/pylint
bebound 0e60fba
Minor fix
bebound f80f150
Enable deprecated-module
bebound 08e6383
Remove useless config
bebound File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix flake8
- Loading branch information
commit 2fd99af251f1547a6be61420d4d592c175ec414c
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for reformatting?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because flake8 upgrade to 6.0. Flake8 6.0 does not support inline comments for any of the keys, so comments should be put in newline.
Use this to prevent
ValueError: Error code '#' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'Related issue: PyCQA/flake8#1750 Azure/azure-cli#25370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
pylint==2.11.1, it installsmccabe0.6.1.flake8also requiresmccabe, and only 4.0.1 meet the version constraint.After upgrading PyLint 2.7,
mccabebecomes [required: >=0.6,<0.8, installed: 0.7.0], and flake8 becomes 6.0.0.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this issue still exist in pylint 2.17.4? https://pypi.org/project/pylint/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When run
azdev style, it usespylintrcand.flake8in CLI/Extension repo folder. If the files do not exist, it usecli.xxxxorext.xxxinazdev configfolder.CLI's
.flake8is updated in Azure/azure-cli#25370.