mirror of https://github.com/rusefi/opendbc.git
CI: Pylint to ruff (#911)
This commit is contained in:
parent
46b59dd99e
commit
4b44eb6c3c
|
@ -18,25 +18,10 @@ repos:
|
|||
rev: v1.4.1
|
||||
hooks:
|
||||
- id: mypy
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 6.1.0
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.0.282
|
||||
hooks:
|
||||
- id: flake8
|
||||
exclude: 'site_scons/'
|
||||
args:
|
||||
- --select=F,E112,E113,E304,E501,E502,E701,E702,E703,E71,E72,E731,W191,W6
|
||||
- --max-line-length=240
|
||||
- --statistics
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: pylint
|
||||
name: pylint
|
||||
entry: pylint
|
||||
language: system
|
||||
types: [python]
|
||||
exclude: 'site_scons/'
|
||||
args:
|
||||
- --disable=C,R,W0613,W0511,W0212,W0201,W0311,W0106,W0603,W0621,W0703,E1136
|
||||
- id: ruff
|
||||
- repo: https://github.com/MarcoGorelli/cython-lint
|
||||
rev: v0.15.0
|
||||
hooks:
|
||||
|
|
|
@ -10,3 +10,10 @@ repository = "https://github.com/commaai/opendbc"
|
|||
[tool.cython-lint]
|
||||
max-line-length = 120
|
||||
ignore = ["E111", "E114"]
|
||||
|
||||
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
|
||||
[tool.ruff]
|
||||
select = ["E", "F", "W"]
|
||||
ignore = ["W292", "E741"]
|
||||
line-length = 160
|
||||
target-version="py311"
|
|
@ -1,8 +1,7 @@
|
|||
ruff
|
||||
Cython
|
||||
flake8
|
||||
Jinja2
|
||||
numpy
|
||||
pycapnp
|
||||
pylint==2.17.4
|
||||
pyyaml
|
||||
scons
|
||||
|
|
Loading…
Reference in New Issue