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

D400 first line should end with period batch02 #25268

Merged

Conversation

edithturn
Copy link
Contributor

Related to the issue: #10742

The second batch to fix the D400 | the First line should end with a period (That is being ignored in pre-commits).

I was having an issue with helm, after running pre-commit run --all-files, I didn't fix it, I pushed this code without that fix. It is related to this issue I described in Slack. https://apache-airflow.slack.com/archives/CCZRF2U5A/p1658682791405059.

All basic pre-commits run in the commit, so it lets me push. Appreciate any feedback!

@boring-cyborg boring-cyborg bot added area:providers area:Scheduler including HA (high availability) scheduler kind:documentation provider:amazon-aws AWS/Amazon - related issues provider:databricks provider:google Google (including GCP) related issues labels Jul 25, 2022
""":return: an instance of CeleryKubernetesExecutor"""
""":return: an instance of CeleryKubernetesExecutor."""
Copy link
Member

Choose a reason for hiding this comment

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

These return an instance of $Executor docstrings should simply be removed, they do not really communicate anything.

@@ -149,6 +149,8 @@ async def __aexit__(self, *err):
@staticmethod
def _parse_host(host: str) -> str:
"""
Robustness to improper connections settings provided by users.
Copy link
Member

Choose a reason for hiding this comment

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

I have trouble understanding what this means.

airflow/providers/databricks/hooks/databricks_base.py Outdated Show resolved Hide resolved
airflow/providers/databricks/hooks/databricks_base.py Outdated Show resolved Hide resolved
airflow/providers/google/cloud/hooks/cloud_memorystore.py Outdated Show resolved Hide resolved
Comment on lines 64 to 66
Mysqldb client uses an `autocommit` method rather than an `autocommit` property.

The MySQLdb (mysqlclient) client uses an `autocommit` method rather
Copy link
Member

Choose a reason for hiding this comment

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

MySQLdb is the old name (Python 2 branch) of mysqlclient, the Python library to connect to MySQL. Since we don’t support Python 2 anymore, this should only mention mysqlclient.

airflow/providers/mysql/hooks/mysql.py Outdated Show resolved Hide resolved
airflow/utils/process_utils.py Outdated Show resolved Hide resolved
@eladkal
Copy link
Contributor

eladkal commented Aug 26, 2022

@edithturn are you still working on this PR?

@edithturn
Copy link
Contributor Author

@eladkal yep, I will fix this and send another batch this weekend :)

@edithturn
Copy link
Contributor Author

@uranusjr @eladkal sorry for the delay. Thank you for your feedback!

airflow/providers/google/cloud/hooks/cloud_memorystore.py Outdated Show resolved Hide resolved
airflow/providers/google/cloud/hooks/cloud_memorystore.py Outdated Show resolved Hide resolved
airflow/providers/google/cloud/hooks/cloud_memorystore.py Outdated Show resolved Hide resolved
airflow/providers/mysql/hooks/mysql.py Outdated Show resolved Hide resolved
airflow/providers/mysql/hooks/mysql.py Outdated Show resolved Hide resolved
airflow/utils/process_utils.py Outdated Show resolved Hide resolved
airflow/providers/amazon/aws/transfers/redshift_to_s3.py Outdated Show resolved Hide resolved
airflow/providers/databricks/hooks/databricks_base.py Outdated Show resolved Hide resolved
airflow/providers/databricks/hooks/databricks_base.py Outdated Show resolved Hide resolved
airflow/providers/databricks/hooks/databricks_base.py Outdated Show resolved Hide resolved
airflow/providers/mysql/hooks/mysql.py Outdated Show resolved Hide resolved
airflow/providers/mysql/hooks/mysql.py Outdated Show resolved Hide resolved
@eladkal
Copy link
Contributor

eladkal commented Aug 30, 2022

Are these all the fixes?
Can we remove D400 from

- --add-ignore=D100,D102,D103,D104,D105,D107,D205,D400,D401

to activate the this doc style?

@edithturn
Copy link
Contributor Author

@eladkal no, there are 3000 records to correct. I am sending it in parts since sending a single PR would not be adequate.

@potiuk potiuk force-pushed the D400-first-line-should-end-with-period-batch02 branch from 7353363 to d35290f Compare September 9, 2022 00:57
@potiuk potiuk merged commit 5066844 into apache:main Sep 9, 2022
ashb pushed a commit that referenced this pull request Sep 9, 2022
@ephraimbuddy ephraimbuddy added type:improvement Changelog: Improvements changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:improvement Changelog: Improvements labels Sep 13, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.0 milestone Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers area:Scheduler including HA (high availability) scheduler changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) kind:documentation provider:amazon-aws AWS/Amazon - related issues provider:databricks provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants