ashb commented on issue #7421: [AIRFLOW-] Speed up mypy runs.
URL: https://github.com/apache/airflow/pull/7421#issuecomment-586472520
That 8x was from comparing `time pre-commit run mypy -a` (~4.7s) to `mypy
airflow docs test` (0.7s) 6.7x difference.
This is on linux, and
ashb commented on issue #7421: [AIRFLOW-] Speed up mypy runs.
URL: https://github.com/apache/airflow/pull/7421#issuecomment-586457823
Just for the record: It seems that "dockerising" it adds about an 8x
overhead though :(
```
$ time mypy airflow docs/ tests
Success: no
ashb commented on issue #7421: [AIRFLOW-] Speed up mypy runs.
URL: https://github.com/apache/airflow/pull/7421#issuecomment-586457351
@potiuk Good idea on require_serial -- that has the same effect for all
files, but makes a single file "work" and it is still marginally quicker for a
ashb commented on issue #7421: [AIRFLOW-] Speed up mypy runs.
URL: https://github.com/apache/airflow/pull/7421#issuecomment-586405375
Could be. Would be interesting to see if mypy also chases down "delayed"
imports (i.e. ones inside functions) at which point there's only so much we can
ashb commented on issue #7421: [AIRFLOW-] Speed up mypy runs.
URL: https://github.com/apache/airflow/pull/7421#issuecomment-586350360
Sure, I'll test that out.
This is an automated message from the Apache Git Service.
To
ashb commented on issue #7421: [AIRFLOW-] Speed up mypy runs.
URL: https://github.com/apache/airflow/pull/7421#issuecomment-586290473
Seems to give a modest speed up on Travis (25s to 19s)
This is an automated message
ashb commented on issue #7421: [AIRFLOW-] Speed up mypy runs.
URL: https://github.com/apache/airflow/pull/7421#issuecomment-586270461
I'm a little bit surprised by the difference, but it was consistent on my
laptop. Would appreciate others testing too.