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
b65dca80f6
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
dbed6ba98e
Clean Code: Python
...
Fix issues found by flake8-bugbear:
* Unused loop variables
* assert statements in non-test code
* mixing test code with production code
* mark one excessive test which takes ~10min to run
as 'slow'
2022-03-18 14:59:08 +01:00
Martin Thoma
bf6681e3b0
Python: Fix linting issues
...
The following Flake8 issues were fixed:
* W291
* W504
* F821
* F401
* F541
* E402
* E711
2022-03-14 13:13:20 +01:00
Martin Thoma
ef2122456a
Python: Fix Flake8 issue E712 + PEP8 variable naming
2022-03-11 21:42:23 +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
Peter Sharp
47ca5288e0
Renames bug to bug-overengineereed
...
Updates description to match
2022-02-22 11:55:02 -07:00
Peter Sharp
aa5c846f91
Adds comments
2022-02-22 11:54:11 -07:00
Peter Sharp
2a48cc2271
Adds bug python game
2022-02-22 11:53:44 -07:00
uMetalooper
8e3f07e5bf
Bug game added
2022-02-20 21:42:51 +00:00
Chris Reuter
5f664bc71d
Removed spaces from top-level directory names.
...
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00