Skip to content

Clean up tests that had min_pyver=3.8 test setting#8811

Merged
jacobtylerwalls merged 3 commits intopylint-dev:mainfrom
jacobtylerwalls:more-cleanups
Jul 3, 2023
Merged

Clean up tests that had min_pyver=3.8 test setting#8811
jacobtylerwalls merged 3 commits intopylint-dev:mainfrom
jacobtylerwalls:more-cleanups

Conversation

@jacobtylerwalls
Copy link
Copy Markdown
Member

Type of Changes

Type
🔨 Refactoring

Description

Follow-up to #8792.

Closes #6306

@jacobtylerwalls jacobtylerwalls added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Jul 1, 2023
@jacobtylerwalls jacobtylerwalls added this to the 3.0.0a7 milestone Jul 1, 2023
@jacobtylerwalls jacobtylerwalls requested a review from cdce8p as a code owner July 1, 2023 16:56
Comment on lines -386 to -388
- Fix ``used-before-assignment`` for functions/classes defined in type checking guard.

Closes #7368 (`#7368 <https://github.com/pylint-dev/pylint/issues/7368>`_)
Copy link
Copy Markdown
Member Author

@jacobtylerwalls jacobtylerwalls Jul 1, 2023

Choose a reason for hiding this comment

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

Other cleanup 1: this was given twice, see above under 2.15.2.

or not isinstance(node.args[0], nodes.Name)
or not isinstance(node.args[1], nodes.Name)
or node_frame_class(node) is None
# TODO: PY38: Use walrus operator, this will also fix the mypy issue
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Other cleanup 2: resolve this TODO

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 1, 2023

Codecov Report

Merging #8811 (90459ef) into main (1da5183) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8811   +/-   ##
=======================================
  Coverage   95.89%   95.89%           
=======================================
  Files         173      173           
  Lines       18510    18511    +1     
=======================================
+ Hits        17750    17751    +1     
  Misses        760      760           
Impacted Files Coverage Δ
pylint/checkers/refactoring/refactoring_checker.py 98.23% <ø> (ø)

... and 1 file with indirect coverage changes

Copy link
Copy Markdown
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Look great already ! Shouldn't we add py-version instead of removing rc file when the py-version is not already set ?

Comment thread tests/functional/g/generic_alias/generic_alias_side_effects.rc
@Pierre-Sassoulas
Copy link
Copy Markdown
Member

Need a rebase for the primer to work ?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 3, 2023

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 90459ef

@jacobtylerwalls jacobtylerwalls merged commit 2e3798a into pylint-dev:main Jul 3, 2023
@jacobtylerwalls jacobtylerwalls deleted the more-cleanups branch July 3, 2023 13:50
@jacobtylerwalls jacobtylerwalls removed the request for review from cdce8p July 3, 2023 13:50
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.

Cleanup after we drop support for Python 3.7

2 participants