-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Release branch 3.1.0 #9461
Release branch 3.1.0 #9461
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9461 /- ##
=======================================
Coverage 95.82% 95.82%
=======================================
Files 173 173
Lines 18797 18797
=======================================
Hits 18013 18013
Misses 784 784
|
This comment has been minimized.
This comment has been minimized.
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.
thanks!
ed461b8
to
5357df9
Compare
5357df9
to
3b47409
Compare
765e077
to
e80eaba
Compare
Got rusty, had to read the release doc 😄 |
This comment has been minimized.
This comment has been minimized.
We should just yank pandas out of the primer. I know we need to make the primer more stable, but it's just wasting carbon and time until then. |
Co-authored-by: Jacob Walls <[email protected]>
e80eaba
to
07c2248
Compare
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.
🎉
Could it be fixed by #7738 ? |
I don't know if it's due to astroid caching problems or we're not using |
What's new in Pylint 3.1.0?
Release date: 2024-02-25
New Features
Skip
consider-using-join
check for non-empty separators if ansuggest-join-with-non-empty-separator
option is set tono
.Closes Disable consider-using-join for non-empty separator #8701
Discover
.pyi
files when linting.These can be ignored with the
ignore-patterns
setting.Closes
.pyi
files are not discovered when running on a folder #9097Check
TypeAlias
andTypeVar
(PEP 695) nodes forinvalid-name
.Refs Check
invalid-name
for PEP 695 nodes #9196Support for resolving external toml files named pylintrc.toml and .pylintrc.toml.
Closes Resolve pylintrc.toml in pylint 3.x #9228
Check for
.clear
,.discard
,.pop
andremove
methods being called on a set while it is being iterated over.Closes Add checks for all set-length-modifying methods in modified-iterating-set #9334
New Checks
New message
use-yield-from
added to the refactoring checker. This message is emitted when yielding from a loop can be replaced byyield from
.Closes New check: use
yield from
#9229.Added a
deprecated-attribute
message to check deprecated attributes in the stdlib.Closes Add
deprecated-attribute
message #8855False Positives Fixed
Fixed false positive for
inherit-non-class
for generic Protocols.Closes False positive inherit-non-class when inheriting a generic Protocol #9106
Exempt
TypedDict
fromtyping_extensions
fromtoo-many-ancestor
checks.Refs fix: exempt
TypedDict
fromtyping_extensions
#9167False Negatives Fixed
Extend broad-exception-raised and broad-exception-caught to except*.
Closes Extend broad-exception-raised and broad-exception-caught to
except*
#8827Fix a false-negative for unnecessary if blocks using a different than expected ordering of arguments.
Closes False negatives for consider-using-min-builtin/consider-using-max-builtin #8947.
Other Bug Fixes
Improve the message provided for wrong-import-order check. Instead of the import statement ("import x"), the message now specifies the import that is out of order and which imports should come after it. As reported in the issue, this is particularly helpful if there are multiple imports on a single line that do not follow the PEP8 convention.
The message will report imports as follows:
For "import X", it will report "(standard/third party/first party/local) import X"
For "import X.Y" and "from X import Y", it will report "(standard/third party/first party/local) import X.Y"
The import category is specified to provide explanation as to why pylint has issued the message and guidence to the developer on how to fix the problem.
Closes wrong-import-order emits multiple identical messages for multiple imports on single line #8808
Other Changes
Print how many files were checked in verbose mode.
Closes Print statistics how many files were checked in verbose. #8935
Fix a crash when an enum class which is also decorated with a
dataclasses.dataclass
decorator is defined.Closes Crash with dataclass enums #9100
Internal Changes
Update astroid version to 3.1.0.
Refs Update astroid version to 3.1.0 #9457