Files
agnos-builder/.pre-commit-config.yaml
pantew869 6e94867233 Switch from poetry to uv (#238)
* switch to uv from poetry

* delete poetry.lock

* add uv.lock, required-python, and switch to hatch as in openpilot

* add uv.lock, required-python, and switch to hatch as in openpilot

* update pyproject.toml and copy uv.lock to the docker image

* return opencl

* update uv.lock

* fix precommit

* use two spaces
2024-07-14 07:29:18 -07:00

39 lines
1.2 KiB
YAML

repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
exclude: '^(tools)/'
- id: check-toml
- id: check-xml
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- id: check-added-large-files
args: ['--maxkb=100']
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
exclude: '^(userspace/files/serviceproviders.xml)|(tools/)|(userspace/uv.lock)'
args:
# if you've got a short variable name that's getting flagged, add it here
- -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup
- --builtins clear,rare,informal,usage,code,names,en-GB_to_en-US
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: '^(tools/)'
additional_dependencies: ['flake8-no-implicit-concat']
args:
- --indent-size=2
- --enable-extensions=NIC
- --select=F,E112,E113,E304,E502,E701,E702,E703,E71,E72,E731,W191,W6
- --statistics
- -j4