-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added more checks for pylint. (#758)
Signed-off-by: Chris Butler <[email protected]>
- Loading branch information
Showing
47 changed files
with
243 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[MASTER] | ||
ignore=oscal | ||
extension-pkg-whitelist=pydantic | ||
|
||
|
||
[MESSAGES CONTROL] | ||
disable=W1203, W1201 | ||
|
||
[FORMAT] | ||
max-line-length=120 |
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 @@ | ||
[MASTER] | ||
ignore=oscal | ||
|
||
|
||
[MESSAGES CONTROL] | ||
disable=W1203, W1201, W0212 | ||
|
||
[FORMAT] | ||
max-line-length=120 |
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 @@ | ||
::: trestle.core.catalog_interface | ||
handler: python |
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 @@ | ||
::: trestle.core.commands.author.catalog | ||
handler: python |
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 @@ | ||
::: trestle.core.control_io | ||
handler: python |
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 |
---|---|---|
|
@@ -73,7 +73,8 @@ dev = | |
markdown-include | ||
pymdown-extensions | ||
livereload | ||
## Constrain system | ||
## Constrain system | ||
pylint | ||
|
||
|
||
|
||
|
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
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
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 |
---|---|---|
|
@@ -141,16 +141,16 @@ def test_https_fetcher(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) | |
def test_sftp_fetcher(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None: | ||
"""Test the sftp fetcher.""" | ||
|
||
def ssh_load_host_keys_mock(*args, **kwargs): | ||
def ssh_load_host_keys_mock(): | ||
return | ||
|
||
def ssh_connect_mock(*args, **kwargs): | ||
def ssh_connect_mock(): | ||
return | ||
|
||
def open_sftp_mock(*args, **kwargs): | ||
def open_sftp_mock(): | ||
return | ||
|
||
def sftp_get_mock(*args, **kwargs): | ||
def sftp_get_mock(): | ||
return | ||
|
||
uri = 'sftp://some.host//path/to/test.json' | ||
|
@@ -168,7 +168,7 @@ def sftp_get_mock(*args, **kwargs): | |
def test_sftp_fetcher_load_system_keys_fails(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None: | ||
"""Test the sftp fetcher when SSHClient loading of system host keys fails.""" | ||
|
||
def ssh_load_system_host_keys_mock(*args, **kwargs): | ||
def ssh_load_system_host_keys_mock(): | ||
raise OSError('stuff') | ||
|
||
uri = 'sftp://username:[email protected]/path/to/file.json' | ||
|
@@ -190,7 +190,7 @@ def test_sftp_fetcher_bad_ssh_key(tmp_trestle_dir: pathlib.Path, monkeypatch: Mo | |
def test_sftp_fetcher_connect_fails(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None: | ||
"""Test sftp during SSHClient connect failure.""" | ||
|
||
def ssh_connect_mock(*args, **kwargs): | ||
def ssh_connect_mock(): | ||
err.TrestleError('stuff') | ||
|
||
# Password given: | ||
|
@@ -210,13 +210,13 @@ def ssh_connect_mock(*args, **kwargs): | |
def test_sftp_fetcher_open_sftp_fails(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None: | ||
"""Test the exception response during open_sftp failure.""" | ||
|
||
def ssh_load_host_keys_mock(*args, **kwargs): | ||
def ssh_load_host_keys_mock(): | ||
return | ||
|
||
def ssh_connect_mock(*args, **kwargs): | ||
def ssh_connect_mock(): | ||
return | ||
|
||
def open_sftp_mock(*args, **kwargs): | ||
def open_sftp_mock(): | ||
raise err.TrestleError('stuff') | ||
|
||
uri = 'sftp://username:[email protected]/path/to/file.json' | ||
|
@@ -251,13 +251,13 @@ def getuser_mock(*args, **kwargs): | |
def test_sftp_fetcher_get_fails(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None: | ||
"""Test the sftp fetcher SFTPClient.get() failing.""" | ||
|
||
def load_host_keys_mock(*args, **kwargs): | ||
def load_host_keys_mock(): | ||
return | ||
|
||
def connect_mock(*args, **kwargs): | ||
def connect_mock(): | ||
return | ||
|
||
def get_mock(*args, **kwargs): | ||
def get_mock(): | ||
raise err.TrestleError('get fails') | ||
|
||
uri = 'sftp://username:[email protected]/path/to/file.json' | ||
|
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
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
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
Oops, something went wrong.