Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/actions/post_tests_success/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ runs:
mkdir ./files/coverage-reports
mv ./files/coverage*.xml ./files/coverage-reports/ || true
- name: "Upload all coverage reports to codecov"
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
env:
CODECOV_TOKEN: ${{ inputs.codecov-token }}
if: env.ENABLE_COVERAGE == 'true' && env.TEST_TYPES != 'Helm' && inputs.python-version != '3.12'
Expand Down
34 changes: 25 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
default_stages: [pre-commit, pre-push]
default_language_version:
python: python3
node: 22.15.0
node: 22.15.1
minimum_pre_commit_version: '3.2.0'
exclude: ^.*/.*_vendor/
repos:
Expand All @@ -35,7 +35,15 @@ repos:
- id: doctoc
name: Add TOC for Markdown and RST files
files:
^README\.md$|^UPDATING.*\.md$|^chart/UPDATING.*\.md$|^dev/.*\.md$|^dev/.*\.rst$|^\.github/.*\.md|^airflow-core/tests/system/README\.md$
(?x)
^README\.md$|
^UPDATING.*\.md$|
^chart/UPDATING.*\.md$|
^dev/.*\.md$|
^dev/.*\.rst$|
^docs/README\.md$|
^\.github/.*\.md$|
^airflow-core/tests/system/README\.md$
args:
- "--maxlevel"
- "2"
Expand Down Expand Up @@ -96,7 +104,7 @@ repos:
- --fuzzy-match-generates-todo
- id: insert-license
name: Add license for all Python files
exclude: ^\.github/.*$|^.*/_vendor/.*$
exclude: ^\.github/.*$|^.*/_vendor/.*$|^airflow-ctl/.*/.*generated\.py$
files: \.py$|\.pyi$
args:
- --comment-style
Expand Down Expand Up @@ -125,7 +133,7 @@ repos:
- --fuzzy-match-generates-todo
- id: insert-license
name: Add license for all YAML files except Helm templates
exclude: ^\.github/.*$|^chart/templates/.*|.*reproducible_build\.yaml$|^.*/v1.*\.yaml$|^.*/openapi/_private_ui.*\.yaml$|^.*/pnpm-lock\.yaml$
exclude: ^\.github/.*$|^chart/templates/.*|.*reproducible_build\.yaml$|^.*/v2.*\.yaml$|^.*/openapi/_private_ui.*\.yaml$|^.*/pnpm-lock\.yaml$
types: [yaml]
files: \.ya?ml$
args:
Expand Down Expand Up @@ -246,6 +254,9 @@ repos:
name: Check that executables have shebang
- id: check-xml
name: Check XML files with xmllint
exclude: >
(?x)
^scripts/ci/docker-compose/gremlin/.
- id: trailing-whitespace
name: Remove trailing whitespace at end of line
exclude: ^airflow-core/docs/img/.*\.dot$|^dev/breeze/doc/images/output.*$
Expand All @@ -270,7 +281,7 @@ repos:
- id: python-no-log-warn
name: Check if there are no deprecate log warn
- repo: https://github.com/adrienverge/yamllint
rev: v1.36.2
rev: v1.37.1
hooks:
- id: yamllint
name: Check YAML files with yamllint
Expand Down Expand Up @@ -311,10 +322,10 @@ repos:
exclude: material-icons\.css$|^images/.*$|^RELEASE_NOTES\.txt$|^.*package-lock\.json$|^.*/kinglear\.txt$|^.*pnpm-lock\.yaml$|.*/dist/.*
args:
- --ignore-words=docs/spelling_wordlist.txt
- --skip=providers/.*/src/airflow/providers/*/*.rst,providers/*/docs/changelog.rst,docs/*/commits.rst,providers/*/docs/commits.rst,providers/*/*/docs/commits.rst,docs/apache-airflow/tutorial/pipeline_example.csv,*.min.js,*.lock,INTHEWILD.md
- --skip=providers/.*/src/airflow/providers/*/*.rst,providers/*/docs/changelog.rst,docs/*/commits.rst,providers/*/docs/commits.rst,providers/*/*/docs/commits.rst,docs/apache-airflow/tutorial/pipeline_example.csv,*.min.js,*.lock,INTHEWILD.md,*.svg
- --exclude-file=.codespellignorelines
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.5.1
rev: v1.7.0
hooks:
- id: zizmor
name: Run zizmor to check for github workflow syntax errors
Expand Down Expand Up @@ -476,7 +487,10 @@ repos:
name: Generate airflow diagrams
entry: ./scripts/ci/pre_commit/generate_airflow_diagrams.py
language: python
files: ^airflow-core/docs/.*/diagram_[^/]*\.py$
files: >
(?x)
^airflow-core/docs/.*/diagram_[^/]*\.py$|
^docs/images/.*\.py$
pass_filenames: true
additional_dependencies: ['rich>=12.4.4', 'diagrams>=0.23.4']
- id: generate-volumes-for-sources
Expand Down Expand Up @@ -644,7 +658,7 @@ repos:
^.*commits\.(rst|txt)$|
^.*RELEASE_NOTES\.rst$|
^contributing-docs/03_contributors_quick_start\.rst$|
^.*\.(png|gif|jp[e]?g|tgz|lock)$|
^.*\.(png|gif|jp[e]?g|svg|tgz|lock)$|
git|
^airflow-core/newsfragments/43349\.significant\.rst$|
^airflow-core/newsfragments/41368\.significant\.rst$|
Expand Down Expand Up @@ -969,6 +983,7 @@ repos:
exclude: >
(?x)
^scripts/ci/docker-compose/grafana/.|
^scripts/ci/docker-compose/gremlin/.|
^scripts/ci/docker-compose/.+-config\.ya?ml$
require_serial: true
additional_dependencies: ['jsonschema>=3.2.0,<5.0', 'pyyaml>=6.0.2', 'requests==2.32.3', 'rich>=12.4.4']
Expand Down Expand Up @@ -1294,6 +1309,7 @@ repos:
language: python
entry: ./scripts/ci/pre_commit/mypy.py
files: ^airflow-ctl/src/airflowctl/.*\.py$|^airflow-ctl/tests/.*\.py$
exclude: .*generated.py
require_serial: true
additional_dependencies: ['rich>=12.4.4']
- id: mypy-airflow-ctl
Expand Down
7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
specific language governing permissions and limitations
under the License.
-->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Documentation configuration](#documentation-configuration)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# Documentation configuration

Expand Down
Loading