Skip to content

Capitalise module level constants #233

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

Merged
merged 3 commits into from
Apr 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pathlib import Path

sys.path.insert(0, os.path.abspath(".."))
repo_dir = Path(__file__).parent.parent
_REPO_DIR = Path(__file__).parent.parent

# -- Project information -----------------------------------------------------

Expand Down Expand Up @@ -138,16 +138,16 @@
# Get all the providers from setup.cfg and use them to generate the intersphinx inventories
# for all the providers
config = configparser.ConfigParser(strict=False)
config.read(repo_dir / "setup.cfg")
config.read(_REPO_DIR / "setup.cfg")

prov_deps = [
_PROV_DEPS = [
re.match(r"([a-zA-Z-]+)", dep).groups()[0]
for dep in config["options.extras_require"]["all"].split()
if dep.startswith("apache-airflow-providers-")
]
intersphinx_mapping = {
"airflow": ("https://airflow.apache.org/docs/apache-airflow/stable/", None),
**{provider: (f"https://airflow.apache.org/docs/{provider}/stable", None) for provider in prov_deps},
**{provider: (f"https://airflow.apache.org/docs/{provider}/stable", None) for provider in _PROV_DEPS},
}


Expand Down