forked from NETWAYS/check_vmware_nsxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pylint configuration and fix linting issues
- Loading branch information
1 parent
73227c4
commit b4e829c
Showing
6 changed files
with
47 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# pylint config | ||
# [FORMAT] | ||
# good-names=m,p,l,ok | ||
[MESSAGES CONTROL] | ||
disable=fixme, | ||
line-too-long, | ||
too-many-locals, | ||
too-many-arguments, | ||
too-many-statements, | ||
too-many-branches, | ||
bare-except, | ||
missing-module-docstring, | ||
missing-function-docstring, | ||
missing-class-docstring, | ||
consider-using-f-string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.PHONY: lint test coverage | ||
|
||
lint: | ||
python -m pylint check_vmware_nsxt.py | ||
test: | ||
python -m unittest -v -b test_check_vmware_nsxt.py | ||
coverage: | ||
python -m coverage run -m unittest test_check_vmware_nsxt.py | ||
python -m coverage report -m --include check_vmware_nsxt.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pylint==2.15.0 | ||
coverage==7.0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import unittest | ||
import unittest.mock as mock | ||
import sys | ||
|
||
sys.path.append('..') |