Skip to content

Commit 1144cf5

Browse files
authored
Merge pull request #4059 from richtja/static-check-submodule
Static checks: introduce usage of "avocado-static-checks" project
2 parents 72dcac2 + a6f1608 commit 1144cf5

190 files changed

Lines changed: 120 additions & 650 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/checkout@v2
1818
with:
1919
fetch-depth: 0
20+
submodules: true
2021
- name: Check signed-off-by
2122
run: ./selftests/signedoff-check.sh
2223
- name: Install make

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "avocado-static-checks"]
2+
path = avocado-static-checks
3+
url = https://github.com/avocado-framework/avocado-static-checks

CODING_STYLE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Base coding style
1515

1616
The coding style for all Python code is the one enforced by black (see
1717
https://black.readthedocs.io/en/stable/the_black_code_style/). The
18-
selftests/style.sh script can be used to verify the code style matches.
18+
avocado-static-checks/check-style script can be used to verify the code style matches.
1919

2020

2121
Variable names and UpPeR cAsE

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ requirements: pip
4646
- $(PYTHON) -m pip install -r requirements.txt
4747

4848
check:
49-
./selftests/style.sh
50-
./selftests/isort.sh
49+
./avocado-static-checks/check-style
50+
./avocado-static-checks/check-import-order
5151
inspekt lint --disable W,R,C,E0203,E0601,E1002,E1101,E1102,E1103,E1120,F0401,I0011,E1003,W605,I1101 --exclude avocado-libs,scripts/github
5252
pylint --errors-only --disable=all --enable=spelling --spelling-dict=en_US --spelling-private-dict-file=spell.ignore *
5353

avocado-static-checks

Submodule avocado-static-checks added at 8a2c5df

avocado_vt/loader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def arch_listing(config, guest_name_parser=None):
8484

8585

8686
class NotAvocadoVTTest(object):
87-
8887
"""
8988
Not an Avocado-vt test (for reporting purposes)
9089
"""
@@ -93,7 +92,6 @@ class NotAvocadoVTTest(object):
9392
if AVOCADO_LOADER_AVAILABLE:
9493

9594
class VirtTestLoader(loader.TestLoader, DiscoveryMixIn):
96-
9795
"""
9896
Avocado loader plugin to load avocado-vt tests
9997
"""

avocado_vt/options.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737

3838
class VirtTestOptionsProcess(object):
39-
4039
"""
4140
Pick virt test options and parse them to get to a cartesian parser.
4241
"""

avocado_vt/plugins/vt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def _str_or_none(arg):
196196

197197

198198
class VTRun(CLI):
199-
200199
"""
201200
Avocado VT - legacy virt-test support
202201
"""

avocado_vt/plugins/vt_bootstrap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626

2727
class VTBootstrap(CLICmd):
28-
2928
"""
3029
Avocado VT - implements the 'vt-bootstrap' subcommand
3130
"""

avocado_vt/plugins/vt_joblock.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
class LockCreationError(Exception):
22-
2322
"""
2423
Represents any error situation when attempting to create a lock file
2524
"""
@@ -28,7 +27,6 @@ class LockCreationError(Exception):
2827

2928

3029
class OtherProcessHoldsLockError(Exception):
31-
3230
"""
3331
Represents a condition where other process has the lock
3432
"""

0 commit comments

Comments
 (0)