代码拉取完成,页面将自动刷新
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
default_stages: [push]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
stages: [commit]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.10.1
hooks:
- id: validate-pyproject
name: Validate pyproject.toml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-yaml
name: Validate YAML files
exclude: conda/recipe/meta.yaml
- id: check-json
name: Validate JSON files
- repo: local
hooks:
- id: run-code-quality
name: Run code quality checks
entry: pytest tests/codebase/test_code_quality.py
language: conda
pass_filenames: false
- id: run-eslint
name: Run ESLint
entry: pytest tests/codebase/test_eslint.py
language: conda
pass_filenames: false
- id: run-isort
name: Run isort checks
entry: pytest tests/codebase/test_isort.py
language: conda
pass_filenames: false
- id: run-ruff
name: Run ruff checks
entry: pytest tests/codebase/test_ruff.py
language: conda
pass_filenames: false
- id: run-vermin
name: Run vermin checks
entry: pytest tests/codebase/test_vermin.py
language: conda
pass_filenames: false
- id: validate-license
name: Validate LICENSE file
entry: pytest tests/codebase/test_license.py
language: conda
pass_filenames: false
- id: check-exclusions
name: Verify package exclusions
entry: pytest tests/codebase -k test_no
language: conda
pass_filenames: false
- id: check-optimized
name: Verify that OO mode works
entry: pytest tests/codebase/test_python_execution_with_OO.py
language: conda
pass_filenames: false
- id: check-windows-filenames
name: Check for reserved windows filenames
entry: pytest tests/codebase/test_windows_reserved_filenames.py
language: conda
pass_filenames: false
- id: protect-branches
name: Protect Git branches
entry: python scripts/hooks/protect_branches.py
language: conda
pass_filenames: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。