mkdir temp
cd temp
virtualenv venv
source venv/bin/activate
pip install flake8-docstrings
echo "[flake8]" >> setup.cfg
echo "ignore=" >> setup.cfg
echo " D100 # Missing docstring in public module" >> setup.cfg
echo " D103 # Missing docstring in public function" >> setup.cfg
echo "def test(a):" >> my_file.py
echo " print(a)" >> my_file.py
flake8 my_file.py
Everything works fine!
echo "[flake8]" > setup.cfg
echo "ignore=" >> setup.cfg
echo " D100 # Require docstring in public module, removed the D103 for public functions." >> setup.cfg
flake8 my_file.py
Everything still runs without any "warning". What happened ?
Shouldn't we get my_file.py:1:1: D103 Missing docstring in public function ?