All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Armin Kuster" <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [hardnott 45/50] PEP8 double aggressive E301 ~ E306
Date: Sat, 17 Apr 2021 14:05:54 -0700	[thread overview]
Message-ID: <40fb89213b1a232afc920a25692d054768858b3d.1618692905.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1618692905.git.akuster808@gmail.com>

From: persianpros <persianpros@yahoo.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit af6838a62c53dab71941b2cc31f0e32387cd30e0)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 contrib/oe-stylize.py                         | 35 +++++++++++++++++++
 .../oeqa/selftest/cases/meta_oe_sources.py    |  1 +
 2 files changed, 36 insertions(+)

diff --git a/contrib/oe-stylize.py b/contrib/oe-stylize.py
index 9d95911ae6e..cfabb90b10f 100755
--- a/contrib/oe-stylize.py
+++ b/contrib/oe-stylize.py
@@ -221,41 +221,59 @@ for v in OE_vars:
 # _Format guideline #0_: 
 #   No spaces are allowed at the beginning of lines that define a variable or 
 #   a do_ routine
+
+
 def respect_rule0(line): 
     return line.lstrip() == line
+
+
 def conformTo_rule0(line): 
     return line.lstrip()
 
 # _Format guideline #1_: 
 #   No spaces are allowed behind the line continuation symbol '\'
+
+
 def respect_rule1(line):
     if line.rstrip().endswith('\\'):
         return line.endswith('\\')
     else: 
         return True
+
+
 def conformTo_rule1(line):
     return line.rstrip()
 
 # _Format guideline #2_: 
 #   Tabs should not be used (use spaces instead).
+
+
 def respect_rule2(line):
     return line.count('\t') == 0
+
+
 def conformTo_rule2(line):
     return line.expandtabs()
 
 # _Format guideline #3_:
 #   Comments inside bb files are allowed using the '#' character at the 
 #   beginning of a line.
+
+
 def respect_rule3(line):
     if line.lstrip().startswith('#'):
         return line.startswith('#')
     else: 
         return True
+
+
 def conformTo_rule3(line):
     return line.lstrip()
 
 # _Format guideline #4_:
 #   Use quotes on the right hand side of assignments FOO = "BAR"
+
+
 def respect_rule4(line):
     r = re.search(varRegexp, line)
     if r is not None:
@@ -263,33 +281,48 @@ def respect_rule4(line):
         # do not test for None it because always match
         return r2.group(1) == '"' and r2.group(3) != ''
     return False
+
+
 def conformTo_rule4(line):
     r = re.search(varRegexp, line)
     return ''.join([r.group(1), ' ', r.group(3), ' "', r.group(5), r.group(5).endswith('"') and '' or '"'])
 
 # _Format guideline #5_:
 #   The correct spacing for a variable is FOO = "BAR".
+
+
 def respect_rule5(line):
     r = re.search(varRegexp, line)
     return r is not None and r.group(2) == " " and r.group(4) == " "
+
+
 def conformTo_rule5(line):
     r = re.search(varRegexp, line)
     return ''.join([r.group(1), ' ', r.group(3), ' ', r.group(5)])
 
 # _Format guideline #6_:
 #   Don't use spaces or tabs on empty lines
+
+
 def respect_rule6(line):
     return not line.isspace() or line == "\n"
+
+
 def conformTo_rule6(line):
     return ""
 
 # _Format guideline #7_:
 #   Indentation of multiline variables such as SRC_URI is desireable.
+
+
 def respect_rule7(line):
     return True
+
+
 def conformTo_rule7(line):
     return line
 
+
 rules = (
     (respect_rule0, conformTo_rule0, "No spaces are allowed at the beginning of lines that define a variable or a do_ routine"),
     (respect_rule1, conformTo_rule1, "No spaces are allowed behind the line continuation symbol '\\'"),
@@ -303,6 +336,8 @@ rules = (
 
 # Function to check that a line respects a rule. If not, it tries to conform
 # the line to the rule. Reminder or Disgression message are dump accordingly.
+
+
 def follow_rule(i, line):
     oldline = line
     # if the line does not respect the rule
diff --git a/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py b/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py
index b17c7950c7e..c5a9a279465 100644
--- a/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py
+++ b/meta-oe/lib/oeqa/selftest/cases/meta_oe_sources.py
@@ -6,6 +6,7 @@ import tempfile
 from oeqa.selftest.case import OESelftestTestCase
 from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars
 
+
 class MetaOESourceMirroring(OESelftestTestCase):
     # Can we download everything from the OpenEmbedded Sources Mirror over http only
     def test_oe_source_mirror(self):
-- 
2.17.1


  parent reply	other threads:[~2021-04-17 21:06 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-17 21:05 [hardnott 00/50] Patch review April 17th Armin Kuster
2021-04-17 21:05 ` [hardnott 01/50] tbb: upgrade 2020.3 -> 2021.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 02/50] tbb: Fix build with musl Armin Kuster
2021-04-17 21:05 ` [hardnott 03/50] ocl-icd: upgrade 2.2.14 -> 2.3.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 04/50] python3-ruamel-yaml: Upgrade 0.17.2 -> 0.17.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 05/50] python3-croniter: Upgrade 1.0.10 -> 1.0.11 Armin Kuster
2021-04-17 21:05 ` [hardnott 06/50] python3-decorator: Upgrade 5.0.5 -> 5.0.6 Armin Kuster
2021-04-17 21:05 ` [hardnott 07/50] python3-grpcio-tools: Upgrade 1.36.1 -> 1.37.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 08/50] python3-speedtest-cli: Upgrade 2.1.2 -> 2.1.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 09/50] python3-python-vlc: Upgrade 3.0.11115 -> 3.0.12117 Armin Kuster
2021-04-17 21:05 ` [hardnott 10/50] python3-robotframework: Upgrade 4.0 -> 4.0.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 11/50] python3-grpcio: Upgrade 1.36.1 -> 1.37.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 12/50] python3-absl: upgrade 0.10.0 -> 0.12.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 13/50] python3-astroid: upgrade 2.5.2 -> 2.5.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 14/50] python3-bitarray: upgrade 1.9.1 -> 1.9.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 15/50] python3-cerberus: Upgrade 1.3.2 -> 1.3.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 16/50] python3-humanize: Upgrade 3.3.0 -> 3.4.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 17/50] python3-monotonic: Upgrade 1.5 -> 1.6 Armin Kuster
2021-04-17 21:05 ` [hardnott 18/50] python3-sqlalchemy: Upgrade 1.4.6 -> 1.4.7 Armin Kuster
2021-04-17 21:05 ` [hardnott 19/50] python3-typed-ast: Upgrade 1.4.2 -> 1.4.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 20/50] python3-backports-functools-lru-cache: Upgrade 1.6.3 -> 1.6.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 21/50] python3-xmlschema: Upgrade 1.6.0 -> 1.6.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 22/50] modemmanager: upgrade 1.14.10 -> 1.16.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 23/50] libqmi: upgrade 1.26.6 -> 1.28.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 24/50] hostapd: fix CVE-2021-30004 Armin Kuster
2021-04-17 21:05 ` [hardnott 25/50] catfish: add python3-dbus to RDEPENDS Armin Kuster
2021-04-17 21:05 ` [hardnott 26/50] fluidsynth: upgrade 2.1.7 -> 2.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 27/50] redis: upgrade 6.0.9 -> 6.2.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 28/50] python3-pyroute2: Upgrade 0.5.17 -> 0.5.18 Armin Kuster
2021-04-17 21:05 ` [hardnott 29/50] python3-sympy: Upgrade 1.7.1 -> 1.8 Armin Kuster
2021-04-17 21:05 ` [hardnott 30/50] python3-pandas: Upgrade 1.2.3 -> 1.2.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 31/50] python3-humanize: Upgrade 3.4.0 -> 3.4.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 32/50] python3-decorator: Upgrade 5.0.6 -> 5.0.7 Armin Kuster
2021-04-17 21:05 ` [hardnott 33/50] python3-colorlog: Upgrade 4.8.0 -> 5.0.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 34/50] python3-google-api-python-client: Upgrade 2.1.0 -> 2.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 35/50] python3-croniter: Upgrade 1.0.11 -> 1.0.12 Armin Kuster
2021-04-17 21:05 ` [hardnott 36/50] core-image-minimal-xfce: Use graphical.target as default Armin Kuster
2021-04-17 21:05 ` [hardnott 37/50] opencv: fetch wechat_qrcode files used by dnn PACKAGECONFIG Armin Kuster
2021-04-17 21:05 ` [hardnott 38/50] opencv: link sfm module with Glog Armin Kuster
2021-04-17 21:05 ` [hardnott 39/50] debootstrap: 1.0.67 -> 1.0.123 Armin Kuster
2021-04-17 21:05 ` [hardnott 40/50] bats: upgrade 1.1.0 -> 1.3.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 41/50] fwts: upgrade to 21.03.00 Armin Kuster
2021-04-17 21:05 ` [hardnott 42/50] PEP8 double aggressive E701, E70 and E502 Armin Kuster
2021-04-17 21:05 ` [hardnott 43/50] PEP8 double aggressive E20 and E211 Armin Kuster
2021-04-17 21:05 ` [hardnott 44/50] PEP8 double aggressive E22, E224, E241, E242 and E27 Armin Kuster
2021-04-17 21:05 ` Armin Kuster [this message]
2021-04-17 21:05 ` [hardnott 46/50] PEP8 double aggressive W291 ~ W293 and W391 Armin Kuster
2021-04-17 21:05 ` [hardnott 47/50] vnstat: Disable install parallism to fix a potential install race Armin Kuster
2021-04-17 21:05 ` [hardnott 48/50] uftrace: Fix error on aarch64 when binutils update to 2.35.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 49/50] open-vm-tools: upgrade 11.0.1 -> 11.2.5 Armin Kuster
2021-04-17 21:05 ` [hardnott 50/50] open-vm-tools: Fix build with gcc 11 Armin Kuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40fb89213b1a232afc920a25692d054768858b3d.1618692905.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.