mirror of https://github.com/commaai/body.git
CI: pylint to ruff (#14)
This commit is contained in:
parent
05021c559e
commit
396fa7b923
|
@ -12,20 +12,7 @@ repos:
|
|||
- id: mypy
|
||||
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs', 'types-requests', 'types-atomicwrites',
|
||||
'types-pycurl']
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 5.0.4
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.0.282
|
||||
hooks:
|
||||
- id: flake8
|
||||
args:
|
||||
- --select=F,E112,E113,E304,E501,E502,E701,E702,E703,E71,E72,E731,W191,W6
|
||||
- --max-line-length=160
|
||||
- --statistics
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: pylint
|
||||
name: pylint
|
||||
entry: pylint
|
||||
language: system
|
||||
types: [python]
|
||||
args:
|
||||
- --disable=C,R,W0613,W0511,W0212,W0201,W0311,W0106,W0603,W0621,W0703,E1136
|
||||
- id: ruff
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
|
||||
[tool.ruff]
|
||||
select = ["E", "F", "W"]
|
||||
ignore = ["W292", "E741"]
|
||||
line-length = 160
|
||||
target-version="py311"
|
|
@ -1,5 +1,5 @@
|
|||
cffi
|
||||
scons
|
||||
pylint
|
||||
ruff
|
||||
pre-commit
|
||||
pycryptodome==3.9.8
|
||||
|
|
Loading…
Reference in New Issue