-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add back missing [sources] link in generated documentation's includes
#49978
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ | |
|
|
||
| from airflow.utils.file import list_py_file_paths | ||
|
|
||
| import system.standard | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @potiuk This looks incorrect. I don't really know what it's trying to do, but this is not meant to be a valid importable thing
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not best idea it turned out. But it's fixed now. But in tests it's importable actually. That's the way how we import from other test modules in our tests.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More explanation. This is the way how we - currently - introduce "namespacing" in our tests - we had discussion about it before. Example: And the root PYTHONPATH is One of the reasons for that was the problem with importing things like We could have more sub-folders. Maybe we should rethink it. I proposed iniitlllly to have |
||
| from tests_common.test_utils.config import conf_vars | ||
| from tests_common.test_utils.db import clear_db_dags, parse_and_sync_to_db | ||
|
|
||
|
|
@@ -37,8 +38,10 @@ | |
| def get_corresponding_dag_file_count(dir: str, include_examples: bool = True) -> int: | ||
| from airflow import example_dags | ||
|
|
||
| return len(list_py_file_paths(directory=dir)) + ( | ||
| len(list_py_file_paths(next(iter(example_dags.__path__)))) if include_examples else 0 | ||
| return ( | ||
| len(list_py_file_paths(directory=dir)) | ||
| + (len(list_py_file_paths(next(iter(example_dags.__path__)))) if include_examples else 0) | ||
| + (len(list_py_file_paths(next(iter(system.standard.__path__)))) if include_examples else 0) | ||
| ) | ||
|
|
||
|
|
||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.