Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add __future__.annotations automatically by isort #26383

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Sep 14, 2022

This is a follow up after #26289 and 26290 to automatically add future.annotations import to all new files (except empty init).

Also the isort configureation is moved to pyproject toml to be consistent across manual and pre-commit runs of isort


^ 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.

pyproject.toml Outdated Show resolved Hide resolved
@potiuk potiuk force-pushed the add-annotation-imports-automatically branch from c82644e to fe93565 Compare September 14, 2022 07:56
@potiuk
Copy link
Member Author

potiuk commented Sep 14, 2022

Added arrays also in "skip" section and excluded .pyi from isort.

@potiuk potiuk force-pushed the add-annotation-imports-automatically branch 2 times, most recently from 7faced2 to 0f04885 Compare September 14, 2022 07:59
This is a follow up after apache#26289 and 26290 to automatically add
__future__.annotations import to all new files (except empty __init__).

Also the isort configureation is moved to pyproject toml to be
consistent across manual and pre-commit runs of isort
@potiuk potiuk force-pushed the add-annotation-imports-automatically branch from 0f04885 to e8dee3c Compare September 14, 2022 09:05
@potiuk potiuk merged commit 4216799 into apache:main Sep 14, 2022
@potiuk potiuk deleted the add-annotation-imports-automatically branch September 14, 2022 10:19
ephraimbuddy pushed a commit that referenced this pull request Nov 10, 2022
This is a follow up after #26289 and 26290 to automatically add
__future__.annotations import to all new files (except empty __init__).

Also the isort configureation is moved to pyproject toml to be
consistent across manual and pre-commit runs of isort

(cherry picked from commit 4216799)
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants