Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit ee91bec

Browse files
committed
init
0 parents  commit ee91bec

File tree

10 files changed

+773
-0
lines changed

10 files changed

+773
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
max-line-length = 120
3+
exclude =
4+
.git
5+
.direnv
6+
result

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.direnv
2+
.pre-commit-config.yaml
3+
dist
4+
result

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ToDo

flake.lock

Lines changed: 254 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: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
description = "A Tool for tagging PRs of First-Time Contributors with a specified label";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
poetry2nix.url = "github:nix-community/poetry2nix";
8+
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
9+
};
10+
11+
outputs = { self, nixpkgs, flake-utils, poetry2nix, pre-commit-hooks, ... }:
12+
flake-utils.lib.eachDefaultSystem (
13+
system:
14+
let
15+
pkgs = import nixpkgs { inherit system; overlays = [ poetry2nix.overlay ]; };
16+
in
17+
{
18+
checks = {
19+
pre-commit-check = pre-commit-hooks.lib.${system}.run {
20+
src = ./.;
21+
hooks = {
22+
nixpkgs-fmt.enable = true;
23+
isort.enable = true;
24+
black.enable = true;
25+
#autoflake.enable = true;
26+
flake8.enable = true;
27+
};
28+
};
29+
};
30+
defaultPackage = pkgs.poetry2nix.mkPoetryApplication {
31+
projectDir = ./.;
32+
};
33+
devShell = pkgs.mkShell {
34+
inherit (self.checks.${system}.pre-commit-check) shellHook;
35+
buildInputs = with pkgs; [
36+
python3Packages.types-pyyaml
37+
(pkgs.poetry2nix.mkPoetryEnv {
38+
projectDir = ./.;
39+
40+
editablePackageSources = {
41+
my-app = ./src;
42+
};
43+
})
44+
];
45+
};
46+
}
47+
);
48+
}
49+

0 commit comments

Comments
 (0)