diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4b300e0307fc4d8d42506e3d5673f31e3f4563f..c182dc40b71fc042d28b73b0a92ae0c7f2624a51 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,11 @@ repos: hooks: - id: detect-secrets + - repo: https://github.com/codespell-project/codespell.git + rev: v2.1.0 + hooks: + - id: codespell + - repo: https://github.com/adrienverge/yamllint rev: v1.26.1 hooks: diff --git a/README.rst b/README.rst index ce5192fd373ec92acccec2b625ccff6e997006b0..422ae2206cb54077a2159ecb47e5d371681839b0 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,7 @@ It is intended for my personal use as the warning and critical alerts go to `my notification mechanism <https://git.shore.co.il/nimrod/nextcloud-notifier>`_. There is a small-ish binary that is created in the CI pipeline that doesn't have any external dependencies (like the Python VM or any 3rd party Python packages). -The latest binary is avaiable at +The latest binary is available at https://git.shore.co.il/shore/mnpw/-/jobs/artifacts/master/raw/dist/mnpw?job=build-executable and should work all Linux distro with glibc 2.17 or newer. @@ -73,7 +73,7 @@ To run all of the tests locally: All of those tests (and more) run in the `CI pipeline <https://git.shore.co.il/shore/mnpw/-/pipelines>`_ on each push. -To release a new verion: +To release a new version: .. code:: shell diff --git a/tests/test_nagios.py b/tests/test_nagios.py index 385961b71c5bd1939c67162c7317f2258059f775..4e0598a51987891b1172536276b349c1057b1fb8 100644 --- a/tests/test_nagios.py +++ b/tests/test_nagios.py @@ -47,14 +47,14 @@ PERF_DATA = [ ], ) def test_check_exec(command, args, exit_code): - """Test the executation of checks.""" + """Test the execution of checks.""" check = nagios.Check(command, args) check.run() assert check.ExitCode == exit_code def test_check_command_not_found(): - """Test check with a nonexistant command.""" + """Test check with a nonexistent command.""" check = nagios.Check("/abcdef", []) with pytest.raises(RuntimeError): check.run()