mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 14:07:17 +08:00
refactor: Update with camel version 0.2.23
This commit is contained in:
29
.pre-commit-config.yaml
Normal file
29
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: 'v0.7.4'
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
|
||||
exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
|
||||
- id: ruff-format
|
||||
exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: mypy
|
||||
name: Check mypy
|
||||
entry: mypy --namespace-packages -p owl
|
||||
language: python
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
require_serial: true
|
||||
exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-license
|
||||
name: Check License
|
||||
entry: python licenses/update_license.py . licenses/license_template.txt
|
||||
language: system
|
||||
types: [python]
|
||||
exclude: ^docs/cookbooks/ # Ignore files under docs/cookbooks
|
||||
Reference in New Issue
Block a user