Martin Thoma
ae0b6a5015
BUG: Hangman (Python) had a List-vs-Str comparison
...
MAINT: Add type annotations to find such issues
2022-03-31 10:33:11 +02: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
83b3dc402c
Python: Add type annotations
2022-03-20 19:16:39 +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
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
5374569063
Python: Fix string concatenation
2022-03-15 13:57:28 +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
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
leecr1215
c1380486d2
feat: add fuctions
2021-11-27 16:22:01 +09:00
GwakMirae
36e49026e6
make Digits.py for Python and add main()
2021-11-27 16:14:12 +09:00