12326a5e2c
Use new Union syntax
...
This bumps the minimum Python version to 3.10
2023-05-29 12:35:40 -07:00
62edaac25a
Add type hints to functions
2023-05-28 20:09:54 -07:00
f9bcd534d4
Move ansi code into wk/ui
2023-04-08 19:20:22 -07:00
95d7159414
Move ANSI color escape sections to their own file
2023-04-02 20:46:54 -07:00
03a143488c
Adjust ui imports and calls
2023-04-02 20:12:18 -07:00
89fd647792
Split wk.std into debug, std, and ui sections
2023-04-01 22:14:03 -07:00
e00920f24a
Switch to ruff linting
2023-03-19 18:47:46 -07:00
e583929498
Reduce time needed for get_disks()
2022-11-12 23:21:23 -08:00
7714b3436f
Track initial and current SMART attributes
...
Addresses issue #194
2022-10-08 19:26:20 -07:00
4465caa9fd
Skip empty devices
2022-10-08 18:45:31 -07:00
a6a774beae
Update Disk details before checking labels
2022-10-08 18:44:56 -07:00
2c9e56e830
Improve device size reporting in the description
...
i.e. support 512GB SSDs, 1.5TB HDDs, etc
Addresses issue #199
2022-10-08 16:33:50 -07:00
6880a353cc
Set known_attributes when intializing Disk()
...
This new design uses copy.deepcopy() to avoid erroneous thresholds being
applied to drives during diags. This also reduces the number of lookups
to one per Disk.
2022-10-08 14:15:32 -07:00
f008546565
Avoid crashing if a device disconnects mid-diags
2022-09-24 19:58:41 -07:00
7abd4c21c3
Refactor Disk children sections
...
Child devices are not added by default to improve performance.
Disk.children is always present to avoid overly cautious lookups.
2022-05-21 15:03:44 -07:00
e03956f2fe
Convert Disk description to a property
2022-05-21 14:39:42 -07:00
29d4e80f7e
Refactor get_disks_macos() to improve performance
...
Found a way to easily exclude disk images from the list under El Cap
2022-05-20 19:44:12 -07:00
cf7ed909b3
Remove Python 3.10 requirement
2022-05-20 17:08:10 -07:00
5fc5cda86d
Avoid adding duplicate attribute failure notes
2022-05-14 17:51:43 -07:00
6642aad2c8
Update ddrescue-tui to use new Disk object vars
2022-05-01 16:20:39 -07:00
46eb737dc8
Move SMART functions to their own file
2022-04-06 16:22:58 -06:00
172cb398ba
Convert hardware objects to dataclasses
2022-04-04 18:30:21 -06:00