mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
Introduce a make recipe for flake8
Add a make recipe to enable developers to easily run flake8 if it is available. This will help enforce good python coding standards. Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
This commit is contained in:
parent
e169749fc0
commit
46bb91e193
@ -39,7 +39,7 @@ dist-hook:
|
||||
sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
|
||||
$(distdir)/META
|
||||
|
||||
checkstyle: cstyle shellcheck
|
||||
checkstyle: cstyle shellcheck flake8
|
||||
|
||||
cstyle:
|
||||
@find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \
|
||||
@ -62,6 +62,11 @@ cppcheck:
|
||||
cppcheck --quiet --force --error-exitcode=2 ${top_srcdir}; \
|
||||
fi
|
||||
|
||||
flake8:
|
||||
@if type flake8 > /dev/null 2>&1; then \
|
||||
flake8 ${top_srcdir}; \
|
||||
fi
|
||||
|
||||
ctags:
|
||||
$(RM) tags
|
||||
find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
|
||||
|
Loading…
Reference in New Issue
Block a user