pylint
pylint copied to clipboard
Add ``invalid-name`` check for ``TypeAlias`` names
- [x] Write a good description on what the PR does.
- [x] Add an entry to the change log describing the change in
doc/whatsnew/2/2.15/index.rst(ordoc/whatsnew/2/2.14/full.rstif the change needs backporting in 2.14). If necessary you can write details or offer examples on how the new change is supposed to work. - [x] If you used multiple emails or multiple names when contributing, add your mails
and preferred name in
script/.contributors_aliases.json
Type of Changes
| Type | |
|---|---|
| β | :sparkles: New feature |
Description
Closes #7081.
Pull Request Test Coverage Report for Build 3403162957
- 30 of 32 (93.75%) changed or added relevant lines in 2 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage decreased (-0.004%) to 95.376%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| pylint/checkers/base/name_checker/checker.py | 28 | 30 | 93.33% |
| <!-- | Total: | 30 | 32 |
| Totals | |
|---|---|
| Change from base Build 3401220436: | -0.004% |
| Covered Lines: | 17266 |
| Relevant Lines: | 18103 |
π - Coveralls
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L55
- invalid-name: Type alias name "TResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L61
- invalid-name: Type alias name "TMatchResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L62
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/nodes.py#L43
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/debug.py#L11
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/comments.py#L19
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/linegen.py#L39
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/brackets.py#L20
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L56
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L280
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L297
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L320
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/datetimelike.py#L149
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/string_arrow.py#L53
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L104
- invalid-name: Type alias name "CSSProperties" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style_render.py#L53
Effect on sentry: The following messages are now emitted:
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/shared_integrations/client/base.py#L20
This comment was generated for commit 70048ba26dbc669f2e950c9a9773635560825840
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L55
- invalid-name: Type alias name "TResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L61
- invalid-name: Type alias name "TMatchResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L62
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/nodes.py#L43
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/debug.py#L11
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/comments.py#L19
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/linegen.py#L39
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/brackets.py#L20
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L56
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L280
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L297
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L320
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/datetimelike.py#L150
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/string_arrow.py#L53
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L106
- invalid-name: Type alias name "CSSProperties" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style_render.py#L53
Effect on sentry: The following messages are now emitted:
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/shared_integrations/client/base.py#L20
This comment was generated for commit 8a66675ff39f5691f4879cabe0bca691b3a8247b
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/nodes.py#L43
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/linegen.py#L39
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/brackets.py#L20
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/debug.py#L11
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L55
- invalid-name: Type alias name "TResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L61
- invalid-name: Type alias name "TMatchResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L62
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/comments.py#L19
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L56
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L280
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L297
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L320
- invalid-name: Type alias name "CSSProperties" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style_render.py#L53
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/string_arrow.py#L53
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L109
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/datetimelike.py#L150
Effect on sentry: The following messages are now emitted:
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/shared_integrations/client/base.py#L20
- invalid-name: Type alias name "SessionOrTransactionMRI" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/testutils/cases.py#L145
This comment was generated for commit 53c89fd08125d8e85308b02ee1b3545dcc69e018
@cdce8p Just checking in. Do you want to review this before we merge this? Or can we merge without a review by you.
@cdce8p Changed the regex. Let me know what you think.
This doesn't allow TBADname but I don't think there is a good way to reliably distinguish between TESTType and TTest. As in, when a T in the first place is a prefix or part of a longer word.
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L65
- invalid-name: Type alias name "TResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L71
- invalid-name: Type alias name "TMatchResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L72
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/debug.py#L10
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/linegen.py#L68
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/nodes.py#L31
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/brackets.py#L28
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/comments.py#L24
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L56
- invalid-name: Type alias name "TokenInfo" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pgen2/tokenize.py#L229
Effect on django: The following messages are no longer emitted:
- no-member: Instance of 'str' has no 'get' member https://github.com/django/django/blob/main/django/urls/resolvers.py#L642
Effect on flask: The following messages are now emitted:
- invalid-name: Type alias name "TeardownCallable" doesn't conform to predefined naming style https://github.com/pallets/flask/blob/main/src/flask/typing.py#L58
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "TimestampConvertibleTypes" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L93
- invalid-name: Type alias name "TimedeltaConvertibleTypes" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L96
- invalid-name: Type alias name "Timezone" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L99
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L279
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L296
- invalid-name: Type alias name "TakeIndexer" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L298
- not-an-iterable: Non-iterable value index.values is used in an iterating context https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/multiindex/test_sorted.py#L120
- redefined-variable-type: Redefinition of result type from pandas.core.indexes.base.Index to pandas.core.indexes.multi.MultiIndex https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/multi/test_reshape.py#L126
- no-member: Instance of 'Index' has no 'day_name' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L249
- no-member: Instance of 'Index' has no 'month_name' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L274
- redefined-variable-type: Redefinition of dti type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.base.Index https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L248
- redefined-variable-type: Redefinition of idx1 type from pandas.core.indexes.period.PeriodIndex to pandas.core.indexes.base.Index https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_set_index.py#L516
- redefined-variable-type: Redefinition of key type from list to pandas.core.arrays.period.PeriodArray https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexing.py#L1391
- invalid-name: Attribute name "y" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_pivot.py#L1770
- invalid-name: Attribute name "z" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_pivot.py#L1771
- invalid-name: Attribute name "dt" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_timegrouper.py#L784
- invalid-name: Attribute name "Date" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_apply.py#L600
- invalid-name: Attribute name "oTime" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_apply.py#L636
- invalid-name: Attribute name "x" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/aggregate/test_aggregate.py#L589
- invalid-name: Attribute name "A" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L142
- invalid-name: Attribute name "B" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L143
- invalid-name: Attribute name "C" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L144
- invalid-name: Attribute name "D" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L145
- invalid-name: Attribute name "h" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/indexing/test_setitem.py#L536
- too-many-instance-attributes: Too many instance attributes (31/11) https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L471
- unsupported-assignment-operation: 'mangled_aggspec' does not support item assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L1540
- redefined-variable-type: Redefinition of mangled_aggspec type from str to list https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L1542
- redefined-variable-type: Redefinition of indexer type from pandas.core.indexes.numeric.Int64Index to pandas.core.indexes.base.Index https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1382
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/datetimelike.py#L151
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/string_arrow.py#L53
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L110
- invalid-name: Attribute name "tz" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L730
- invalid-name: Attribute name "a" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_config.py#L434
- invalid-name: Attribute name "b" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_config.py#L442
- invalid-name: Attribute name "c" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_config.py#L447
- no-member: Instance of 'int' has no 'encoding' member https://github.com/pandas-dev/pandas/blob/main/pandas/_config/localization.py#L162
- too-many-instance-attributes: Too many instance attributes (12/11) https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L119
- too-many-instance-attributes: Too many instance attributes (13/11) https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1381
The following messages are no longer emitted:
- attribute-defined-outside-init: Attribute 'name' defined outside init https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L9724
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3011
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3064
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3125
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3393
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4427
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L6062
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L6075
- redefined-variable-type: Redefinition of indexer type from .ndarray to slice https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3155
- redefined-variable-type: Redefinition of index type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.datetimelike.DatetimeTimedeltaMixin https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L715
- redefined-variable-type: Redefinition of idx type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.datetimelike.DatetimeTimedeltaMixin https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arithmetic/test_datetime64.py#L2302
- no-member: Instance of 'int' has no 'encoding' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_localization.py#L140
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_convert' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/pytables/test_timezones.py#L229
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_convert' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/pytables/test_timezones.py#L230
- redefined-variable-type: Redefinition of result type from pandas.core.indexes.numeric.Int64Index to pandas.core.indexes.multi.MultiIndex https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/multi/test_reshape.py#L126
- redefined-variable-type: Redefinition of dti type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.numeric.Int64Index https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L248
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_localize' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L180
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_localize' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L181
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_localize' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L187
- no-member: Instance of 'DatetimeIndexOpsMixin' has no 'tz' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/methods/test_shift.py#L101
Effect on sentry: The following messages are now emitted:
- not-callable: self.get_provider is not callable https://github.com/getsentry/sentry/blob/master/src/sentry/models/repository.py#L65
- invalid-name: Type alias name "SessionOrTransactionMRI" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/testutils/cases.py#L145
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/shared_integrations/client/base.py#L20
- invalid-name: Type alias name "TagValue" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/utils/metrics.py#L40
- no-member: Instance of 'Param' has no 'name' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/external_requests/issue_link_requester.py#L116
- no-member: Instance of 'Param' has no 'schema' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/sentry_app_components/preparer.py#L25
- no-member: Instance of 'Param' has no 'schema' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/sentry_app_components/preparer.py#L40
- no-member: Instance of 'Param' has no 'schema' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/sentry_app_components/preparer.py#L58
- redefined-variable-type: Redefinition of orgs type from list to dict https://github.com/getsentry/sentry/blob/master/src/sentry/api/endpoints/relay/project_configs.py#L241
The following messages are no longer emitted:
- no-member: Instance of 'GzippedDictField' has no 'get' member https://github.com/getsentry/sentry/blob/master/src/sentry/models/group.py#L564
- unsubscriptable-object: Value 'self.data' is unsubscriptable https://github.com/getsentry/sentry/blob/master/src/sentry/models/group.py#L572
- too-many-instance-attributes: Too many instance attributes (20/11) https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/param.py#L7
This comment was generated for commit c0a14f06c45469059ac65c74e339afafcacb66c7
After the primer comment I think it's better to not worry about the T. TokenInfo such as in black shouldn't really be flagged. Making changes.
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L65
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/debug.py#L10
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/linegen.py#L68
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/nodes.py#L31
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/brackets.py#L28
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/comments.py#L24
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L56
Effect on django: The following messages are no longer emitted:
- no-member: Instance of 'str' has no 'get' member https://github.com/django/django/blob/main/django/urls/resolvers.py#L642
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L279
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L296
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L319
- not-an-iterable: Non-iterable value index.values is used in an iterating context https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/multiindex/test_sorted.py#L120
- redefined-variable-type: Redefinition of result type from pandas.core.indexes.base.Index to pandas.core.indexes.multi.MultiIndex https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/multi/test_reshape.py#L126
- no-member: Instance of 'Index' has no 'day_name' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L249
- no-member: Instance of 'Index' has no 'month_name' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L274
- redefined-variable-type: Redefinition of dti type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.base.Index https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L248
- redefined-variable-type: Redefinition of idx1 type from pandas.core.indexes.period.PeriodIndex to pandas.core.indexes.base.Index https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_set_index.py#L516
- redefined-variable-type: Redefinition of key type from list to pandas.core.arrays.period.PeriodArray https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexing.py#L1391
- invalid-name: Attribute name "y" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_pivot.py#L1770
- invalid-name: Attribute name "z" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_pivot.py#L1771
- invalid-name: Attribute name "dt" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_timegrouper.py#L784
- invalid-name: Attribute name "Date" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_apply.py#L600
- invalid-name: Attribute name "oTime" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_apply.py#L636
- invalid-name: Attribute name "x" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/aggregate/test_aggregate.py#L589
- invalid-name: Attribute name "A" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L142
- invalid-name: Attribute name "B" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L143
- invalid-name: Attribute name "C" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L144
- invalid-name: Attribute name "D" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/conftest.py#L145
- invalid-name: Attribute name "h" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/indexing/test_setitem.py#L536
- too-many-instance-attributes: Too many instance attributes (31/11) https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L471
- unsupported-assignment-operation: 'mangled_aggspec' does not support item assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L1540
- redefined-variable-type: Redefinition of mangled_aggspec type from str to list https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L1542
- redefined-variable-type: Redefinition of indexer type from pandas.core.indexes.numeric.Int64Index to pandas.core.indexes.base.Index https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1382
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/datetimelike.py#L151
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/string_arrow.py#L53
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L110
- invalid-name: Attribute name "tz" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L730
- invalid-name: Attribute name "a" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_config.py#L434
- invalid-name: Attribute name "b" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_config.py#L442
- invalid-name: Attribute name "c" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_config.py#L447
- no-member: Instance of 'int' has no 'encoding' member https://github.com/pandas-dev/pandas/blob/main/pandas/_config/localization.py#L162
- too-many-instance-attributes: Too many instance attributes (12/11) https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L119
- too-many-instance-attributes: Too many instance attributes (13/11) https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1381
The following messages are no longer emitted:
- attribute-defined-outside-init: Attribute 'name' defined outside init https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L9724
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3011
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3064
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3125
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3393
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4427
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L6062
- using-constant-test: Using a conditional statement with a constant value https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L6075
- redefined-variable-type: Redefinition of indexer type from .ndarray to slice https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3155
- redefined-variable-type: Redefinition of index type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.datetimelike.DatetimeTimedeltaMixin https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L715
- redefined-variable-type: Redefinition of idx type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.datetimelike.DatetimeTimedeltaMixin https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arithmetic/test_datetime64.py#L2302
- no-member: Instance of 'int' has no 'encoding' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/config/test_localization.py#L140
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_convert' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/pytables/test_timezones.py#L229
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_convert' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/pytables/test_timezones.py#L230
- redefined-variable-type: Redefinition of result type from pandas.core.indexes.numeric.Int64Index to pandas.core.indexes.multi.MultiIndex https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/multi/test_reshape.py#L126
- redefined-variable-type: Redefinition of dti type from pandas.core.indexes.datetimes.DatetimeIndex to pandas.core.indexes.numeric.Int64Index https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L248
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_localize' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L180
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_localize' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L181
- no-member: Instance of 'DatetimeTimedeltaMixin' has no 'tz_localize' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_constructors.py#L187
- no-member: Instance of 'DatetimeIndexOpsMixin' has no 'tz' member https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/methods/test_shift.py#L101
Effect on sentry: The following messages are now emitted:
- not-callable: self.get_provider is not callable https://github.com/getsentry/sentry/blob/master/src/sentry/models/repository.py#L65
- invalid-name: Type alias name "SessionOrTransactionMRI" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/testutils/cases.py#L145
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/shared_integrations/client/base.py#L20
- no-member: Instance of 'Param' has no 'name' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/external_requests/issue_link_requester.py#L116
- no-member: Instance of 'Param' has no 'schema' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/sentry_app_components/preparer.py#L25
- no-member: Instance of 'Param' has no 'schema' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/sentry_app_components/preparer.py#L40
- no-member: Instance of 'Param' has no 'schema' member https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/sentry_app_components/preparer.py#L58
- redefined-variable-type: Redefinition of orgs type from list to dict https://github.com/getsentry/sentry/blob/master/src/sentry/api/endpoints/relay/project_configs.py#L241
The following messages are no longer emitted:
- no-member: Instance of 'GzippedDictField' has no 'get' member https://github.com/getsentry/sentry/blob/master/src/sentry/models/group.py#L564
- unsubscriptable-object: Value 'self.data' is unsubscriptable https://github.com/getsentry/sentry/blob/master/src/sentry/models/group.py#L572
- too-many-instance-attributes: Too many instance attributes (20/11) https://github.com/getsentry/sentry/blob/master/src/sentry/mediators/param.py#L7
This comment was generated for commit e4af2b6cd7bbed174530cecf4513986dca5c408a
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L65
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/debug.py#L10
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/linegen.py#L68
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/nodes.py#L31
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/brackets.py#L28
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/comments.py#L24
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L56
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L279
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L296
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L319
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/datetimelike.py#L151
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/string_arrow.py#L53
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L106
Effect on sentry: The following messages are now emitted:
- invalid-name: Type alias name "SessionOrTransactionMRI" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/testutils/cases.py#L145
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/shared_integrations/client/base.py#L20
This comment was generated for commit 514324d733e0fa4ae3244b4e391269587dcd1133
Check fail should be fixed by https://github.com/PyCQA/pylint/pull/7321
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L65
- invalid-name: Type alias name "TResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L71
- invalid-name: Type alias name "TMatchResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/trans.py#L72
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/debug.py#L10
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/linegen.py#L68
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/nodes.py#L31
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/brackets.py#L28
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/black/comments.py#L24
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L56
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L279
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L296
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/_typing.py#L319
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/datetimelike.py#L151
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/string_arrow.py#L53
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L106
Effect on sentry: The following messages are now emitted:
- invalid-name: Type alias name "SessionOrTransactionMRI" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/testutils/cases.py#L145
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/master/src/sentry/shared_integrations/client/base.py#L20
This comment was generated for commit 7cb9746dbd2a503871f0de149064514ad683af16
Can I help forward this at all? I hate to see all this work go stale for 4 months
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/trans.py#L65
- invalid-name: Type alias name "TResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/trans.py#L71
- invalid-name: Type alias name "TMatchResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/trans.py#L72
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/brackets.py#L28
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/debug.py#L10
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/linegen.py#L68
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/nodes.py#L31
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/comments.py#L25
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/blib2to3/pytree.py#L56
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "ScalarLike_co" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/_typing.py#L68
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/_typing.py#L290
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/_typing.py#L307
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/_typing.py#L330
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/core/arrays/interval.py#L106
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/core/arrays/string_arrow.py#L48
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/core/arrays/datetimelike.py#L157
The following messages are no longer emitted:
- invalid-name: Class name "ScalarLike_co" doesn't conform to '[A-Z_][a-zA-Z0-9]+$' pattern https://github.com/pandas-dev/pandas/blob/fa41c52c3dec0597a39910ade667084a16169b28/pandas/_typing.py#L68
Effect on sentry: The following messages are now emitted:
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/7599f2dfd8eff4c14a7a3f254d45bd2fdb20ef96/src/sentry/shared_integrations/client/base.py#L20
- invalid-name: Type alias name "SessionOrTransactionMRI" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/7599f2dfd8eff4c14a7a3f254d45bd2fdb20ef96/src/sentry/testutils/cases.py#L159
This comment was generated for commit 08819ba8f35d9cb411e4d40eff914e324b2550f6
Can I help forward this at all? I hate to see all this work go stale for 4 months
I'll take another look at it soon.
Can I help forward this at all? I hate to see all this work go stale for 4 months
I'll take another look at it soon.
@cdce8p Do you think you'll be able to have a look at this still?
@Pierre-Sassoulas I would prefer to merge this even without the final review from Marc. If we get feedback on the regex we can always change it, but the underlying changes seem good to me. Are you okay with this?
Yeah allright, let's merge.
Codecov Report
Merging #7116 (20ad037) into main (27a3984) will increase coverage by
0.00%. The diff coverage is96.49%.
Additional details and impacted files
@@ Coverage Diff @@
## main #7116 +/- ##
=======================================
Coverage 95.47% 95.47%
=======================================
Files 177 178 +1
Lines 18726 18776 +50
=======================================
+ Hits 17878 17926 +48
- Misses 848 850 +2
| Impacted Files | Coverage Ξ | |
|---|---|---|
| pylint/checkers/base/name_checker/naming_style.py | 100.00% <ΓΈ> (ΓΈ) |
|
| pylint/constants.py | 100.00% <ΓΈ> (ΓΈ) |
|
| pylint/checkers/base/name_checker/checker.py | 98.60% <93.54%> (-0.64%) |
:arrow_down: |
| pylint/checkers/bad_chained_comparison.py | 100.00% <100.00%> (ΓΈ) |
|
| pylint/utils/linterstats.py | 96.47% <100.00%> (+0.04%) |
:arrow_up: |
Had to completely rebase as I was getting a lot of CI issues. Sorry for the loss of history, but this was the most sane way to do this.
Also note that the recent PR broke main. I included a commit to fix this.
π€ Effect of this PR on checked open source code: π€
Effect on astroid: The following messages are now emitted:
- invalid-name: Type alias name "SkipKlassT" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/fe5776279506e9fad59f0a4b850b6fa3e1a4220f/astroid/nodes/node_ng.py#L56
Effect on black: The following messages are now emitted:
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/brackets.py#L28
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/nodes.py#L31
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/debug.py#L10
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/comments.py#L25
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/linegen.py#L78
- invalid-name: Type alias name "LN" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/trans.py#L65
- invalid-name: Type alias name "TResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/trans.py#L71
- invalid-name: Type alias name "TMatchResult" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/black/trans.py#L72
- invalid-name: Type alias name "NL" doesn't conform to predefined naming style https://github.com/psf/black/blob/d9b8a6407e2f46304a8d36b18e4a73d8e0613519/src/blib2to3/pytree.py#L56
Effect on pandas: The following messages are now emitted:
- invalid-name: Type alias name "ScalarLike_co" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/_typing.py#L72
- invalid-name: Type alias name "Manager2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/_typing.py#L302
- invalid-name: Type alias name "PositionalIndexer2D" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/_typing.py#L319
- invalid-name: Type alias name "DatetimeNaTType" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/_typing.py#L345
- invalid-name: Type alias name "DTScalarOrNaT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/core/arrays/datetimelike.py#L157
- invalid-name: Type alias name "ArrowStringScalarOrNAT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/core/arrays/string_arrow.py#L49
- invalid-name: Type alias name "IntervalSideT" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/core/arrays/interval.py#L111
- invalid-name: Type alias name "IntervalOrNA" doesn't conform to predefined naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/core/arrays/interval.py#L112
The following messages are no longer emitted:
- invalid-name: Class name "ScalarLike_co" doesn't conform to PascalCase naming style https://github.com/pandas-dev/pandas/blob/9203f9e90a5548275769b17f85b1fa06ec69e011/pandas/_typing.py#L72
Effect on sentry: The following messages are now emitted:
- invalid-name: Type alias name "BaseApiResponseX" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/73dc9823fffc8a275071a5bb513f8610ea3f13b5/src/sentry/shared_integrations/client/base.py#L21
- invalid-name: Type alias name "SessionOrTransactionMRI" doesn't conform to predefined naming style https://github.com/getsentry/sentry/blob/73dc9823fffc8a275071a5bb513f8610ea3f13b5/src/sentry/testutils/cases.py#L169
Effect on coverage: The following messages are now emitted:
- invalid-name: Type alias name "TTraceFileData" doesn't conform to predefined naming style https://github.com/nedbat/coveragepy/blob/499f4f52f738fac6133c9889b4a94b998628ac6f/coverage/types.py#L77
- invalid-name: Type alias name "TMorf" doesn't conform to predefined naming style https://github.com/nedbat/coveragepy/blob/499f4f52f738fac6133c9889b4a94b998628ac6f/coverage/types.py#L159
- invalid-name: Type alias name "TConfigParser" doesn't conform to predefined naming style https://github.com/nedbat/coveragepy/blob/499f4f52f738fac6133c9889b4a94b998628ac6f/coverage/config.py#L148
This comment was generated for commit 20ad03733ffd643287c7c9154f9298788946900c