I am trying to run Flake8 for my python code however I'm noticing it's not giving me any of the PyDocStyle errors on a simple class with missing docstrings or warning about my class name cars
which should be Cars
according to PEP8 style guide
Example code file (cars.py)
class cars:
def __init__(self, some_value):
self.some_value = some_value
when I run flake8 cars.py
I get the following output:
cars.py:3:37: W292 no newline at end of file
I'm trying to configure Flake8 to run some common style checks but not finding any help in the Flake8 documentation about how to enable PyDocStyle error codes.
For comparison, I ran the same file against Pylint and here is the output
************* Module code.cars
cars.py:3:0: C0304: Final newline missing (missing-final-newline)
cars.py:1:0: C0114: Missing module docstring (missing-module-docstring)
cars.py:1:0: C0103: Class name "cars" doesnt conform to PascalCase naming style (invalid-name)
cars.py:1:0: C0115: Missing class docstring (missing-class-docstring)
cars.py:1:0: R0903: Too few public methods (0/2) (too-few-public-methods)
------------------------------------
Your code has been rated at -6.67/10
I'm using python 3.7.6, flake8 3.7.9 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.7.6 on Linux