Skip to content

Commit 7c53bdd

Browse files
committed
- Update pre-commit hooks
- Update renovate config - Switch to shell.nix
1 parent 9886563 commit 7c53bdd

File tree

4 files changed

+25
-29
lines changed

4 files changed

+25
-29
lines changed

.github/renovate.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
{
6060
"enabled": true,
6161
"managers": [
62-
"pre-commit"
62+
"github-actions"
6363
],
6464
"matchFiles": [
65-
"**/.pre-commit-config.yaml"
65+
"**/.github/workflows/*.yml"
6666
]
6767
}
6868
],

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
repos:
22
# General pre-commit hooks
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.6.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-case-conflict
77
- id: check-docstring-first
88
- id: check-executables-have-shebangs
99
- id: check-merge-conflict
1010
- id: destroyed-symlinks
11-
- id: detect-aws-credentials
1211
- id: detect-private-key
1312
- id: end-of-file-fixer
1413
- id: fix-byte-order-marker
@@ -41,20 +40,20 @@ repos:
4140
- id: go-fmt-repo
4241
# Python specific hooks
4342
- repo: https://github.com/asottile/reorder_python_imports
44-
rev: v3.12.0
43+
rev: v3.14.0
4544
hooks:
4645
- id: reorder-python-imports
47-
args: [--application-directories, '.:src', --py311-plus]
46+
args: [--application-directories, '.:src', --py312-plus]
4847
- repo: https://github.com/psf/black
49-
rev: 24.4.2
48+
rev: 25.1.0
5049
hooks:
5150
- id: black
52-
language_version: python3.11
51+
language_version: python3.12
5352
args:
5453
- --line-length
5554
- "140"
5655
- repo: https://github.com/pre-commit/mirrors-mypy
57-
rev: v1.10.0
56+
rev: v1.15.0
5857
hooks:
5958
- id: mypy
6059
args:

dev-tools.nix

Lines changed: 0 additions & 20 deletions
This file was deleted.

shell.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# $ nix-shell shell.nix
2+
3+
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz") {} }:
4+
5+
pkgs.mkShell {
6+
buildInputs = [
7+
pkgs.go_1_23 # this was the latest available version at the time of writing
8+
# for diagrams
9+
pkgs.graphviz
10+
pkgs.python312
11+
];
12+
13+
shellHook = ''
14+
export GOPATH=$(pwd)/.go
15+
export PATH=$GOPATH/bin:$PATH
16+
'';
17+
}

0 commit comments

Comments
 (0)