Add warning to top of cpep8.manifest

This commit is contained in:
Dan Smith 2023-03-10 17:40:37 -08:00 committed by Dan Smith
parent 8902b7b82a
commit 360d75e995
3 changed files with 17 additions and 1 deletions

View File

@ -45,6 +45,14 @@ if grep -E "_\([^\"']" added_lines; then
fail 'Translated strings must be literals!'
fi
if grep '/cpep8.manifest' added_lines; then
fail 'Do not add new files to cpep8.manifest; no longer needed'
fi
if grep '/cpep8.blacklist' added_lines; then
fail 'Do not add new files to cpep8.blacklist'
fi
for file in $(git diff --name-only ${BASE}..); do
if file $file | grep -q CRLF; then
fail "$file : Files should be LF (Unix) format, not CR (Mac) or CRLF (Windows)"

View File

@ -1,3 +1,11 @@
#
#
# NOTE: Do not add files to this manifest anymore. New files will be run
# under flake8 automatically if they are in the tree. Files in this manifest
# will continue to run under cpep8's less-strict rules until they can be
# fixed.
#
#
./chirp/drivers/alinco.py
./chirp/drivers/anytone.py
./chirp/drivers/anytone778uv.py

View File

@ -56,7 +56,7 @@ def file_to_lines(name):
lines = fh.read().split("\n")
lines.pop()
fh.close()
return lines
return [x for x in lines if not x.startswith('#')]
scriptdir = os.path.dirname(sys.argv[0])