Skip to content

Conversation

@vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Jun 6, 2023

Add D400 pydocstyle check.

This PR finally enables the D400 pydocstyle check. Most of the changes have been already done and merged in multiple PRs:

Resolves one item of #10742.

Once this PR merged, it might cause main to fail if in flight PRs are merged without rebasing.


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

@boring-cyborg boring-cyborg bot added provider:cncf-kubernetes Kubernetes (k8s) provider related issues area:providers area:webserver Webserver related Issues provider:amazon AWS/Amazon - related issues provider:docker provider:snowflake Issues related to Snowflake provider labels Jun 6, 2023
# ignore them in ruff
"airflow/providers/common/sql/*/*.pyi"
"airflow/providers/common/sql/*/*.pyi",
"airflow/migrations/versions/*.py"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up on this comment. These migration files are generated automatically by alembic. I could not find a way to configure alembic to generate D400 compatible docstring. Since these files are automatically generated, I think it is fine to exclude them from this check

@pierrejeambrun pierrejeambrun merged commit 07ea574 into apache:main Jun 7, 2023
potiuk added a commit to potiuk/airflow that referenced this pull request Jun 7, 2023
The apache#31359 and apache#31742 were merged independently and the first one
did not have the fixes enabled by the second. This PR fixes it.
@vincbeck vincbeck deleted the vincbeck/d400 branch June 7, 2023 14:26
@eladkal eladkal added this to the Airflow 2.6.2 milestone Jun 8, 2023
@eladkal eladkal added changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) labels Jun 8, 2023
@eladkal eladkal added the type:misc/internal Changelog: Misc changes that should appear in change log label Jun 8, 2023
@eladkal eladkal modified the milestones: Airflow 2.6.2, Airlfow 2.6.3 Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers area:webserver Webserver related Issues provider:amazon AWS/Amazon - related issues provider:cncf-kubernetes Kubernetes (k8s) provider related issues provider:docker provider:snowflake Issues related to Snowflake provider type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants