Commit graph

143 commits

Author SHA1 Message Date
Benoit 5a1320b2a0
Merge pull request #9 from blogh/mypy
Pin the mypy version
2022-07-11 12:48:05 +02:00
benoit 8519416c11 Rename test to tests 2022-07-11 12:42:59 +02:00
benoit 1e3da856cc Rename doc to docs 2022-07-11 12:42:55 +02:00
Étienne BERSAC c53f446497
Merge pull request #7 from bersace/license
License
2022-07-11 12:42:31 +02:00
benoit 77f07b105e Move vagrant to / 2022-07-11 12:38:39 +02:00
Benoit 21c1ff27d6
Merge pull request #8 from bersace/docs
Review README, extracting CONTRIBUTING
2022-07-11 12:32:55 +02:00
Étienne BERSAC 3ac8570748
Review README, extracting CONTRIBUTING 2022-07-11 12:12:55 +02:00
Étienne BERSAC 98e03e8b54
Make doc/make_readme.sh independent of PWD 2022-07-11 12:12:54 +02:00
benoit 5448f546cf Pin the mypy version 2022-07-11 11:57:59 +02:00
Étienne BERSAC 9414b2d50f
Ignore setuptools dist/ dir 2022-07-11 11:36:53 +02:00
Étienne BERSAC f9240fdd29
Add License file 2022-07-11 11:35:30 +02:00
benoit ed98098bf5 Update .gitignore (add .venv) 2022-07-11 08:59:03 +02:00
benoit 14c7ae5267 Fix README.md 2022-07-11 08:57:14 +02:00
benoit 9735be6904 fix flake8 complaints 2022-02-07 15:13:13 +01:00
benoit aa1de928d3 An attempt at correctly ordering imports 2022-02-07 15:11:05 +01:00
benoit 9ed9b6466d Read state file in cli to pass the info to the checks and summaries 2022-02-07 15:01:50 +01:00
benoit 4de20fefdc Node and Cluster services reviews 2022-02-07 14:18:14 +01:00
benoit ec3b8f6806 Update setup.py and url in README 2022-02-07 11:09:46 +01:00
benoit 7898011c40 Update the README and help 2022-02-07 11:03:12 +01:00
benoit e663695b26 Update README with some test info 2021-12-31 16:17:21 +01:00
benoit b1611e2f78 Vagrant icinga / grafana 2021-12-31 16:11:08 +01:00
benoit 561c3ed9da Fix doc layout and threshold doc 2021-12-31 11:30:17 +01:00
benoit 86f8bdb395 Readme: perfdata for not_tl_has_changed 2021-12-08 17:23:56 +01:00
benoit df58901fd9 Typo Readme 2021-12-08 17:14:38 +01:00
benoit 6c696a03ee Mypy fix
Stop using ctx.parent.params to get the verbose and timeout parameters
parsed in main and use ctx.obj instead.

ctx.parent.params is typed as Optional[Context] which forces us to test
if it's NULL before using it. It's useless in our case because we know
it's not empty and the resulting code is ugly.

The mypy ierror.

Item "None" of "Optional[Context]" has an attribute "params"
[union-attr]
2021-09-11 00:36:57 +02:00
benoit ca95250f2e disaply default values in help 2021-09-10 09:14:19 +02:00
benoit e18ce97d66 Add default value for verbose and fix the type in main parameters 2021-09-09 17:39:12 +02:00
benoit ba687b0e32 Disable some checks from myppy
nagiosplugin has no stubs, it triggers some errors from mypy
2021-09-09 17:17:25 +02:00
benoit 863a238fd3 add pytest.ini 2021-08-26 15:32:11 +02:00
benoit ba1f5ab3e7 Syntax of threshold parameter in README.md 2021-08-26 15:31:47 +02:00
benoit 1219cb8060 Shame on meeeeee
... forgot convert.py and some test files
2021-08-13 14:52:20 +02:00
benoit 7258d5fd60 Try to fix install
* add info in README.md
* add wheel as a dependency for debian 10
2021-08-13 14:43:07 +02:00
benoit 1b96c0105c Fix setup.pi dependancy : attr 2021-08-13 14:02:13 +02:00
benoit fdda1d309b Update README.md with install notes 2021-08-13 12:12:08 +02:00
benoit e0500ed3a7 Update README to mention config files 2021-08-13 11:13:33 +02:00
benoit d4e974da51 --max-lag additions and fixups
* add --max-lag to cluster_has_replica
* change --lag to --max-lag in node_is_replica
* update tests
* update README.md
2021-08-13 11:00:43 +02:00
benoit 2d37ed2d94 Fix mock 2021-08-13 10:59:44 +02:00
benoit 6fbe96cc63 Update .gitignore + black run 2021-08-12 13:15:37 +02:00
benoit dd8130a459 New service cluster_is_in_maintenance 2021-08-12 13:15:37 +02:00
benoit 4169766a2f Readme
* Add the README.md
* A way to generate the README.md from the help
2021-08-12 13:15:10 +02:00
benoit db3f008b81 More Typing 2021-08-12 13:07:28 +02:00
benoit 1e6adc6a1a First working version 2021-08-12 13:07:10 +02:00
benoit aa17162871 Initial commit 2021-07-02 12:37:03 +02:00