diff --git a/pyproject.toml b/pyproject.toml index 5733013..8a46565 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -164,6 +164,9 @@ extend-exclude = ["tests/fixtures", "__pycache__"] target-version = "py310" namespace-packages = ["docs", "tasks"] +[tool.ruff.pydocstyle] +convention = "numpy" + [tool.ruff.per-file-ignores] "**/tests/*" = ["S101"] # Allow using asserts in tests diff --git a/src/aeromancy/aeroview.py b/src/aeromancy/aeroview.py index 1e5fb99..5dbc51f 100644 --- a/src/aeromancy/aeroview.py +++ b/src/aeromancy/aeroview.py @@ -8,6 +8,7 @@ shell> pdm aeroview """ + import subprocess from pathlib import Path @@ -45,7 +46,7 @@ def view_aeromancy_uri( local_path = s3_client.fetch(s3) real_filename = Path(*aeromancy_uri.path) match real_filename.suffix: - case ".yaml": + case ".json" | ".yaml": subprocess.check_call( [ # noqa: S607 "bat",