Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Jarek Potiuk 455eb41ba6
[AIRFLOW-5437] Better python version detection/explanation. (#6060)
We have fairly complex python version detection in our CI scripts.

They have to handle several cases:

1) Running builds on DockerHub (we cannot pass different environment
   variables there, so we detect python version based on the image
   name being build (airflow:master-python3.7 -> PYTHON_VERSION=3.7)

2) Running builds on Travis CI. We use python version determined
   from default python3 version available on the path. This way we
   do not have to specify PYTHON_VERSION separately in each job,
   we just specify which host python version is used for that job.
   This makes a nice UI experience where you see python version in
   Travis UI.

3) Running builds locally via scripts where we can pass PYTHON_VERSION
   as environment variable.

4) Running builds locally for the first time with Breeze. By default
   we determine the version based on default python3 version we have
   in the host system (3.5, 3.6 or 3.7) and we use this one.

5) Selecting python version with Breeze's --python switch. This will
   override python version but it will also store the last used version
   of python in .build directory so that it is automatically used next
   time.

This change adds necessary explanations to the code that works for
all the cases and fixes some of the edge-cases we had. It also
extracts the code to common directory.
2019-09-10 10:16:10 +02:00
Jarek Potiuk 51d2e1bbb2 [AIRFLOW-5404] Switch back to using Lucas-C pre-commit-hooks
The fuzzy licence matching implemented by Jarek Potiuk
was accepted and merged by Lucas-C in his pre-commit
hooks implementation (released today ver. 1.1.7)
so we can switch back to it.
2019-09-05 01:12:12 +02:00
Jarek Potiuk a8dc50db4b [AIRFLOW-5371] Remove yamllint as prerequisite to run pre-commit 2019-09-02 11:37:32 -04:00
Jarek Potiuk 4d7bf965cc [AIRFLOW-5372] Apache license check runs locally on LICENCE changes
Licence check for RAT runs too often (every time pre-commit is modified) and it
should only be run (locally) when any of *LICEN[S|C]E* files change. We anyhow
run full check on CI so this is local optimisation (it runs too long while you
play with .pre-commit-config.yaml - and we will probably be able to detect some
problems locally as well when new modules are added.
2019-09-02 11:08:48 -04:00
Jarek Potiuk eafd17d7d8 [AIRFLOW-5326] Fixed regression of Apache check running always 2019-08-28 04:14:55 -04:00
Jarek Potiuk 286aa7a581
[AIRFLOW-3611] Simplified development environment (#4932) 2019-08-27 14:39:36 -04:00
Jarek Potiuk afa7180c16
[AIRFLOW-5226] Consistent licences for all jinja templates (#5828) 2019-08-27 14:06:41 -04:00
Jarek Potiuk 308c07b3f6
[AIRFLOW-5316] Skip running check-apache-license without --all-files (#5917) 2019-08-27 14:03:27 -04:00
Jarek Potiuk d24db825ff
[AIRFLOW-5285] Pylint pre-commit filters out pylint_todo files (#5884)
* [AIRFLOW-5285] Pylint pre-commit filters out pylint_todo files
2019-08-23 16:19:27 -04:00
Jarek Potiuk e1cb8ce99b
[AIRFLOW-5180] Added static checks (yamllint) + auto-licences for yaml file (#5790) 2019-08-22 10:13:56 -04:00
Jarek Potiuk e090744787
[AIRFLOW-5206] Common licence in all .md files, TOC + removed TODO.md (#5809) 2019-08-21 23:27:54 -04:00
Jarek Potiuk d8c9bdcc9d
[AIRFLOW-5205] Xml files are checked with xmllint (#5808) 2019-08-20 10:29:34 -04:00
Jarek Potiuk 64207120fd
[AIRFLOW-5204] Shellcheck + common licences + executable shebangs in shell files (#5807)
* [AIRFLOW-5204] Shellcheck + common licence in shell files
2019-08-20 00:07:39 -04:00
Jarek Potiuk e405be0141 [AIRFLOW-5234] Rst files have consistent, auto-added license 2019-08-18 19:51:02 -04:00
Jarek Potiuk 5cfe9c29a0
[AIRFLOW-5233] Fixed consistency in whitespace (tabs/eols) + common problems (#5835)
* [AIRFLOW-5233] Fixed consistency in whitespace (tabs/eols) + common problems
2019-08-16 10:35:34 -04:00
Jarek Potiuk 4d491f394e
[AIRFLOW-5225] Consistent licence for all JS files (#5827) 2019-08-15 20:06:18 -04:00
Jarek Potiuk 3fac1bd04a
[AIRFLOW-5229] Consistent licences to all other files (#5831) 2019-08-15 20:02:53 -04:00
Jarek Potiuk 2ea2c539d8
[AIRFLOW-5227] Consistent licence for .sql files (#5829) 2019-08-15 19:59:35 -04:00
Jarek Potiuk 70e937a8d8
[AIRFLOW-5161] Static checks are run automatically in pre-commit hooks (#5777) 2019-08-14 20:53:28 -04:00