Commit 7da948c8 authored by nimrod's avatar nimrod
Browse files

Poetry check hook fixes.

- Add a test file for that hook.
- Fix the issues found.
parent 9728e45c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
"""Validate Docker Compose files."""
"""Validate pyproject.toml files."""

import argparse
import pathlib
@@ -13,7 +13,9 @@ def main():
    args = parser.parse_args()
    hooks.utils.check_executable("poetry")
    return hooks.utils.bulk_check(
        lambda x: hooks.utils.check_dir(["poetry", "check"], dir=x),
        lambda x: hooks.utils.check_directory(
            ["poetry", "check"], directory=x
        ),
        hooks.utils.unique_directories(args.file),
    )

+18 −0
Original line number Diff line number Diff line
[tool.poetry]
name = "mnpw"
version = "0.1.5"
description = "My Nagios plugin wrapper"
authors = ["Adar Nimrod <nimrod@shore.co.il>"]
license = "MIT"
homepage = "https://git.shore.co.il/shore/mnpw"
repository = "https://git.shore.co.il/shore/mnpw"
classifiers = [
    "Development Status :: 4 - Beta",
    "Environment :: Console",
    "Intended Audience :: Information Technology",
    "Intended Audience :: System Administrators",
    "License :: OSI Approved :: MIT License",
    "Topic :: System :: Monitoring",
    "Topic :: System :: Systems Administration",
    "Topic :: Utilities",
]