Skip to content

Commit

Permalink
Static checks: use lint check from avocado-static-checks
Browse files Browse the repository at this point in the history
This switches to the script provided by the avocado-static-checks
repo, while using the local pylintrc configuration (set through the
use of "avocado-static-checks.conf".

In the near future, at least the "avocado/utils" directory needs to
made compliant with the standard pylint configuration provided by
avocado-static-checks, so that code can be easily moved to autils.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Sep 12, 2024
1 parent f6d6c8c commit ab20361
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions avocado-static-checks.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[lint]
.:.pylintrc
1 change: 1 addition & 0 deletions selftests/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ def create_suites(args): # pylint: disable=W0621
"static-checks/check-import-order"
)
config_check_static["resolver.references"].append("static-checks/check-style")
config_check_static["resolver.references"].append("static-checks/check-lint")
suites.append(TestSuite.from_config(config_check_static, "static-checks"))

# ========================================================================
Expand Down
7 changes: 0 additions & 7 deletions selftests/lint.sh

This file was deleted.

0 comments on commit ab20361

Please sign in to comment.