Commit Graph

6 Commits

Author SHA1 Message Date
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
6dde69f274 Python: Fix Flake8 issue E712 + PEP8 variable naming 2022-03-11 21:42:23 +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
Yash Chauhan
df70eca658 Minor Changes to the Traditional NIM 2022-01-06 00:36:48 +05:30
Yash Chauhan
4a44f5097a Ported the Traditional NIM Game into python 3
I just completed the NIM(Traditional Version) game in python. Hope it works as expected
2022-01-06 00:19:34 +05:30