#10472: Add D200 pydocstyle check - part1#11587
#10472: Add D200 pydocstyle check - part1#11587Samira-g-js wants to merge 59 commits intoapache:masterfrom Samira-g-js:py-docstyle-check-D200
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
|
Co-authored-by: Tomek Urbaszek <turbaszek@gmail.com>
Co-authored-by: Tomek Urbaszek <turbaszek@gmail.com>
- The dag_run argument is only there for test mocks, and only to access a static method. Removing this simplifies the function, reduces confusion. - Give optional arguments a default value, reduce indentation of arg list to PEP / Black standard. - Clean up tests for readability
Although these lists are short, there's no need to re-create them each time, and also no need for them to be a method. I have made them lowercase (`finished`, `running`) instead of uppercase (`FINISHED`, `RUNNING`) to distinguish them from the actual states.
|
Can you please rebase @Samira-g-js ? there are some conflicts :( |
0be7654 commit made an optimization where the plugin are lazy-loaded. However, there are use-cases where you would still want the plugins to be loaded on Airflow start-up.
- Sentence completion - code-block rendering - Link to english docs for Azure instructions
`cllient` -> `client` `environement` -> `environment` `naamespace` -> `namespace` `alllow` -> `allow`
* Improves stability of K8S tests by caching binaries and repeats The K8S tests on CI are controlled from the host, not from inside of the CI container image. Therefore it needs virtualenv to run the tests as well as some tools such as helm, kubectl and kind. While those tools can bee downloaded and installed on demand, from time to time the download fails intermittently. This change introduces the following improvements: * the commands to download and setup kind, helm, kubectl are repeated up to 4 times in case they fail * the "bin" directory where those binaries are downloaded is cached between runs. Only the same combination of versions of the tools are sharing the same cache. This way both cases - regular re-runs of the same jobs and upgrade of tools will be much more stable.
Seems like the trap with several steps and || true does not really work the way I wanted and when kill is run but the process is already gone, we had error in the script. Looks like this approach with sub-process kill will do it.
A few remnants of earlier version of the script caused occasional errors. Error introduced in #11541
In case of very simple changes, there might be no merge commits generated by GitHub. In such cases we should take the commit SHA instead as the base of change calculation for selective tests.
We do not dump airflow logs on success any more, but we dump them and all the container logs in case of failure, so that we can better investigate cases like #11543 - that includes enabling full deadlock information dumping in our mysql database.
Since we support Py 3.6, there is no need of six library
* fix: 🐛 Float to Int columns conversion The `_fix_int_dytpes` method is applying the `astype` transformation to the return of a `np.where` call. I added an extra step to the method in order to apply this to the whole pd.Series. Note that Int64Dtype must be used as an instance, since Pandas will raise an Exception if a class is used. * test: Add dtype test for integers * style: Change line length
…-login is not required. (#11588)
Closed #11388 Co-authored-by: Ryan Hamilton <ryan@ryanahamilton.com>
When we prepare pre-release versions, they are not intended to be converted to final release versions, so there is no need to replace version number for them artificially, For release candidates on the other hand, we should internally use the "final" version because those packages might be simply renamed to the final "production" versions. Fixes #11585
…ow into py-docstyle-check-D200
|
@potiuk Hey I've rebased with my changes on top, can we just double check that no one else's changes since have been overwritten. I'm a bit of a newbie :( |
|
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*. |
|
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*. |
Related to #10472 - Pydocstyle check