MattHag
62e8aacd9f
Remove Python 2 specific path handling
...
Related #2273
2025-01-01 10:18:44 -05:00
MattHag
46366b2430
Fix warnings from automatic code inspections
...
Warnings found by automatic code inspection and partially tackled
- Drop distuitls inf favour of setuptools
- Replace deprecated pyudev.Device.from_device_number
- Remove unnecessary brackets
- Avoid access to private variables etc.
- Shadows built-in name
- Line length >120 characters
- Not a module level variable
- Simplify clause
and more
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
Matthias Hagmann
7774569971
Apply ruff format
...
Run ruff auto formatting using:
ruff format .
Related #2295
2024-02-20 15:41:10 -05:00
ejsc1
0c7a9dd0a7
misc: update isort to current version
...
* Update .pre-commit-config.yaml
* Update solaar
* Update udev.py
* Update __init__.py
* Update gtk.py
* Update i18n.py
* Update listener.py
* Update icons.py
* Update notify.py
* Update hidconsole
* Update gtk.py
* Update icons.py
Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
2022-11-26 13:58:46 -05:00
Hugo Osvaldo Barrera
a763be6839
Also drop legacy code from bin/solaar
2021-10-30 16:49:41 -04:00
Peter F. Patel-Schneider
46e6c98523
dist: remove deprecated solaar-cli appliation
2020-07-25 21:25:16 -04: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
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Dmitriusan
bd26b9340d
scripts/debian: switch to python3
2020-02-06 19:06:47 +01:00
Peter F. Patel-Schneider
f45ae5ffad
solaar: use python3, not generic python
2020-02-06 17:37:10 +01:00
Josenivaldo Benito Jr
122d76d061
UTF-8 file paths error on python 2
...
Python 2 needs UTF-8 decode since it uses 'ascii' decode by default.
Python 3 might have problems converting back to UTF-8 in case of Unicode
surrogates
Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
2016-11-18 15:00:20 -02:00
Daniel Pavel
3b75b69970
merged solaar-cli functionality into main solaar binary
2013-08-09 12:25:47 +02:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
47f64d40de
explicit encoding in main scripts
2013-07-07 21:54:35 +02:00
Daniel Pavel
340ff0107c
version 0.8.8.2
2013-05-26 18:43:23 +03:00
Daniel Pavel
e7d19c9084
small fixes to hidconsole
2013-04-28 14:00:46 +02:00
Daniel Pavel
36f34da227
proper debian packaging, dropper stdeb
2013-01-05 11:48:35 +02:00
Daniel Pavel
345bab3a99
fix code looking for icons
2013-01-04 08:18:22 +02:00
Daniel Pavel
064a7a113c
added setup.py for python and debian packaging
2012-12-18 05:03:43 +02:00
Daniel Pavel
187c0d2a52
fixes in the shell scripts
2012-12-14 19:33:01 +02:00
Daniel Pavel
8b90e99658
bin/ scripts updated
2012-12-10 15:36:10 +02:00
Daniel Pavel
c4be58f074
dropped bin/scan as deprecated, bin/solaar-cli completely replaces it
2012-12-07 15:31:19 +02:00
Daniel Pavel
7ada4af31b
hidconsole has to be run in unbuffered mode
2012-12-07 14:29:30 +02:00
Daniel Pavel
3fe9caf0e6
added solaar-cli for command-line operations
2012-12-03 11:34:35 +02:00
Daniel Pavel
2a44b0bb5b
fixed scan not seeing the devices
2012-12-01 22:34:52 +02:00
Daniel Pavel
d6b18cd426
python 3 fixes
2012-11-29 12:34:20 +02:00
Daniel Pavel
84540fb087
re-wrote most of the app, based on latest HID++ docs from Logitech
2012-11-29 04:10:16 +02:00
Daniel Pavel
66531635bc
scripts clean-up
2012-11-12 15:33:21 +02:00
Daniel Pavel
4c5cf85091
re-worked the UI a bit to give better info on devices status
2012-11-12 15:28:38 +02:00
Daniel Pavel
40eacb0741
LD_LIBRARY_PATH no longer needed
2012-11-06 17:38:49 +02:00
Daniel Pavel
4cb9b30466
use the first python version found when starting the scripts
2012-11-05 20:52:51 +02:00
Daniel Pavel
6e06e39612
fixed loading readline history when the file does not exist
2012-11-02 09:57:08 +02:00
Daniel Pavel
e7bb599689
reworked the way tasks are processed by the listener
2012-10-27 18:40:54 +03:00
Daniel Pavel
62a91b56d2
logging and python3 cleanups
2012-10-24 15:09:39 +03:00
Daniel Pavel
f2dac70131
reworked the receiver and devices into classes
2012-10-18 14:19:20 +03:00
Daniel Pavel
25d5d20825
readme and installation notes updated, license changed to GPLv2
2012-10-13 23:28:06 +03:00
Daniel Pavel
cbfcd8416a
re-organized the directories a bit
2012-10-11 19:19:27 +03:00