Custom Pylint Rules from Flightless Ops
In your .pylintrc add or update the following areas:
load-plugins=flightless_pylint_plugin
[MESSAGES CONTROL]
enable=no-pytest-skip,
no-direct-settings-import,
no-conditionals-in-test,Python >= 3.12
Invoke
Poetry
Run poetry install to get started.
The following command will show you current available options:
invoke --listAs of writing, the following commands can be used as listed:
invoke flake8 # Runs flake8 on the project.
invoke pylint # Runs pylint on the project.
invoke mypy # Runs mypy on the project.
invoke lint # Runs flake8 pylint and mypy on the project in sequence.
invoke test # Runs pytest on the project.
invoke coverage # Runs pytest on the project + coverage reports.
invoke build # Builds the project.
invoke publish # Will publish the project pending you have configured poetry to be able to.