sopel-irc / sopel

:robot::speech_balloon: An easy-to-use and highly extensible IRC Bot framework. Formerly Willie.
https://sopel.chat
Other
949 stars 403 forks source link

ci, make: "lint" (flake8 & mypy) replace "quality" #2502

Closed Exirel closed 1 year ago

Exirel commented 1 year ago

Description

I think Sopel 8.0 is ready to enforce type check (close #2461).

I know I did that, so I'm owning my mistake, and rename "make quality" by "make lint". A linter is something that checks your code for errors, and both flake8 and mypy are linters.

There are now 2 new make commands:

The command quality is replaced by the command lint, which runs both lint-style and lint-type.

Type check is now mandatory in CI, and the PR template has been updated accordingly.

Note

I used the kebab-case style for the lint sub-commands, while other sub-commands use the snake_case. We can either switch all to kebab-case (my preferred style for command), or I keep it to snake_case. I have a preferred option, however for the sake of consistency, I'll be happy to revert that if there is an objection.

Checklist

Exirel commented 1 year ago

Let's go then.