pylint
pylint copied to clipboard
Add ``consider-using-augmented-assign`` checker
- [x] Write a good description on what the PR does.
- [x] Create a news fragment with
towncrier create <IssueNumber>.<type>
which will be included in the changelog.<type>
can be one of: new_check, removed_check, extension, false_positive, false_negative, bugfix, other, internal. 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 https://github.com/PyCQA/pylint/issues/3391
Based around the work by @clavedeluna in https://github.com/PyCQA/pylint/pull/7509. But to make this checker work I had to add some additional checking.
Let's see what the primer thinks of this! 😰
Something is up with the caches of the primer. Seems to have to do with a bump in the Python versions used by the runner that is happening in between the creation of the cache and the calling to the cache.
Let's see if all things return back to normal after the run on main
has completed and we can start a new primer run on this branch.
Pull Request Test Coverage Report for Build 3107823195
- 38 of 42 (90.48%) changed or added relevant lines in 2 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage decreased (-0.01%) to 95.315%
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
---|---|---|---|
pylint/checkers/utils.py | 32 | 36 | 88.89% |
<!-- | Total: | 38 | 42 |
Totals | |
---|---|
Change from base Build 3105240153: | -0.01% |
Covered Lines: | 17109 |
Relevant Lines: | 17950 |
💛 - Coveralls
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/objects.py#L293
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/manager.py#L258
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L558
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L567
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/brain/brain_dataclasses.py#L209
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/brain/brain_dataclasses.py#L210
Effect on black: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/black/init.py#L1018
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/black/comments.py#L189
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/literals.py#L51
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L481
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L482
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/pgen.py#L372
Effect on django: The following messages are now emitted:
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/templatetags/i18n.py#L190
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/options.py#L1843
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L459
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/postgres/search.py#L208
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/postgres/search.py#L257
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/postgres/search.py#L305
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L596
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L598
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L697
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L698
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L41
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L43
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/signing.py#L72
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/files/base.py#L89
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/handlers/asgi.py#L95
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/management/templates.py#L367
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/management/commands/compilemessages.py#L78
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/http/request.py#L247
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/http/multipartparser.py#L468
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/options.py#L248
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L1575
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2039
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2177
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2178
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/related.py#L358
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L458
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L460
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/init.py#L967
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L2053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/compiler.py#L2027
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/base/schema.py#L1000
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/introspection.py#L169
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/base.py#L531
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/models.py#L319
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L210
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L902
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L948
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/forms.py#L495
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/urls/base.py#L73
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L101
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L10
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L13
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/timezone.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/numberformat.py#L84
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/baseconv.py#L105
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/html.py#L356
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/html.py#L365
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/http.py#L186
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/translation/init.py#L152
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/template/library.py#L223
Effect on pandas: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L99
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L158
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L192
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L221
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L325
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1606
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1646
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1674
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexing/multiindex/test_setitem.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/extension/test_external_block.py#L31
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/test_arithmetic.py#L780
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/indexing/test_setitem.py#L918
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/scalar/timestamp/test_timezones.py#L257
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/io/formats/test_format.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/strings/test_api.py#L139
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_expanding.py#L272
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_rolling.py#L1473
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L932
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L933
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/aggregate/test_other.py#L523
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L148
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L150
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/datetimes/test_timezones.py#L709
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/test_constructors.py#L3148
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/methods/test_reindex.py#L1187
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_month.py#L616
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L179
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L423
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L629
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_offsets.py#L1053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_offsets.py#L1057
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10623
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10624
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/sample.py#L147
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/resample.py#L503
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/algorithms.py#L1367
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L218
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/string_arrow.py#L393
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/period.py#L1103
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L597
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L599
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L823
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1740
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1741
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1742
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L606
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L651
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/rolling.py#L885
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/rolling.py#L886
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/rolling.py#L887
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/numba_.py#L151
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/numba_.py#L158
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L3135
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L3510
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4124
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4185
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/indexes/datetimes.py#L823
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/indexes/datetimes.py#L824
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/indexes/multi.py#L3539
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/_testing/init.py#L378
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L2656
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4167
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4395
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/html.py#L875
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/stata.py#L2493
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/stata.py#L3285
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/xml.py#L224
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/xml.py#L227
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/format.py#L420
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/format.py#L1722
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/json/_normalize.py#L528
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/parsers/readers.py#L1920
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/util/_exceptions.py#L24
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/plotting/_matplotlib/core.py#L1689
Effect on psycopg: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psycopg/psycopg/blob/f9f97c69583626ee9fbef0776608ffd3f40c56d9/psycopg/psycopg/_encodings.py#L153
Effect on pygame: The following messages are now emitted:
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L754
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L755
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L756
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L758
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L759
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L761
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L763
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/camera.py#L147
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/camera.py#L152
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/midi.py#L605
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/draw_py.py#L231
Effect on pytest: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/pytester.py#L1506
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/pytester.py#L1509
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/logging.py#L627
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/recwarn.py#L84
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/assertion/util.py#L364
Effect on sentry: The following messages are now emitted:
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L213
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L217
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L220
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devserver.py#L211
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devservices.py#L106
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/models/debugfile.py#L592
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/deletions/base.py#L209
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/filestore/gcs.py#L90
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics_sessions_v2.py#L251
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L909
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L982
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/db/models/base.py#L29
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L171
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L205
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/auth/helper.py#L230
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/lang/javascript/errorlocale.py#L85
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/numbers.py#L42
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/snuba.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/query_subscription_consumer.py#L178
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/discover.py#L118
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/paginator.py#L403
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L203
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L229
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/base.py#L136
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/bases/organization_events.py#L208
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/endpoints/organization_events_facets_performance.py#L319
This comment was generated for commit be5463a682e34800c00847c8cf483a13b8d07f22
Noticed the first Django result is a false positive (string formatting, not modulo): https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/templatetags/i18n.py#L190
Noticed the first Django result is a false positive (string formatting, not modulo): https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/templatetags/i18n.py#L190
Thanks for checking! PRs like these are where the primer shines 😄
Noticed the first Django result is a false positive (string formatting, not modulo): https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/templatetags/i18n.py#L190
Can't just simplify that as well though?
❯ python
Python 3.10.0 (default, Oct 27 2021, 16:20:25) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> x = "%s"
>>> x % "my_string"
'my_string'
>>> x %= "my_string"
>>> x
'my_string'
Ah, that might not be a false positive then. Still I'm worried there could be something lurking with incomplete string formatting (e.g. TypeError: not all arguments converted...
). A couple tests would be nice just to show this isn't a worry.
Ah, that might not be a false positive then. Still I'm worried there could be something lurking with incomplete string formatting (e.g.
TypeError: not all arguments converted...
). A couple tests would be nice just to show this isn't a worry.
I think those would be an issue without the augmented assign as well, but you're right: better safe than sorry!
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/objects.py#L293
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/manager.py#L258
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L558
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L567
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/brain/brain_dataclasses.py#L209
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/brain/brain_dataclasses.py#L210
Effect on black: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/black/init.py#L1018
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/black/comments.py#L189
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/literals.py#L51
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L481
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L482
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/pgen.py#L372
Effect on django: The following messages are now emitted:
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/templatetags/i18n.py#L190
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/options.py#L1843
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L459
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/postgres/search.py#L208
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/postgres/search.py#L257
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/postgres/search.py#L305
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L596
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L598
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L697
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L698
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L41
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L43
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/signing.py#L72
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/files/base.py#L89
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/handlers/asgi.py#L95
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/management/templates.py#L367
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/management/commands/compilemessages.py#L78
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/http/request.py#L247
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/http/multipartparser.py#L468
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/options.py#L248
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L1575
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2039
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2177
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2178
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/related.py#L358
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L458
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L460
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/init.py#L967
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L2053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/compiler.py#L2027
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/base/schema.py#L1000
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/introspection.py#L169
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/base.py#L531
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/models.py#L319
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L210
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L902
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L948
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/forms.py#L495
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/urls/base.py#L73
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L101
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L10
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L13
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/timezone.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/numberformat.py#L84
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/baseconv.py#L105
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/html.py#L356
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/html.py#L365
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/http.py#L186
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/translation/init.py#L152
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/template/library.py#L223
Effect on pandas: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L99
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L158
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L192
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L221
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/compat/numpy/function.py#L325
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1606
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1646
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1674
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexing/multiindex/test_setitem.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/extension/test_external_block.py#L31
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/test_arithmetic.py#L780
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/indexing/test_setitem.py#L918
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/scalar/timestamp/test_timezones.py#L257
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/io/formats/test_format.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/strings/test_api.py#L139
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_expanding.py#L272
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_rolling.py#L1473
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L932
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L933
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/aggregate/test_other.py#L523
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L148
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L150
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/datetimes/test_timezones.py#L709
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/test_constructors.py#L3148
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/methods/test_reindex.py#L1187
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_month.py#L616
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L179
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L423
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L629
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_offsets.py#L1053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_offsets.py#L1057
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10623
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10624
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/sample.py#L147
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/resample.py#L503
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/algorithms.py#L1367
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L218
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/string_arrow.py#L393
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/period.py#L1103
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L597
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L599
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L823
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1740
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1741
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1742
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L606
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L651
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/rolling.py#L885
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/rolling.py#L886
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/rolling.py#L887
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/numba_.py#L151
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/numba_.py#L158
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L3135
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L3510
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4124
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4185
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/indexes/datetimes.py#L823
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/indexes/datetimes.py#L824
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/indexes/multi.py#L3539
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/_testing/init.py#L378
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L2656
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4167
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4395
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/html.py#L875
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/stata.py#L2493
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/stata.py#L3285
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/xml.py#L224
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/xml.py#L227
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/format.py#L420
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/format.py#L1722
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/json/_normalize.py#L528
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/parsers/readers.py#L1920
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/util/_exceptions.py#L24
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/plotting/_matplotlib/core.py#L1689
Effect on psycopg: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psycopg/psycopg/blob/f9f97c69583626ee9fbef0776608ffd3f40c56d9/psycopg/psycopg/_encodings.py#L153
Effect on pygame: The following messages are now emitted:
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L754
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L755
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L756
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L758
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L759
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L761
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L763
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/camera.py#L147
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/camera.py#L152
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/midi.py#L605
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/draw_py.py#L231
Effect on pytest: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/pytester.py#L1506
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/pytester.py#L1509
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/logging.py#L627
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/recwarn.py#L84
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/assertion/util.py#L364
Effect on sentry: The following messages are now emitted:
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L213
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L217
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L220
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devserver.py#L211
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devservices.py#L106
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/models/debugfile.py#L592
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/deletions/base.py#L209
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/filestore/gcs.py#L90
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics_sessions_v2.py#L251
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L909
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L982
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/db/models/base.py#L29
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L171
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L205
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/auth/helper.py#L230
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/lang/javascript/errorlocale.py#L85
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/numbers.py#L42
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/snuba.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/query_subscription_consumer.py#L178
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/discover.py#L118
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/paginator.py#L403
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L203
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L229
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/base.py#L136
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/bases/organization_events.py#L208
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/endpoints/organization_events_facets_performance.py#L319
This comment was generated for commit 3e32b311707f2db9476d633870085a2e6182efb5
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/objects.py#L293
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/manager.py#L258
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L558
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L567
Effect on black: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/black/init.py#L1018
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/literals.py#L51
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L481
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L482
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/pgen.py#L372
Effect on django: The following messages are now emitted:
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/templatetags/i18n.py#L190
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/options.py#L1843
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L459
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L596
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L41
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L43
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/management/commands/compilemessages.py#L78
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/options.py#L248
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L1575
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2039
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/related.py#L358
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L458
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L460
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L2053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/compiler.py#L2027
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/base/schema.py#L1000
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/introspection.py#L169
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/base.py#L531
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/models.py#L319
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L210
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L948
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/forms.py#L495
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/urls/base.py#L73
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L101
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L10
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L13
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/timezone.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/numberformat.py#L84
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/translation/init.py#L152
Effect on pandas: The following messages are now emitted:
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1606
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1646
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1674
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexing/multiindex/test_setitem.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/extension/test_external_block.py#L31
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/test_arithmetic.py#L780
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/indexing/test_setitem.py#L918
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/io/formats/test_format.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_expanding.py#L272
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_rolling.py#L1473
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L932
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L933
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/aggregate/test_other.py#L523
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L148
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L150
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/test_constructors.py#L3148
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/methods/test_reindex.py#L1187
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_month.py#L616
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L179
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L423
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L629
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_offsets.py#L1053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10623
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10624
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/sample.py#L147
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/resample.py#L503
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L218
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/string_arrow.py#L393
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/period.py#L1103
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L597
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L823
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1740
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1741
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1742
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L606
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L651
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/numba_.py#L158
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L3135
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4124
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4185
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/_testing/init.py#L378
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L2656
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4167
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4395
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/format.py#L1722
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/parsers/readers.py#L1920
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/util/_exceptions.py#L24
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/plotting/_matplotlib/core.py#L1689
Effect on pygame: The following messages are now emitted:
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L754
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L755
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L756
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L758
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L759
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L761
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L763
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/midi.py#L605
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/draw_py.py#L231
Effect on pytest: The following messages are now emitted:
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/assertion/util.py#L364
Effect on sentry: The following messages are now emitted:
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L213
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L217
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L220
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devserver.py#L211
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devservices.py#L106
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/models/debugfile.py#L592
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/deletions/base.py#L209
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/filestore/gcs.py#L90
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L909
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L982
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L171
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L205
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/auth/helper.py#L230
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/numbers.py#L42
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/snuba.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/query_subscription_consumer.py#L178
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/discover.py#L118
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/paginator.py#L403
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L203
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L229
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/base.py#L136
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/bases/organization_events.py#L208
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/endpoints/organization_events_facets_performance.py#L319
This comment was generated for commit 104935d53c06c7179d23b3a8d07b5f25ef18bcb4
I don't understand astroid
1, but that seems to be caused by incorrect inference of filled_args
.
I checked all other primer messages and they all seem to make sense to me.
I think this is ready for review!
There's a badly formatted message for black;
Use '=' to do an augmented assign directly*
(https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/literals.py#L51). It also happen for pandas here : https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/io/formats/test_format.py#L1535, so probably for all*
.
This is incorrect formatting from GitHub. See test output for correct examples with *=
.
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/objects.py#L293
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/manager.py#L258
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L558
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/PyCQA/astroid/blob/b867508d903719378e439ec48686565a497ec312/astroid/nodes/scoped_nodes/scoped_nodes.py#L567
Effect on black: The following messages are now emitted:
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/black/init.py#L1018
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/literals.py#L51
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L481
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/tokenize.py#L482
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/psf/black/blob/6ae8457a8628345c59fed22c58728ffa258a3e76/src/blib2to3/pgen2/pgen.py#L372
Effect on django: The following messages are now emitted:
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/templatetags/i18n.py#L190
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/options.py#L1843
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/contrib/admin/helpers.py#L459
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/test/utils.py#L596
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L41
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/middleware/security.py#L43
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/core/management/commands/compilemessages.py#L78
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/options.py#L248
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L1575
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/query.py#L2039
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/related.py#L358
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L458
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/fields/json.py#L460
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/query.py#L2053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/models/sql/compiler.py#L2027
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/base/schema.py#L1000
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/introspection.py#L169
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/db/backends/oracle/base.py#L531
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/models.py#L319
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L210
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/widgets.py#L948
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/forms/forms.py#L495
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/urls/base.py#L73
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L98
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/datetime_safe.py#L101
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L10
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/duration.py#L13
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/timezone.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/numberformat.py#L84
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/django/django/blob/37a13cc92d51d5a57b42240b9a5dd250648efa24/django/utils/translation/init.py#L152
Effect on pandas: The following messages are now emitted:
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1606
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1646
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/arithmetic/test_timedelta64.py#L1674
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexing/multiindex/test_setitem.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/extension/test_external_block.py#L31
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/test_arithmetic.py#L780
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/series/indexing/test_setitem.py#L918
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/io/formats/test_format.py#L1535
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_expanding.py#L272
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/window/test_rolling.py#L1473
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L932
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/transform/test_transform.py#L933
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/groupby/aggregate/test_other.py#L523
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L148
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/indexes/ranges/test_range.py#L150
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/test_constructors.py#L3148
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/frame/methods/test_reindex.py#L1187
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_month.py#L616
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L179
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L337
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L423
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_fiscal.py#L629
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/tests/tseries/offsets/test_offsets.py#L1053
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10623
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/frame.py#L10624
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/sample.py#L147
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/resample.py#L503
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L218
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/boolean.py#L225
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/string_arrow.py#L393
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/period.py#L1103
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L597
- consider-using-augmented-assign: Use '^=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/arrays/masked.py#L823
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1740
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1741
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/reshape/merge.py#L1742
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L606
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/tools/datetimes.py#L651
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/window/numba_.py#L158
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L3135
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4124
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/core/groupby/groupby.py#L4185
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/_testing/init.py#L378
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L2656
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4167
- consider-using-augmented-assign: Use '&=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/pytables.py#L4395
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/formats/format.py#L1722
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/io/parsers/readers.py#L1920
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/util/_exceptions.py#L24
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pandas-dev/pandas/blob/71fc89cd515c3c19230fbab64e979118858b808a/pandas/plotting/_matplotlib/core.py#L1689
Effect on pygame: The following messages are now emitted:
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L754
- consider-using-augmented-assign: Use '<<=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L755
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L756
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L758
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L759
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L761
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/cursors.py#L763
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/midi.py#L605
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/pygame/pygame/blob/7e6f48306f624debac9cb2731bb9adc5a762a5c6/src_py/draw_py.py#L231
Effect on pytest: The following messages are now emitted:
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/pytest-dev/pytest/blob/59b8ec3ce11f8e94d924dc97bc1e14f380824b54/src/_pytest/assertion/util.py#L364
Effect on sentry: The following messages are now emitted:
- consider-using-augmented-assign: Use '/=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L213
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L217
- consider-using-augmented-assign: Use '%=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/templatetags/sentry_helpers.py#L220
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devserver.py#L211
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/runner/commands/devservices.py#L106
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/models/debugfile.py#L592
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/deletions/base.py#L209
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/filestore/gcs.py#L90
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L909
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/release_health/metrics.py#L982
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L171
- consider-using-augmented-assign: Use '-=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/processing/realtime_metrics/redis.py#L205
- consider-using-augmented-assign: Use '|=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/auth/helper.py#L230
- consider-using-augmented-assign: Use '=' to do an augmented assign directly* https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/numbers.py#L42
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/utils/snuba.py#L428
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/query_subscription_consumer.py#L178
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/snuba/discover.py#L118
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/paginator.py#L403
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L203
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/event_search.py#L229
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/base.py#L136
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/bases/organization_events.py#L208
- consider-using-augmented-assign: Use '+=' to do an augmented assign directly https://github.com/getsentry/sentry/blob/f9bf16e7d663c780c1e0c0378ae92f2a93aa326b/src/sentry/api/endpoints/organization_events_facets_performance.py#L319
This comment was generated for commit f5861b17f5da3d6de6dc1a6bd9b09f752b742745
I haven't followed the discussion around this check so it might have come up already.
Why was this not implemented as an optional extension?
From what I can tell there is no obvious benefit to using the augmented assignment over the regular one. IMO it just creates a lot of unnecessary noise. Similar checks like the one for assignment expressions are also optional.
I think @cdce8p has a point here.
Agreed.
Agreed. I'll create a PR when I get the time.
See opened issue for follow up question.