diff --git a/.github/actions/post_tests_success/action.yml b/.github/actions/post_tests_success/action.yml index b7b00a6fc0df3..865f1e4857cb2 100644 --- a/.github/actions/post_tests_success/action.yml +++ b/.github/actions/post_tests_success/action.yml @@ -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' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56cf9cbf80adf..2d537d4d98c58 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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" @@ -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 @@ -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: @@ -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.*$ @@ -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 @@ -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 @@ -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 @@ -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$| @@ -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'] @@ -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 diff --git a/docs/README.md b/docs/README.md index e9469e03786b7..eeba9dfbf6895 100644 --- a/docs/README.md +++ b/docs/README.md @@ -16,6 +16,13 @@ specific language governing permissions and limitations under the License. --> + + +**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* + +- [Documentation configuration](#documentation-configuration) + + # Documentation configuration