Loading hooks/poetry_check.py +4 −2 Original line number Diff line number Diff line """Validate Docker Compose files.""" """Validate pyproject.toml files.""" import argparse import pathlib Loading @@ -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), ) Loading test_files/pyproject.toml 0 → 100644 +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", ] Loading
hooks/poetry_check.py +4 −2 Original line number Diff line number Diff line """Validate Docker Compose files.""" """Validate pyproject.toml files.""" import argparse import pathlib Loading @@ -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), ) Loading
test_files/pyproject.toml 0 → 100644 +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", ]