This website requires JavaScript.
Explore
Help
Sign In
deepcrayon
/
buildroot
Watch
1
Star
0
Fork
You've already forked buildroot
0
Code
Issues
Pull requests
Packages
Projects
Releases
Wiki
Activity
9fbdd86748
buildroot
/
.flake8
6 lines
95 B
Plaintext
Raw
Normal View
History
Unescape
Escape
.flake8: add config file for Python code style We recommend wrapping at 80 columns but we accept 132 columns when it makes more readable. Follow up of discussion at this thread: http://lists.busybox.net/pipermail/buildroot/2017-October/203624.html Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2017-10-05 15:42:11 -06:00
[flake8]
.flake8: ignore utils/diffconfig This script comes from the kernel source, so ignore any code style warnings for it in order to keep it as close as possible to the original one, making synchronization between repos easier. The option --exclude for flake8/pycodestyle is an absolute list and has a default, so ideally the default values should be added too. But the use cases for flake8 in the tree are: - when developing a new script or changing an existing one, the developer calls flake8 only on that script; - in the GitLab job, a list of all Python files to be tested is created and then passed to flake8. None of these involve calling 'flake8' without parameters, so don't care about adding the default value. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Marcus Folkesson <marcus.folkesson@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-03-12 21:09:45 -06:00
exclude=
# copied from the kernel sources
utils/diffconfig
.flake8: fix check for 80/132 columns We recommend wrapping at 80 columns but we accept 132 columns when it makes more readable. When running flake8 locally, use maximum line length 80. But when running in GitLab CI, keep the check-flake8 job failing only for lines longer than 132. Reported-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Peter Korsgaard <peter@korsgaard.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-04-08 18:17:29 -06:00
max-line-length=80
Reference in a new issue
Copy permalink