Merge pull request #13 from blogh/few_fixes_before_ci
Few fixes before ci
This commit is contained in:
commit
43cc4ac118
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,7 +1,9 @@
|
||||||
*/__pycache__/
|
__pycache__/
|
||||||
check_patroni.egg-info
|
check_patroni.egg-info
|
||||||
test/*.state_file
|
tests/*.state_file
|
||||||
test/vagrant/.vagrant
|
tests/config.ini
|
||||||
|
vagrant/.vagrant
|
||||||
.*.swp
|
.*.swp
|
||||||
.venv/
|
.venv/
|
||||||
dist/
|
dist/
|
||||||
|
build/
|
||||||
|
|
|
@ -131,7 +131,7 @@ class ClusterConfigHasChanged(PatroniResource):
|
||||||
self: "ClusterConfigHasChanged",
|
self: "ClusterConfigHasChanged",
|
||||||
connection_info: ConnectionInfo,
|
connection_info: ConnectionInfo,
|
||||||
config_hash: str, # Always contains the old hash
|
config_hash: str, # Always contains the old hash
|
||||||
state_file: str, # Only used to update the hash in the state_file (when needed)
|
state_file: str, # Only used to update the hash in the state_file (when needed)
|
||||||
):
|
):
|
||||||
super().__init__(connection_info)
|
super().__init__(connection_info)
|
||||||
self.state_file = state_file
|
self.state_file = state_file
|
||||||
|
|
|
@ -93,7 +93,7 @@ class NodeTLHasChanged(PatroniResource):
|
||||||
def __init__(
|
def __init__(
|
||||||
self: "NodeTLHasChanged",
|
self: "NodeTLHasChanged",
|
||||||
connection_info: ConnectionInfo,
|
connection_info: ConnectionInfo,
|
||||||
timeline: str, # Always contains the old timeline
|
timeline: str, # Always contains the old timeline
|
||||||
state_file: str, # Only used to update the timeline in the state_file (when needed)
|
state_file: str, # Only used to update the timeline in the state_file (when needed)
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__(connection_info)
|
super().__init__(connection_info)
|
||||||
|
|
33
mypy.ini
33
mypy.ini
|
@ -1,10 +1,29 @@
|
||||||
[mypy]
|
[mypy]
|
||||||
# no stubs for nagiosplugin => ignore: found module but no type hints or library stubs [import]
|
|
||||||
ignore_missing_imports = true
|
|
||||||
# no subs for nagiosplugin => ignore: Class cannot subclass "Summary" (has type "Any") [misc]
|
|
||||||
disallow_subclassing_any = false
|
|
||||||
# no stubs for nagiosplugin => ignore: Untyped decorator makes function "main" untyped [misc]
|
|
||||||
disallow_untyped_decorators = false
|
|
||||||
|
|
||||||
show_error_codes = true
|
show_error_codes = true
|
||||||
strict = true
|
strict = true
|
||||||
|
exclude = build/
|
||||||
|
|
||||||
|
[mypy-setup]
|
||||||
|
ignore_errors = True
|
||||||
|
|
||||||
|
[mypy-urllib3.*]
|
||||||
|
ignore_missing_imports = true
|
||||||
|
|
||||||
|
[mypy-nagiosplugin.*]
|
||||||
|
ignore_missing_imports = true
|
||||||
|
|
||||||
|
[mypy-check_patroni.types]
|
||||||
|
# no stubs for nagioplugin => ignore: Class cannot subclass "Resource" (has type "Any") [misc]
|
||||||
|
disallow_subclassing_any = false
|
||||||
|
|
||||||
|
[mypy-check_patroni.node]
|
||||||
|
# no subs for nagiosplugin => ignore: Class cannot subclass "Summary" (has type "Any") [misc]
|
||||||
|
disallow_subclassing_any = false
|
||||||
|
|
||||||
|
[mypy-check_patroni.cluster]
|
||||||
|
# no subs for nagiosplugin => ignore: Class cannot subclass "Summary" (has type "Any") [misc]
|
||||||
|
disallow_subclassing_any = false
|
||||||
|
|
||||||
|
[mypy-check_patroni.cli]
|
||||||
|
# no stubs for nagiosplugin => ignore: Untyped decorator makes function "main" untyped [misc]
|
||||||
|
disallow_untyped_decorators = false
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -29,7 +29,7 @@ setup(
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 4 - Beta", # "Development Status :: 5 - Production/Stable",
|
"Development Status :: 4 - Beta", # "Development Status :: 5 - Production/Stable",
|
||||||
"Environment :: Console",
|
"Environment :: Console",
|
||||||
"License :: OSI Approved :: PostgreSQL License",
|
"License :: OSI Approved :: PostgreSQL License",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
|
|
Loading…
Reference in a new issue