Skip to content

Commit

Permalink
- Update pre-commit hooks
Browse files Browse the repository at this point in the history
- Update renovate config
- Switch to shell.nix
  • Loading branch information
DaemonDude23 committed Feb 7, 2025
1 parent 9886563 commit 7c53bdd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
{
"enabled": true,
"managers": [
"pre-commit"
"github-actions"
],
"matchFiles": [
"**/.pre-commit-config.yaml"
"**/.github/workflows/*.yml"
]
}
],
Expand Down
13 changes: 6 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
repos:
# General pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: destroyed-symlinks
- id: detect-aws-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
Expand Down Expand Up @@ -41,20 +40,20 @@ repos:
- id: go-fmt-repo
# Python specific hooks
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.12.0
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--application-directories, '.:src', --py311-plus]
args: [--application-directories, '.:src', --py312-plus]
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 25.1.0
hooks:
- id: black
language_version: python3.11
language_version: python3.12
args:
- --line-length
- "140"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.15.0
hooks:
- id: mypy
args:
Expand Down
20 changes: 0 additions & 20 deletions dev-tools.nix

This file was deleted.

17 changes: 17 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# $ nix-shell shell.nix

{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz") {} }:

pkgs.mkShell {
buildInputs = [
pkgs.go_1_23 # this was the latest available version at the time of writing
# for diagrams
pkgs.graphviz
pkgs.python312
];

shellHook = ''
export GOPATH=$(pwd)/.go
export PATH=$GOPATH/bin:$PATH
'';
}

0 comments on commit 7c53bdd

Please sign in to comment.