savoirfairelinux / flake8-copyright

Adds copyright checks to flake8
GNU Lesser General Public License v3.0
15 stars 15 forks source link

Doesn't work with flake8 3.5.0 #10

Open arogowie-intel opened 6 years ago

arogowie-intel commented 6 years ago

Doesn't work correctly with following file. I don't get any error message for command flake8 --copyright-check dummy_file.py

import numpy as np

a = np.zeros((1, 2, 3))
print(a)

flake8 --version:

$ flake8 --version
3.5.0 (flake8-comprehensions: 1.4.1, flake8-docstrings: 1.3.0, pydocstyle: 2.1.1, flake8_commas: 2.0.0, flake8_copyright: 0.2.0, flake8_quotes: 1.0.0, mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.6.0) CPython 3.5.2 on Linux
Paul-AUB commented 3 years ago

It seems you need to specify in config file select = C. The linked PR fix the issue by defaulty enabling the error code C801