mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 10:37:15 +00:00
Add warning to top of cpep8.manifest
This commit is contained in:
parent
8902b7b82a
commit
360d75e995
@ -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)"
|
||||
|
@ -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
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user