From 42262844a6bc76d1ab651737d2951c0af3427aab Mon Sep 17 00:00:00 2001 From: Konstantin Fickel Date: Fri, 20 Jun 2025 15:39:42 +0200 Subject: [PATCH] chore: improve dev setup Signed-off-by: Konstantin Fickel --- .pre-commit-config.yaml | 11 +++++++++++ .vscode/launch.json | 15 +++++++++++++++ flake.nix | 2 ++ 3 files changed, 28 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 .vscode/launch.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..46f707d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: https://github.com/astral-sh/uv-pre-commit + rev: 0.7.13 + hooks: + - id: uv-lock + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.12.0 + hooks: + - id: ruff + args: [ --fix ] + - id: ruff-format \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6b76b4f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: Current File", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file diff --git a/flake.nix b/flake.nix index ba0f49a..6dbbf84 100644 --- a/flake.nix +++ b/flake.nix @@ -113,6 +113,7 @@ packages = with pkgs; [ python uv + pre-commit bashInteractive ]; env = @@ -194,6 +195,7 @@ packages = with pkgs; [ virtualenv uv + pre-commit bashInteractive ];