Skip to content

Commit

Permalink
v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DaemonDude23 committed Apr 28, 2024
1 parent 7405804 commit 9886563
Show file tree
Hide file tree
Showing 93 changed files with 2,342 additions and 2,315 deletions.
74 changes: 74 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"docker": {
"enabled": true
},
"extends": [
"config:base"
],
"golang": {
"enabled": true
},
"packageRules": [
{
"enabled": true,
"managers": [
"dockerfile"
],
"matchFiles": [
"**/Dockerfile"
]
},
{
"enabled": true,
"managers": [
"gomod"
],
"matchFiles": [
"**/go.mod"
]
},
{
"enabled": true,
"managers": [
"helm-requirements",
"helm-values"
],
"matchFiles": [
"**/Chart.yaml"
]
},
{
"enabled": true,
"managers": [
"helmfile"
],
"matchFiles": [
"**/helmfile.yaml"
]
},
{
"enabled": true,
"managers": [
"kustomize"
],
"matchFiles": [
"**/kustomization.yaml"
]
},
{
"enabled": true,
"managers": [
"pre-commit"
],
"matchFiles": [
"**/.pre-commit-config.yaml"
]
}
],
"pre-commit": {
"enabled": true
},
"rangeStrategy": "replace",
"timezone": "America/Los_Angeles"
}
41 changes: 0 additions & 41 deletions .github/workflows/main.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: goreleaser

"on":
push:
tags:
- "v*"
workflow_dispatch:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.0'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
args: release --clean
distribution: goreleaser
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: write
11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.flatpak-builder/
**/__pycache__/
build/flatpak/**
build/pyinstaller/**
dist/linux/**
dist/windows/**
src/*-build/
src/*.bin
.mypy_cache/
*/.go/
build/
venv/
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
builds:
- binary: helmizer
dir: ./src
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
- '386'
goos:
- linux
- darwin
- windows
id: helmizer
checksum:
name_template: checksums.txt
release:
draft: true
66 changes: 38 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
repos:
- hooks:
# General pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
Expand All @@ -13,43 +16,50 @@ repos:
args:
- --remove
- id: mixed-line-ending
- args:
- '--maxkb=1024'
id: check-added-large-files
- args:
- id: check-added-large-files
args:
- '--maxkb=64'
- id: trailing-whitespace
args:
- '--markdown-linebreak-ext=md'
id: trailing-whitespace
- id: check-symlinks
- args:
- id: check-yaml
args:
- '--allow-multiple-documents'
id: check-yaml
- args:
- '--maxkb=1024'
id: check-added-large-files
- id: requirements-txt-fixer
- id: check-ast
repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.4.0
# Go specific hooks
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-build-mod
- id: go-mod-tidy
- id: go-mod-tidy-repo
- id: go-test-mod
- id: go-test-repo-mod
- id: go-fmt
- id: go-fmt-repo
# Python specific hooks
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [--application-directories, '.:src', --py311-plus]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: reorder-python-imports
args: [--application-directories, '.:src', --py36-plus]
- hooks:
- id: black
language_version: python3.10
language_version: python3.11
args:
- --line-length
- "140"
repo: https://github.com/psf/black
rev: 23.1.0
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.10.0
hooks:
- id: mypy
args:
- --check-untyped-defs
- --ignore-missing-imports
- --install-types
- --non-interactive
files: src/helmizer.py
- id: mypy
args:
- --check-untyped-defs
- --ignore-missing-imports
- --install-types
- --non-interactive
files: docs/diagrams/main.py
Loading

0 comments on commit 9886563

Please sign in to comment.