Skip to content

Instantly share code, notes, and snippets.

View martimors's full-sized avatar
🤳

Martin Morset martimors

🤳
  • Copenhagen
View GitHub Profile
@martimors
martimors / pre-commit-config.yaml
Last active March 14, 2023 21:56
Pre-commits for a python project
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
args: [--config=./pyproject.toml]
- repo: https://github.com/python-poetry/poetry
rev: 1.3.0
hooks:
- id: poetry-check
@martimors
martimors / split_helm_template.py
Created February 10, 2025 09:56
Split the output of the `helm template` command into multiple yaml files using the source path
#!/usr/bin/env python3
import yaml
from pathlib import Path
import re
import argparse
import os
import sys
class Args(argparse.Namespace):