Martin Thoma
|
8495e59a8f
|
Python: Make code testable
Avoid executing code on module level as this prevents importing the
module for testing. Especially infinite loops are evil.
|
2022-03-19 09:54:52 +01:00 |
|
Martin Thoma
|
3b2739b8a2
|
Clean Code: Apply flake8-simplify to Python
Also flake8-comprehensions which was added to the CI
For flake8-simplify, there are a few false-positives,
e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
|
2022-03-18 22:29:56 +01:00 |
|
Martin Thoma
|
af88007734
|
Python: Fix Flake8 E722 and E741
Additionally:
* Use functions to group blocks of code
* Use variable names (not just one character...)
|
2022-03-12 08:17:03 +01:00 |
|
Martin Thoma
|
e64fb6795c
|
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
|
2022-03-05 09:29:23 +01:00 |
|
ericries
|
437b4c2920
|
Update tower.py
easier debugging with fewer disks
|
2022-01-01 17:26:04 -08:00 |
|
ericries
|
5e2647682f
|
Add files via upload
Simple python implementation. Apologies for any errors, I only had a minute to whip this up
|
2022-01-01 17:05:56 -08:00 |
|