mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 09:10:04 +01:00
pre-commit: drop black, use ruff-format instead
And switch to the current-ish version of the ruff pre-commit hook, including updating the repo. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1072>
This commit is contained in:
parent
15af1c0017
commit
a61c876412
2 changed files with 4 additions and 8 deletions
|
|
@ -6,16 +6,13 @@ repos:
|
|||
- id: trailing-whitespace
|
||||
- id: no-commit-to-branch
|
||||
args: ['--branch', 'main']
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.10.0
|
||||
hooks:
|
||||
- id: black
|
||||
args: ['--check', '--diff', '--extend-exclude=subprojects', '.']
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.254
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.7.0
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: ['--ignore=E741,E501', '--extend-exclude=subprojects', '.']
|
||||
- id: ruff-format
|
||||
args: ['--check', '--diff']
|
||||
- repo: https://gitlab.freedesktop.org/freedesktop/ci-templates.git
|
||||
rev: 7402203527f61d6473d55ad701172d1606508c52
|
||||
hooks:
|
||||
|
|
|
|||
|
|
@ -591,7 +591,6 @@ class TestYaml(unittest.TestCase):
|
|||
for e in self.libinput_events(
|
||||
["TABLET_TOOL_PROXIMITY", "TABLET_TOOL_AXIS", "TABLET_TOOL_TIP"]
|
||||
):
|
||||
|
||||
point = e["point"]
|
||||
self.assertTrue(isinstance(point, list))
|
||||
self.assertEqual(len(point), 2)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue