Skip to content

Commit

Permalink
Cleanup (#93)
Browse files Browse the repository at this point in the history
* updating packages

* cleaning up issues with upgraded pylint
  • Loading branch information
jackdewinter authored Aug 26, 2022
1 parent d0ae393 commit aff981a
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 154 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ isort = "==5.10.1"
flake8 = "==4.0.1"
flake8-bugbear = "==22.8.23"
flake8-bandit = "==3.0.0"
pylint = "==3.0.0a4"
pylint = "==3.0.0a5"
pyroma = "==4.0"
pytest = "==7.1.2"
pytest-cov = "==3.0.0"
Expand Down
266 changes: 122 additions & 144 deletions Pipfile.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions project_summarizer/plugins/cobertura_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ def get_output_path(self) -> str:
"""
return self.__output_path

@classmethod
def add_command_line_arguments(
cls, parser: argparse.ArgumentParser
self, parser: argparse.ArgumentParser
) -> Tuple[str, str]:
"""
Add a command line argument to denote the file to scan.
Expand Down
3 changes: 1 addition & 2 deletions project_summarizer/plugins/junit_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ def get_output_path(self) -> str:
"""
return self.__output_path

@classmethod
def add_command_line_arguments(
cls, parser: argparse.ArgumentParser
self, parser: argparse.ArgumentParser
) -> Tuple[str, str]:
"""
Add a command line argument to denote the file to scan.
Expand Down
4 changes: 2 additions & 2 deletions publish/coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"totalCovered": 244
},
"lineLevel": {
"totalMeasured": 833,
"totalCovered": 833
"totalMeasured": 831,
"totalCovered": 831
}
}

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ max-complexity = 18
select = B,C,E,F,W,T4

[pylint]
disable = C0301, C0330, W0511, duplicate-code
disable = C0301, W0511, duplicate-code
extension-pkg-whitelist=win32api

[tool:pytest]
Expand Down
4 changes: 2 additions & 2 deletions test/patch_builtin_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def register_exception(self, exact_file_name, file_mode, exception_message=None)
"""
self.exception_map[exact_file_name] = (file_mode, exception_message)

# pylint: disable=consider-using-with
# pylint: disable=consider-using-with, unspecified-encoding
def my_open(self, *args, **kwargs):
"""
Provide alternate handling of the "builtins.open" function.
Expand Down Expand Up @@ -79,4 +79,4 @@ def my_open(self, *args, **kwargs):
self.patched_open = self.mock_patcher.start()
self.patched_open.side_effect = self.my_open

# pylint: enable=consider-using-with
# pylint: enable=consider-using-with, unspecified-encoding

0 comments on commit aff981a

Please sign in to comment.