Skip to content

Remove the python3 porting mode from the codebase#4942

Merged
Pierre-Sassoulas merged 1 commit into
pylint-dev:mainfrom
Pierre-Sassoulas:remove-python3-porting-checker
Sep 1, 2021
Merged

Remove the python3 porting mode from the codebase#4942
Pierre-Sassoulas merged 1 commit into
pylint-dev:mainfrom
Pierre-Sassoulas:remove-python3-porting-checker

Conversation

@Pierre-Sassoulas
Copy link
Copy Markdown
Member

Type of Changes

Type
🔨 Refactoring

Description

It's possible to use the python3 porting checker from
an older pylint version. But it's not evolving anymore
and was costing resource to maintain.

@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Aug 31, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.11.0 milestone Aug 31, 2021
@Pierre-Sassoulas
Copy link
Copy Markdown
Member Author

@DanielNoord, I opened that following your suggestion in #4940

@DanielNoord
Copy link
Copy Markdown
Collaborator

Looks good, quite a lot of work!

I will rebase #4940 after this has been merged and see if there are any remaining issues.

@DanielNoord
Copy link
Copy Markdown
Collaborator

Doing a quick search through the repo I think the following issues can be closed after merging this PR:

#4174, #3928, #3487, #3051, #2674, #2582, #2130

These are all issues occurring with the --py3k flag.

Copy link
Copy Markdown
Member

@cdce8p cdce8p 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! As this is quite a large change, would you mind adding an entry in whatsnew?

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 1, 2021

Pull Request Test Coverage Report for Build 1189032117

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.3%) to 93.062%

Files with Coverage Reduction New Missed Lines %
pylint/lint/pylinter.py 1 93.15%
pylint/lint/run.py 1 74.67%
Totals Coverage Status
Change from base Build 1188977193: 0.3%
Covered Lines: 13212
Relevant Lines: 14197

💛 - Coveralls

It's possible to use the python3 porting checker from
an older pylint version. But it's not evolving anymore
and was costing resource to maintain.
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the remove-python3-porting-checker branch from 26d5bb5 to 807bee4 Compare September 1, 2021 06:16
@Pierre-Sassoulas
Copy link
Copy Markdown
Member Author

Thank you for checking the issue we can close @DanielNoord :)

@Pierre-Sassoulas Pierre-Sassoulas merged commit 5f96098 into pylint-dev:main Sep 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas deleted the remove-python3-porting-checker branch September 1, 2021 06:27
Pierre-Sassoulas added a commit that referenced this pull request Feb 26, 2022
* Add deleted msgid and symbol from the Python 3K+ checker and other deleted checks.

See #4942

Closes #5729

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
joshfriend pushed a commit to MichiganLabs/python-config that referenced this pull request Jun 13, 2022
timokoch pushed a commit to dumux/dumux that referenced this pull request Jun 22, 2022
The py2/3 compatibility layer has been removed pylint-dev/pylint#4942
timokoch pushed a commit to dumux/dumux that referenced this pull request Jun 22, 2022
The py2/3 compatibility layer has been removed pylint-dev/pylint#4942
iamsaywhat added a commit to emlid/code-quality that referenced this pull request Jun 29, 2022
When using pylint v2.14, you can get a bunch of errors like:
/action/lib/.automation/.python-lint:1:0: E0015: Unrecognized option found: no-space-check (unrecognized-option)
/action/lib/.automation/.python-lint:1:0: R0022: Useless option value for '--disable', 'print-statement' was removed from pylint, see pylint-dev/pylint#4942. (useless-option-value)
/action/lib/.automation/.python-lint:1:0: R0022: Useless option value for '--disable', 'parameter-unpacking' was removed from pylint, see pylint-dev/pylint#4942. (useless-option-value)
/action/lib/.automation/.python-lint:1:0: R0022: Useless option value for '--disable', 'unpacking-in-except' was removed from pylint, see pylint-dev/pylint#4942. (useless-option-value)

Most of them have beed removed here:
pylint-dev/pylint#4942

But raising exceptions when using removed options was only added in 2.14 in
pylint-dev/pylint#6826

We still need to actualize this config with new options, but at least
we won't get errors with this config.
eliflores added a commit to eliflores/coding-katas-python that referenced this pull request Jul 20, 2022
To fix:
```
************* Module /Users/lalyta/dev/coding-katas-python/.pylintrc
.pylintrc:1:0: R0022: Useless option value for '--disable', 'print-statement' was removed from pylint, see pylint-dev/pylint#4942. (useless-option-value)
.pylintrc:1:0: R0022: Useless option value for '--disable', 'parameter-unpacking' was removed from pylint, see pylint-dev/pylint#4942. (useless-option-value)
...
```
eliflores added a commit to eliflores/coding-katas-python that referenced this pull request Jul 20, 2022
To fix:
```
************* Module /Users/lalyta/dev/coding-katas-python/.pylintrc
.pylintrc:1:0: R0022: Useless option value for '--disable', 'print-statement' was removed from pylint, see pylint-dev/pylint#4942. (useless-option-value)
.pylintrc:1:0: R0022: Useless option value for '--disable', 'parameter-unpacking' was removed from pylint, see pylint-dev/pylint#4942. (useless-option-value)
...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Discussion or action around maintaining pylint or the dev workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants