CI: Pylint to ruff (#911)

This commit is contained in:
Justin Newberry 2023-08-07 15:26:46 -07:00 committed by GitHub
parent 46b59dd99e
commit 4b44eb6c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 20 deletions

View File

@ -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:

View File

@ -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"

View File

@ -1,8 +1,7 @@
ruff
Cython
flake8
Jinja2
numpy
pycapnp
pylint==2.17.4
pyyaml
scons