Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.5
rev: v0.14.11
hooks:
- id: ruff
- id: ruff-format
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ line-length = 120
[tool.ruff.lint]
ignore = [
"FBT001", # FBT001 Boolean-typed positional argument in function definition
"S320", # S320 Using `lxml` to parse untrusted data is known to be vulnerable to XML attacks
"S101", # S101 Use of `assert` detectd
]

Expand Down
4 changes: 2 additions & 2 deletions src/gsetwacom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
import logging
import os
import string
from configparser import ConfigParser
from dataclasses import asdict, dataclass
from functools import wraps
from pathlib import Path

import click
import dbus_fast
import dbus_fast.aio
import pyudev
import rich.logging
from gi.repository import Gio, GLib # type: ignore

Expand Down Expand Up @@ -128,7 +130,6 @@ def list_tablets():
This uses udev, a device listed here may not be available in the
compositor and/or currently have configuration set.
"""
import pyudev

@dataclass
class Tablet:
Expand Down Expand Up @@ -180,7 +181,6 @@ def list_styli():
be available until it has been brought into proximity above the
control center.
"""
from configparser import ConfigParser

xdg = Path(os.environ.get("XDG_CACHE_HOME", Path.home() / ".cache"))
config = ConfigParser()
Expand Down