* Use auditwheel on Android * Add auditwheel command to defaults * pkgconfig fixes * Pre-import ctypes before monkey-patching in _cross_venv * Set PKG_CONFIG and PKG_CONFIG_RELOCATE_PATHS variables * Initial attempt at using mzakharo/android-gfortran * Switch to using termux/ndk-toolchain-clang-with-flang * Move PKG_CONFIG variables from build_env to android_env * Simplify flang installation * Add cross build files for NumPy * Add ldpaths entry for libomp * Add `--rm` to docker command line * Make Rust and Fortran shims consistent * Update documentation * Default to API level 24 on all Python versions * Clarify comments * Cleanups * Fix tests: * Set up Android env after installing pkgconf * Add tests for successfully using an older API level * Previous commit's auditwheel failure is fixed in the auditwheel PR * Update how-it-works diagram * Add tests for repair errors * Add more repair tests * Add test for Meson and Fortran * Add test for cross build files * Improve test_api_level error message * Add xbuild-files option * use pypa/auditwheel@main * Remove dependencies which are no longer needed * Fix README * Update to auditwheel 6.7.0 * Fix compatibility with pkgconf 2.5.1.post2 * Documentation clarifications Co-authored-by: Joe Rickerby <joerick@mac.com> * Fortran shim improvements * Add Jinja variables to new_meson_project * Update run_example_ci_configs for changed new_meson_project signature * Add missing dependency to run_example_ci_configs --------- Co-authored-by: mayeut <mayeut@users.noreply.github.com> Co-authored-by: Joe Rickerby <joerick@mac.com>
103 lines
2.9 KiB
YAML
103 lines
2.9 KiB
YAML
ci:
|
|
autoupdate_schedule: monthly
|
|
exclude: "^cibuildwheel/resources/ios-support/(?!make_cross_venv\\.py)"
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: debug-statements
|
|
- id: end-of-file-fixer
|
|
exclude: (cibuildwheel/resources/pinned_docker_images.cfg)|(.svg$)
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
exclude: ^cibuildwheel/resources/android/android.patch$
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: 0c7b6c989466a93942def1f84baf36ddfcd60c83 # frozen: v0.15.14
|
|
hooks:
|
|
- id: ruff-check
|
|
args: ["--fix"]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: fc0f09a29bb495f4a91f00266155d6282d52485d # frozen: v1.20.2
|
|
hooks:
|
|
- id: mypy
|
|
name: mypy 3.11 on cibuildwheel/
|
|
args: ["--python-version=3.11"]
|
|
exclude: ^cibuildwheel/resources/android/_cross_venv.py$ # Requires Python 3.13 or later
|
|
additional_dependencies: &mypy-dependencies
|
|
- bracex
|
|
- build
|
|
- dependency-groups>=1.2
|
|
- humanize
|
|
- nox>=2025.2.9
|
|
- orjson
|
|
- packaging
|
|
- pygithub
|
|
- pytest
|
|
- rich
|
|
- tomli_w
|
|
- types-certifi
|
|
- types-click
|
|
- types-jinja2
|
|
- types-pyyaml
|
|
- types-requests
|
|
- types-setuptools
|
|
- uv
|
|
- validate-pyproject
|
|
- id: mypy
|
|
name: mypy 3.14
|
|
args: ["--python-version=3.14"]
|
|
additional_dependencies: *mypy-dependencies
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
|
|
hooks:
|
|
- id: shellcheck
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: disallow-caps
|
|
name: Disallow improper capitalization
|
|
language: pygrep
|
|
entry: PyBind|Numpy|Cmake|Github|PyTest
|
|
types: [markdown]
|
|
exclude: ^docs/working-examples\.md$ # Autogenerated
|
|
- id: cog
|
|
name: Cog the README
|
|
language: python
|
|
pass_filenames: false
|
|
entry: cog -c -P -r -I ./bin README.md
|
|
files: '^(README\.md|docs/changelog\.md|docs/options\.md|bin/readme.*)$'
|
|
additional_dependencies: [cogapp>=3.5]
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
|
|
hooks:
|
|
- id: codespell
|
|
args: ["-w"]
|
|
exclude: ^docs/working-examples\.md$ # Autogenerated
|
|
|
|
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
rev: 943377262562a12b57292fc98fabd7dbf81451fe # frozen: 0.37.2
|
|
hooks:
|
|
- id: check-dependabot
|
|
- id: check-github-actions
|
|
- id: check-github-workflows
|
|
- id: check-gitlab-ci
|
|
- id: check-readthedocs
|
|
- id: check-travis
|
|
- id: check-jsonschema
|
|
name: Check projects
|
|
args: [--schemafile, docs/data/projects.schema.json]
|
|
files: '^docs/data/projects.yml$'
|
|
- id: check-metaschema
|
|
files: '^docs/data/projects.schema.json$'
|