Write clean code is an essential skill that allows us to share and collaborates with others, I'm wondering which linter is suitable for my workflow, I'm trying flake8
and pylint
, but when I execute it, they detect different aspects.
# I'm executing it in the below way
$ flake8 .
$ pylint my_module.py
I would like a code linter for:
- To follow the official PEP 8 guide style.
- To implement validation in git, I don't know if with CI/CD, pre-commit or something else.
- To add it to an IDE to get advice in the fly.
What code linter do you recommend for this workload?