init with python proj template
This commit is contained in:
commit
643c9ab0a8
5 changed files with 51 additions and 0 deletions
3
python-project/.envrc
Normal file
3
python-project/.envrc
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
source_url "https://raw.githubusercontent.com/cachix/devenv/82c0147677e510b247d8b9165c54f73d32dfd899/direnvrc" "sha256-7u4iDd1nZpxL4tCzmPG0dQgC5V+/44Ba+tHkPob1v2k="
|
||||
|
||||
use devenv
|
||||
11
python-project/.gitignore
vendored
Normal file
11
python-project/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
!*
|
||||
|
||||
# Devenv
|
||||
.devenv*
|
||||
devenv.local.nix
|
||||
|
||||
# direnv
|
||||
.direnv
|
||||
|
||||
# pre-commit
|
||||
.pre-commit-config.yaml
|
||||
10
python-project/devenv.nix
Normal file
10
python-project/devenv.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
languages.python.enable = true;
|
||||
languages.python.uv.enable = true;
|
||||
|
||||
# https://devenv.sh/pre-commit-hooks/
|
||||
pre-commit.hooks.ruff.enable = true;
|
||||
pre-commit.hooks.ruff-format.enable = true;
|
||||
}
|
||||
15
python-project/devenv.yaml
Normal file
15
python-project/devenv.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
|
||||
inputs:
|
||||
nixpkgs:
|
||||
url: github:cachix/devenv-nixpkgs/rolling
|
||||
|
||||
# If you're using non-OSS software, you can set allowUnfree to true.
|
||||
# allowUnfree: true
|
||||
|
||||
# If you're willing to use a package that's vulnerable
|
||||
# permittedInsecurePackages:
|
||||
# - "openssl-1.1.1w"
|
||||
|
||||
# If you have more than one devenv you can merge them
|
||||
#imports:
|
||||
# - ./backend
|
||||
Loading…
Add table
Add a link
Reference in a new issue