Skip to content

Commit

Permalink
Fix static checks - #12715 (#12729)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored Dec 1, 2020
1 parent 91c2203 commit 027fd74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ repos:
- id: setup-extra-packages
name: Checks if all the libraries in setup.py are listed in extra-packages-ref.rst file
language: python
files: ^setup.py$|^docs/extra-packages-ref.rst$
files: ^setup.py$|^docs/apache-airflow/extra-packages-ref.rst$
pass_filenames: false
entry: ./scripts/ci/pre_commit/pre_commit_check_setup_extra_packages_ref.py
additional_dependencies: ['rich==9.2.0']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_extras_from_docs() -> List[str]:
"""
Returns an array of install packages names from installation.rst.
"""
docs_content = get_file_content('docs', DOCS_FILE)
docs_content = get_file_content('docs', 'apache-airflow', DOCS_FILE)

extras_section_regex = re.compile(
rf'^\|[^|]+\|.*pip install .apache-airflow\[({PY_IDENTIFIER})\].', re.MULTILINE
Expand Down

0 comments on commit 027fd74

Please sign in to comment.