Skip to content

Bring back detection of implicit single-line string concatenation#31270

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:bring-back-detection-of-implicit-string-concatenation
May 13, 2023
Merged

Bring back detection of implicit single-line string concatenation#31270
potiuk merged 1 commit intoapache:mainfrom
potiuk:bring-back-detection-of-implicit-string-concatenation

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented May 13, 2023

When we switched to ruff we've lost one of the rules that was useful and is not enabled by default in ruff - detection of implicit single-line string concatenation.

It is often automatically introduced by black when reformatting two long strings and it is easy to miss, also it has worse readability so we should bring it back.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

When we switched to ruff we've lost one of the rules that was
useful and is not enabled by default in ruff - detection of implicit
single-line string concatenation.

It is often automatically introduced by black when reformatting two
long strings and it is easy to miss, also it has worse readability
so we should bring it back.
@potiuk potiuk force-pushed the bring-back-detection-of-implicit-string-concatenation branch from a2d4a6e to 5e38c1b Compare May 13, 2023 13:08
@potiuk potiuk merged commit 6b21e4b into apache:main May 13, 2023
@potiuk potiuk deleted the bring-back-detection-of-implicit-string-concatenation branch May 13, 2023 15:23
pankajkoti added a commit to astronomer/airflow that referenced this pull request May 15, 2023
PR apache#31270 included a minor typo for the word `implicit` in one of
its comment. The commit correct the typo from `impocit` to
`implicit`.
potiuk pushed a commit that referenced this pull request May 15, 2023
PR #31270 included a minor typo for the word `implicit` in one of
its comment. The commit correct the typo from `impocit` to
`implicit`.
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:logging area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) provider:amazon AWS/Amazon - related issues provider:google Google (including GCP) related issues provider:microsoft-azure Azure-related issues provider:openlineage AIP-53

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants