Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

Add flake8 and follow it #212

Closed ItsDrike closed 2 years ago

ItsDrike commented 2 years ago

General goal of this PR

This PR adds flake8, along with several flake8 plugins to further enhance the rules which the codebase should be following.

Specifically, it adds these flake8 extensions:

Addressing project's docstring convetion

There were some discussions about project's docstring convetion, which lead us to propose flake8 as something that may be used to enforce some convention like this, however it wasn't yet decided what convention will we use, and so this PR will NOT address this issue and the specific flake8 plugins and rules to do this should be added in another one.

But I did want to mention 2 flake8 plugins which may be worth adding in future PRs:

Tasks

Some notes