Commit Graph

8 Commits

Author SHA1 Message Date
Martin Thoma
fe6aae07f4 Python: Add tests and type annotations 2022-03-22 11:58:30 +01:00
Martin Thoma
2316195b30 Python: Add type annotations 2022-03-20 19:16:39 +01:00
Martin Thoma
71e3396bd5 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
32148bafe5 Python: Fix string concatenation 2022-03-15 13:57:28 +01:00
Martin Thoma
fed9b92672 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
93e1a78363 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
Jackson Brouwer
99dee87db0 Bug fix on defense change 2022-01-12 22:50:00 -06:00
Jackson Brouwer
c69b9e483f Python version 2022-01-09 15:05:24 -06:00