-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
several lint fixes #906
several lint fixes #906
Conversation
DryRun Security SummaryThe code changes encompass improvements to test suites, documentation, and core functionality across multiple files in the "thermostatsupervisor" application, focusing on enhanced readability, maintainability, and error handling without introducing security vulnerabilities. Expand for full summarySummary: The provided code changes cover a variety of updates across multiple files in the The changes to the test files, such as The updates to the configuration file ( The changes to the core application files, such as However, it's important to note that while these changes do not directly introduce security concerns, the application as a whole should be reviewed for potential security risks, such as input validation, authorization, and secure communication with external components. Files Changed:
Code AnalysisWe ran |
@@ -149,7 +150,7 @@ | |||
del retry # not used | |||
return self.get_meta_data_dict(zone) | |||
|
|||
def get_metadata(self, zone, trait=None, parameter=None) -> (dict, str): | |||
def get_metadata(self, zone, trait=None, parameter=None) -> Union[dict, str]: |
Check warning
Code scanning / Prospector (reported by Codacy)
Signature differs from overridden 'get_metadata' method (signature-differs) Warning
@@ -18,7 +20,7 @@ | |||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | |||
|
|||
project = "ThermostatSupervisor" | |||
copyright = "2024, Christopher Krolak" | |||
copyright = "2024, Christopher Krolak" # noqa W0622 |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Constant name "copyright" doesn't conform to UPPER_CASE naming style Warning
@@ -18,7 +20,7 @@ | |||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | |||
|
|||
project = "ThermostatSupervisor" | |||
copyright = "2024, Christopher Krolak" | |||
copyright = "2024, Christopher Krolak" # noqa W0622 |
Check notice
Code scanning / Pylintpython3 (reported by Codacy)
Redefining built-in 'copyright' Note
@@ -9,6 +9,7 @@ | |||
import traceback | |||
import urllib | |||
from dns.exception import DNSException | |||
from typing import Union |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
standard import "typing.Union" should be placed before third party import "dns.exception.DNSException" Warning
@@ -149,7 +150,7 @@ | |||
del retry # not used | |||
return self.get_meta_data_dict(zone) | |||
|
|||
def get_metadata(self, zone, trait=None, parameter=None) -> (dict, str): | |||
def get_metadata(self, zone, trait=None, parameter=None) -> Union[dict, str]: |
Check notice
Code scanning / Pylintpython3 (reported by Codacy)
Signature differs from overridden 'get_metadata' method Note
@@ -18,7 +20,7 @@ | |||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | |||
|
|||
project = "ThermostatSupervisor" | |||
copyright = "2024, Christopher Krolak" | |||
copyright = "2024, Christopher Krolak" # noqa W0622 |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "copyright" doesn't conform to UPPER_CASE naming style Warning
@@ -18,7 +20,7 @@ | |||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | |||
|
|||
project = "ThermostatSupervisor" | |||
copyright = "2024, Christopher Krolak" | |||
copyright = "2024, Christopher Krolak" # noqa W0622 |
Check notice
Code scanning / Pylint (reported by Codacy)
Redefining built-in 'copyright' Note
@@ -9,6 +9,7 @@ | |||
import traceback | |||
import urllib | |||
from dns.exception import DNSException | |||
from typing import Union |
Check warning
Code scanning / Pylint (reported by Codacy)
standard import "from typing import Union" should be placed before "from dns.exception import DNSException" Warning
@@ -149,7 +150,7 @@ | |||
del retry # not used | |||
return self.get_meta_data_dict(zone) | |||
|
|||
def get_metadata(self, zone, trait=None, parameter=None) -> (dict, str): | |||
def get_metadata(self, zone, trait=None, parameter=None) -> Union[dict, str]: |
Check notice
Code scanning / Pylint (reported by Codacy)
Signature differs from overridden 'get_metadata' method Note
Format Python code with psf/black push
…mostatSupervisor into lint_fixes_02_2025
No description provided.