DomHeadroom
90ab457ebe
Rewrote string concatenation/format with f strings
2025-01-29 08:40:14 -05:00
MattHag
46fafa0e68
hidapi: Explicitly load hidapi/udev implementation
...
Linux uses udev, other platforms use the cross-platform hidapi
implementation. Remove implicit loading of hidapi in hidapi/__init__.py.
2024-10-11 07:42:38 -04:00
MattHag
67829c5807
Clean up imports ( #2537 )
...
* Remove import as _ in solaar startup
Related #2273
* Remove import as _ in listener
Related #2273
* Remove import as _ in cli init
Related #2273
* Remove import as _ in gtk
Related #2273
* Remove import as _ in show
Related #2273
* Remove import as _ in tray
Related #2273
* Remove import as _ in profiles
Related #2273
* Remove import as _ in config
Related #2273
* Remove import as _ in config panel
Related #2273
* Remove import as _ in window
Related #2273
* Remove import as _ in pair
Related #2273
* Remove import as _ in pair window
Related #2273
* Remove import as _ in cli package
Related #2273
* Remove import as _ in ui package
Related #2273
* Remove commented out code
Related #2273
* Use constant for Logitech ID
2024-07-15 08:37:18 -04:00
MattHag
5a63e44d58
Remove empty comment lines
...
Remove hashtags solely used for structuring.
Related #2273
2024-06-02 09:54:21 -04:00
MattHag
d0a3e474c7
hidapi: Unify imports in hidapi package ( #2487 )
...
Remove all 'import xyz as _xyz' and favor import of module name to
get more context in the code.
Related #2273
2024-05-16 15:58:22 -04:00
MattHag
704a87696f
hidapi: Remove Python 2 compatibility ( #2460 )
...
Related #2273
2024-04-30 08:19:50 -04:00
Matthias Hagmann
5b09ace1f5
ruff: Apply single line import format
...
# Usage
pre-commit run --all-files
Related #2295
2024-03-13 15:41:21 -04:00
Matthias Hagmann
e92f1a8a0b
Automatically upgrade strings to f-string
...
Used flynt to convert strings to f-strings, where safely possible.
Usage:
flynt .
Related #2372
2024-03-13 11:02:50 -04:00
MattHag
574a95da50
cleanup: Remove unnecessary calls of del
...
Related #2273
2024-03-02 10:48:06 -05:00
Matthias Hagmann
7ef3059b69
clean up: Remove editor specific marks
...
Related #2273
2024-02-29 10:10:46 -05:00
Matthias Hagmann
eb937fcc3a
Manually fix linter issues
...
Related #2295
2024-02-20 15:41:10 -05:00
Matthias Hagmann
7774569971
Apply ruff format
...
Run ruff auto formatting using:
ruff format .
Related #2295
2024-02-20 15:41:10 -05:00
Peter F. Patel-Schneider
d1c899d6da
solaar: improve imports and guard Gtk, etc imports with correct version
...
solaar: move imports to top of files
solaar: move more imports to top of files
solaar: guard Gtk, etc imports with correct version
2024-02-18 06:21:35 -05:00
Peter F. Patel-Schneider
485596cbf3
tools: permit BT devices for hidconsole with hidpp
2023-09-17 10:39:48 -04:00
Peter F. Patel-Schneider
253930d628
tools: fix bug in scan-registers
2023-09-16 10:35:26 -04:00
Peter F. Patel-Schneider
8dd8c8b76f
tools: allow device 0 in hidconsole
2023-08-12 14:51:31 -04:00
Peter F. Patel-Schneider
fd9653fa33
tools: update scan-registers.sh to fix a bug and scan pairing registers
2023-05-19 07:14:10 -04:00
ejsc1
5656f90cdb
misc: update yapf version
...
* misc: update yapf version v2
* Update .pre-commit-config.yaml
Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
2022-11-26 22:37:32 -05:00
Peter F. Patel-Schneider
bb20631a27
misc: remove support for Python 2 unicode
2022-04-11 13:20:42 -04:00
Hugo Osvaldo Barrera
22bf4fafff
Drop unnecessary __future__ imports
...
These are all active by default on all recent Python versions.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
b96d16672b
Drop obsolete encoding declaration
...
This was only parsed in Python 2.
Python 3 only supports UTF-8 for source files, and that's what it uses.
2021-10-30 16:49:41 -04:00
Peter F. Patel-Schneider
3cd76aa191
tools: fix up call to udev matching in hidconsole
2021-03-02 19:02:08 -05:00
Filipe Laíns
27c90fa736
yapf: adjust style to not indent closing brackets
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
8e89aa0038
yapf: set max line lenght to 127
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
627185079f
flake8: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
33521558ed
pre-commit: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
e6369e0c3c
isort: intial import fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Tom Swartz
ae9e862f19
Fix typos in comments
2019-10-20 23:53:45 +01:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
ce9b10dc2d
started i18n support
2013-07-15 17:16:44 +02:00
Daniel Pavel
8e9ff939f3
hidconsole: enable hidpp automatically when talking to a Logitech Recevier
2013-07-05 16:19:24 +02:00
Daniel Pavel
3873d7099c
slightly reduce sleep timings when waiting for reply
2013-05-23 04:59:16 +03:00
Daniel Pavel
79cd52833c
fix hidconsole for python 2/3
2013-05-06 17:38:09 +02:00
Daniel Pavel
15f24eb26b
use 'with' lock syntax instead of acquire/release
2013-05-06 15:35:20 +02:00
Daniel Pavel
0283bb0e91
fix str/unicode detection in Python 3.2
2013-05-06 15:33:42 +02:00
Peter Wu
a6b89b3ea3
Python3 compatibility for hidconsole
...
`type(u'')` is 'str' in Python 3, it was `unicode` on Python 2 (with
`unicode_literals` from `__future__`).
2013-05-02 22:58:35 +02:00
Daniel Pavel
e7d19c9084
small fixes to hidconsole
2013-04-28 14:00:46 +02:00
Daniel Pavel
60405abf58
dropped unnecessary #! in lib/ python files
2013-01-07 11:54:52 +02:00
Daniel Pavel
36f34da227
proper debian packaging, dropper stdeb
2013-01-05 11:48:35 +02:00
Daniel Pavel
064a7a113c
added setup.py for python and debian packaging
2012-12-18 05:03:43 +02:00
Daniel Pavel
f4b92ee690
print () clean-ups
2012-12-12 21:43:55 +02:00
Daniel Pavel
33a9ca060d
made hidconsole more user-friendly
2012-12-08 00:41:10 +02:00
Daniel Pavel
b86dcce381
I come from the __future__, come with me if you want to live.
2012-12-07 17:10:22 +02:00
Daniel Pavel
37daf3a192
better handling of terminal in hidconsole
2012-12-07 14:40:48 +02:00
Daniel Pavel
7ada4af31b
hidconsole has to be run in unbuffered mode
2012-12-07 14:29:30 +02:00
Daniel Pavel
f0007d0a13
updates to the command lines
2012-12-07 13:41:07 +02:00
Daniel Pavel
5b8c983ab3
some speed tweaks to hidconsole batch mode
2012-11-24 22:49:15 +02:00
Daniel Pavel
50fedab19e
re-worked how fd handles are used in multi-threading
2012-11-11 17:03:13 +02:00
Daniel Pavel
ec6a2d892a
improved hidconsole in tty and batch mode
2012-11-08 12:01:00 +02:00