5cbd3f29e3
clang-tidy / clang-tidy (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Copilot Setup Steps / copilot-setup-steps (push) Waiting to run
Lint / Validate SBOM (push) Waiting to run
Lint / Enforce style (push) Waiting to run
CI / Test windows-2022, 3.14, External, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test windows-latest, 3.10, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test windows-latest, 3.14, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test windows-latest, 3.14t, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test ubuntu-24.04, 3.14, Internal, debug=1, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test ubuntu-24.04, 3.14, External, debug=0, unity_build=1, onnx_ml=1, autogen=1 (push) Waiting to run
CI / Test ubuntu-24.04, 3.14, External, debug=0, unity_build=0, onnx_ml=0, autogen=0 (push) Waiting to run
CI / Test macos-latest, 3.10, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test macos-latest, 3.14, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test macos-latest, 3.14t, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test ubuntu-24.04, 3.14, External, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test ubuntu-24.04, 3.10, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test ubuntu-24.04, 3.14, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
CI / Test ubuntu-24.04, 3.14t, Internal, debug=0, unity_build=0, onnx_ml=1, autogen=0 (push) Waiting to run
Generate and publish ONNX docs / build (push) Waiting to run
Generate and publish ONNX docs / deploy (push) Blocked by required conditions
Pixi CI / Install and lint (ubuntu-24.04-arm) (push) Waiting to run
Pixi CI / Install and lint (windows-2022) (push) Waiting to run
Pixi CI / Xcode generator build (push) Waiting to run
Pixi CI / Install and test (macos-latest, default) (push) Waiting to run
Pixi CI / Install and test (ubuntu-24.04-arm, default) (push) Waiting to run
Pixi CI / Install and test (ubuntu-latest, default) (push) Waiting to run
Pixi CI / Install and test (windows-2022, default) (push) Waiting to run
Pixi CI / Install and test (macos-latest, oldies) (push) Waiting to run
Pixi CI / Install and test (ubuntu-24.04-arm, oldies) (push) Waiting to run
Pixi CI / Install and test (ubuntu-latest, oldies) (push) Waiting to run
Pixi CI / Install and test (windows-2022, oldies) (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Fuzz / Run fuzz harnesses (${{ github.event_name == 'schedule' && 'nightly' || 'smoke' }}) (push) Has been cancelled
Create Releases / call-mac (push) Has been cancelled
Create Releases / call-linux (push) Has been cancelled
Create Releases / call-sdist (push) Has been cancelled
Create Releases / call-win (push) Has been cancelled
Create Releases / call-pyodide (push) Has been cancelled
Windows_No_Exception_CI / build (x64, 3.10) (push) Has been cancelled
Check URLs / build (push) Has been cancelled
Create Releases / Attest CI build artifacts (push) Has been cancelled
Create Releases / Check for Publish release build to pypi (push) Has been cancelled
Create Releases / Check for Publish preview build to test.pypi-weekly (push) Has been cancelled
Create Releases / Publish preview build to test.pypi-weekly (push) Has been cancelled
Create Releases / Check for Publish release build to test.pypi (rc-candidates) (push) Has been cancelled
Create Releases / Publish release build to test.pypi (push) Has been cancelled
Create Releases / Check for Publish preview build to pypi-weekly (push) Has been cancelled
Create Releases / Publish preview build to pypi-weekly (push) Has been cancelled
Create Releases / Publish release build to pypi (push) Has been cancelled
Create Releases / test source distribution (push) Has been cancelled
103 lines
3.2 KiB
YAML
103 lines
3.2 KiB
YAML
# Copyright (c) ONNX Project Contributors
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Dependencies are centrally managed by Pixi. Using Pixi is the
|
|
# recommended way to obtain linter-results that match what runs on
|
|
# CI. A fall-back that looks for the tools in PATH is provided, but
|
|
# not recommended.
|
|
#
|
|
# The fall-back logic hinges on the assumption that every supported
|
|
# system provides a `python3` interpreter in PATH. The executed script
|
|
# then looks for Pixi. If found the hooks are executed through its
|
|
# default environment. Otherwise, they are looked for in PATH directly
|
|
# (user-managed).
|
|
repos:
|
|
- repo: builtin
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
exclude: "^docs/docsgen/source/_static/diff2html"
|
|
# TODO: Enable this step which creates some churn
|
|
# - id: end-of-file-fixer
|
|
# exclude: "^docs/docsgen/source/_static/diff2html"
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff-lint
|
|
name: ruff lint
|
|
entry: python3 tools/pixi-shim.py ruff check --force-exclude --fix
|
|
language: system
|
|
types_or: [python, pyi]
|
|
exclude: '(_pb2|\.setuptools-cmake-build/|^docs/)'
|
|
require_serial: true
|
|
|
|
- id: ruff-format
|
|
name: ruff format
|
|
entry: python3 tools/pixi-shim.py ruff format --force-exclude
|
|
language: system
|
|
types_or: [python, pyi]
|
|
exclude: '(_pb2|\.setuptools-cmake-build/|^cmake/|^docs/)'
|
|
require_serial: true
|
|
|
|
- id: mypy
|
|
name: mypy
|
|
entry: python3 tools/pixi-shim.py mypy --config-file=pyproject.toml
|
|
language: system
|
|
types: [python]
|
|
files: "^(onnx|tools)/"
|
|
exclude: '(^onnx/backend/test/|^onnx/reference/ops/|^onnx/test/|^onnx/reference/reference_evaluator\.py)'
|
|
require_serial: true
|
|
|
|
- id: clang-format
|
|
name: clang-format
|
|
entry: python3 tools/pixi-shim.py clang-format -i
|
|
language: system
|
|
types_or: [c, c++]
|
|
files: "^onnx/"
|
|
|
|
- id: namespace-check
|
|
name: namespace check (no hardcoded onnx namespace)
|
|
entry: python3 tools/pixi-shim.py python tools/check_namespace.py
|
|
language: system
|
|
types_or: [c, c++]
|
|
exclude: "^third_party/"
|
|
|
|
# TODO: Enable this step which creates some churn
|
|
# - id: prettier
|
|
# name: prettier
|
|
# entry: pixi run prettier --write --list-different
|
|
# language: system
|
|
# types: [text]
|
|
# files: \.(md|yml|yaml)$
|
|
|
|
- id: typos
|
|
name: typos
|
|
entry: python3 tools/pixi-shim.py typos --force-exclude
|
|
language: system
|
|
types: [text]
|
|
require_serial: true
|
|
exclude: "^docs/docsgen/"
|
|
|
|
# REUSE license compliance
|
|
- id: reuse
|
|
name: reuse lint
|
|
entry: python3 tools/pixi-shim.py reuse lint
|
|
language: system
|
|
pass_filenames: false
|
|
|
|
- id: shellcheck
|
|
name: shellcheck
|
|
entry: python3 tools/pixi-shim.py shellcheck
|
|
language: system
|
|
types: [shell]
|
|
|
|
- id: zizmor
|
|
name: zizmor
|
|
entry: python3 tools/pixi-shim.py zizmor --fix .
|
|
language: system
|
|
types: [yaml]
|
|
pass_filenames: false
|