13 Commits

Author SHA1 Message Date
Aldrin Misquitta
a56a42f52b Fixes the type check failures for python implementations, boxing.py and Stock_Market.py 2024-09-24 15:02:21 +04:00
Sourcery AI
71d02673a9 'Refactored by Sourcery' 2024-08-19 03:46:27 +03:00
Martin Thoma
c500424956 Simplify Python Code
print_with_tab / print_with_whitespace is trivial with Python
string formatting and was mostly used in only 2 lines.
2022-04-02 07:32:09 +02:00
Martin Thoma
17a75813b1 Remove tests and alternative Python implementations
Ad discussed here:
https://github.com/coding-horror/basic-computer-games/issues/548#issuecomment-1081008471
2022-03-29 07:02:10 +02:00
Martin Thoma
054d0326ee Boxing (Python): Rename methods for clarity 2022-03-23 21:36:24 +01:00
Martin Thoma
d1ff4bce0e Boxing (Python): Move configuration to JSON files 2022-03-23 21:32:36 +01:00
Martin Thoma
53adcc70d0 BUG: Fix best in Python boxing 2022-03-23 12:26:07 +01:00
Martin Thoma
8ee56f94a1 Boxing (Python): Split configuration from logic 2022-03-23 12:20:06 +01:00
Martin Thoma
1b1d50986b Python: Add type annotations to all 'print' functions (#662)
* Add test to superstartrek and fixes several issues in superstartrek - I probably introduced them 🙈
* Mastermind type annotations
2022-03-21 10:41:14 +01:00
Martin Thoma
f52d9a0e54 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
4adb34f25c Python: Fix code style issues 2022-03-11 07:44:56 +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
Chris Reuter
d26dbf036a 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