Skip to content
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

[FileState] Deprecation enactment for 3.0.0 #8407

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
🔨 Refactoring

Description

modname and msg_store are now required to be given in FileState, collect_block_lines has also been removed.

@Pierre-Sassoulas Pierre-Sassoulas added Breaking changes for 3.0 🦤 Maintenance Discussion or action around maintaining pylint or the dev workflow labels Mar 8, 2023
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.0.0 milestone Mar 8, 2023
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the file-state-deprecation-enactment branch from 80bacb2 to f70a2f4 Compare March 8, 2023 21:14
@codecov
Copy link

codecov bot commented Mar 8, 2023

Codecov Report

Merging #8407 (ff744a0) into main (44180da) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head ff744a0 differs from pull request most recent head 402939c. Consider uploading reports for the commit 402939c to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8407      +/-   ##
==========================================
+ Coverage   95.66%   95.67%   +0.01%     
==========================================
  Files         176      176              
  Lines       18527    18510      -17     
==========================================
- Hits        17723    17709      -14     
+ Misses        804      801       -3     
Impacted Files Coverage Δ
pylint/utils/file_state.py 97.80% <ø> (+2.38%) ⬆️
pylint/lint/parallel.py 91.66% <100.00%> (+0.11%) ⬆️

doc/whatsnew/fragments/8407.breaking Outdated Show resolved Hide resolved
@@ -165,6 +165,7 @@ def check_parallel(
msg_status,
mapreduce_data,
) in executor.map(_worker_check_single_file, files):
assert isinstance(base_name, str)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should now always be str without an assertion

Copy link
Member Author

Choose a reason for hiding this comment

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

mypy does not like it:

pylint/lint/parallel.py:168: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str")  [assignment]

Found 1 error in 1 file (checked 3 source files)

Copy link
Collaborator

@DanielNoord DanielNoord Mar 8, 2023

Choose a reason for hiding this comment

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

The typing on PyLinter or FileState should be updated!

Copy link
Member Author

Choose a reason for hiding this comment

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

I rebased so we can rebase and merge, there was quite a lot more to change than I thought :D

@github-actions

This comment has been minimized.

Pierre-Sassoulas and others added 2 commits March 8, 2023 23:29
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the file-state-deprecation-enactment branch from ff744a0 to 402939c Compare March 8, 2023 22:30
@Pierre-Sassoulas Pierre-Sassoulas enabled auto-merge (rebase) March 8, 2023 22:37
@Pierre-Sassoulas Pierre-Sassoulas merged commit 0db9441 into pylint-dev:main Mar 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2023

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

This comment was generated for commit 402939c

@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 3.0.0, 3.0.0a6 Mar 9, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the file-state-deprecation-enactment branch April 3, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking changes for 3.0 🦤 Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants