Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
"""Validate Docker Compose files.""" """Validate pyproject.toml files."""
import argparse import argparse
import pathlib import pathlib
...@@ -13,7 +13,9 @@ def main(): ...@@ -13,7 +13,9 @@ def main():
args = parser.parse_args() args = parser.parse_args()
hooks.utils.check_executable("poetry") hooks.utils.check_executable("poetry")
return hooks.utils.bulk_check( 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), hooks.utils.unique_directories(args.file),
) )
......
[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",
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment