Skip to content

Commit

Permalink
Fix pre-commit checking provider's doc consistency
Browse files Browse the repository at this point in the history
The pre-commit was not working since the move of providers to
the `providers` top-level folder (apache#42505) - but we also have
not added many new providers since. This PR updates the check
to work again only for providers that follow the new structure
and to be more verbose on what it is doing.
  • Loading branch information
potiuk committed Jan 20, 2025
1 parent 25aeb11 commit ab62bef
Show file tree
Hide file tree
Showing 4 changed files with 563 additions and 108 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,9 +1212,10 @@ repos:
name: Validate provider doc files
entry: ./scripts/ci/pre_commit/check_provider_docs.py
language: python
files: ^providers/src/airflow/providers/.*/provider\.yaml|^docs/.*
files: ^providers/.*/provider\.yaml|^docs/.*
additional_dependencies: ['rich>=12.4.4', 'pyyaml', 'jinja2']
require_serial: true
pass_filenames: false
- id: bandit
name: bandit
description: "Bandit is a tool for finding common security issues in Python code"
Expand Down
Loading

0 comments on commit ab62bef

Please sign in to comment.