Skip to content

Commit 40a223d

Browse files
[Snyk] Fix for 9 vulnerabilities (#231)
* Adding flake+direnv * poetry update --------- Co-authored-by: Devon Stewart <[email protected]>
1 parent 2ea29e0 commit 40a223d

File tree

5 files changed

+1128
-1031
lines changed

5 files changed

+1128
-1031
lines changed

.envrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
use flake
2+
dotenv_if_exists
3+
source_env_if_exists .local.envrc

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,6 @@ Pipfile.lock
137137
t.py
138138
repl-tweet.py
139139
.DS_Store
140+
141+
# direnv
142+
.direnv/

flake.lock

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
description = "A flake that provides tools needed to hack on replit-py";
3+
4+
inputs.nixpkgs.url = "github:nixos/nixpkgs";
5+
6+
outputs = { self, nixpkgs }: let
7+
mkPkgs = system: import nixpkgs {
8+
inherit system;
9+
};
10+
mkDevShell = system:
11+
let
12+
pkgs = mkPkgs system;
13+
in
14+
pkgs.mkShell {
15+
packages = [
16+
pkgs.python312
17+
pkgs.poetry
18+
pkgs.uv
19+
];
20+
};
21+
in
22+
{
23+
devShells.aarch64-darwin.default = mkDevShell "aarch64-darwin";
24+
devShells.x86_64-linux.default = mkDevShell "x86_64-linux";
25+
};
26+
}

0 commit comments

Comments
 (0)