Compare commits
127 commits
da90cd8472
...
30c1608c7c
| Author | SHA1 | Date | |
|---|---|---|---|
| 30c1608c7c | |||
| ca8fabb66d | |||
| c2ba064f5b | |||
| 92c361811f | |||
| db5462c749 | |||
| d594b55253 | |||
| 3fe1e0df1e | |||
| 2b69691218 | |||
| 013edcedbf | |||
| cf7162f0ed | |||
| 71a071541d | |||
| 6d16c8c54f | |||
| 122a1f733f | |||
| 740d4587c3 | |||
| e5e57472d9 | |||
| 9bba99e0b5 | |||
| 14dc5486dd | |||
| 38de4e0901 | |||
| 1661a5b099 | |||
| eed15e3b5a | |||
| 66e0d00388 | |||
| e74b14dd0a | |||
| 90a232e43d | |||
| 69001f774c | |||
| e4d3782063 | |||
| 9fcbfff124 | |||
| c1d6130dcb | |||
| 8383ae7d78 | |||
| 4a629457bc | |||
| 7af53115ee | |||
| da7f0d0ad5 | |||
| 01d73d61a1 | |||
| 6eb6bc6137 | |||
| a344b895a3 | |||
| 6dd718ef59 | |||
| 1f959aa92c | |||
| 619538daca | |||
| 45057861df | |||
| 273724988f | |||
| 3c36e1aef8 | |||
| b6cbb880a0 | |||
| 71cf2c6d7c | |||
| 72856d6606 | |||
| 293037d5a4 | |||
| f3492d05d0 | |||
| ed18c400d7 | |||
| ad2881f76a | |||
| 69af7f1267 | |||
| 8b1f1263d4 | |||
| 8587b92b13 | |||
| 769d2f7079 | |||
| 35bb7637a5 | |||
| 45665008ab | |||
| 19d6cebab9 | |||
| 3b92a5508e | |||
| ee4c50a6bb | |||
| 60a0b29bd8 | |||
| 27df15659d | |||
| 178025720f | |||
| b5440f9cc2 | |||
| e4757b553c | |||
| 6df139a403 | |||
| fcba303e73 | |||
| c97dfe41e5 | |||
| af7bad3bb4 | |||
| 07e3652062 | |||
| abe1e2cdfc | |||
| 39ac79cdfb | |||
| a4f30ea529 | |||
| 1c2fd677b8 | |||
| cabdec350e | |||
| 194d509229 | |||
| 2ad45ddffb | |||
| 89fc6372ee | |||
| ccf68865d7 | |||
| e583818e1e | |||
| c9827900de | |||
| f4717a92ed | |||
| 29f0c9857e | |||
| c963ff6d16 | |||
| e5931ff7e0 | |||
| 99c305dfa2 | |||
| afc0c5331d | |||
| 820924a020 | |||
| 83f70e392a | |||
| f9e57dfb87 | |||
| a0e6c681fe | |||
| e5c62197f9 | |||
| 14f304ec37 | |||
| b51985a84d | |||
| 8cea1480c0 | |||
| dac16e8af8 | |||
| d42ad03ead | |||
| 458a3bc56e | |||
| 2bdf788726 | |||
| 6b47d708db | |||
| 9e86b3276c | |||
| 026fff247c | |||
| 6f693ad5ef | |||
| 5e47bc1d12 | |||
| 6183e79154 | |||
| e7bd5a428c | |||
| 63550c25a9 | |||
| cad1322c62 | |||
| ed90ecf307 | |||
| dc913b4153 | |||
| ec41d05389 | |||
| bf6e173b68 | |||
| 711c8ccdbc | |||
| ece8d85434 | |||
| e1b83bfab4 | |||
| fed36075c2 | |||
| 2a04581c74 | |||
| 5f1925d5ca | |||
| 7176be234e | |||
| fd178de3f8 | |||
| 02e1deff26 | |||
| 4fa6e13643 | |||
| 1b4c335a02 | |||
| dd872a9fcf | |||
| 6a7f323199 | |||
| 438f9d02c7 | |||
| ac2596c9bb | |||
| f057446524 | |||
| a6d8879f60 | |||
| 08fb468c9d | |||
| 9d887bfca2 |
5 changed files with 2 additions and 143 deletions
7
.envrc
7
.envrc
|
|
@ -1,7 +0,0 @@
|
|||
use_flake() {
|
||||
watch_file flake.nix
|
||||
watch_file flake.lock
|
||||
eval "$(nix print-dev-env)"
|
||||
}
|
||||
|
||||
use flake
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from enum import IntEnum
|
||||
from typing import Dict, Iterable, List, NamedTuple, Tuple, TypeVar
|
||||
from typing import Dict, List, NamedTuple, Iterable, Tuple, TypeVar
|
||||
|
||||
|
||||
class ParameterMode(IntEnum):
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import sys
|
||||
from dataclasses import dataclass, field
|
||||
from enum import IntEnum
|
||||
from typing import Dict, Iterable, List, NamedTuple, Tuple, TypeVar
|
||||
from typing import Dict, List, NamedTuple, Iterable, Tuple, TypeVar
|
||||
|
||||
|
||||
class ParameterMode(IntEnum):
|
||||
|
|
|
|||
69
flake.lock
generated
69
flake.lock
generated
|
|
@ -1,69 +0,0 @@
|
|||
{
|
||||
"nodes": {
|
||||
"futils": {
|
||||
"locked": {
|
||||
"lastModified": 1638122382,
|
||||
"narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"ref": "master",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1638286143,
|
||||
"narHash": "sha256-A+rgjbIpz3uPRKHPXwdmouVcVn5pZqLnaZHymjkraG4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "29d1f6e1f625d246dcf84a78ef97b4da3cafc6ea",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"pre-commit-hooks": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"futils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1637745948,
|
||||
"narHash": "sha256-DmQG1bZk24eS+BAHwnHPyYIadMLKbq0d1b//iapYIPU=",
|
||||
"owner": "cachix",
|
||||
"repo": "pre-commit-hooks.nix",
|
||||
"rev": "c3b4f94350b0e59c2546fa85890cc70d03616b9c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "cachix",
|
||||
"ref": "master",
|
||||
"repo": "pre-commit-hooks.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"futils": "futils",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"pre-commit-hooks": "pre-commit-hooks"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
65
flake.nix
65
flake.nix
|
|
@ -1,65 +0,0 @@
|
|||
{
|
||||
description = "Advent of Code answers";
|
||||
|
||||
inputs = {
|
||||
futils = {
|
||||
type = "github";
|
||||
owner = "numtide";
|
||||
repo = "flake-utils";
|
||||
ref = "master";
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
type = "github";
|
||||
owner = "NixOS";
|
||||
repo = "nixpkgs";
|
||||
ref = "nixos-unstable";
|
||||
};
|
||||
|
||||
pre-commit-hooks = {
|
||||
type = "github";
|
||||
owner = "cachix";
|
||||
repo = "pre-commit-hooks.nix";
|
||||
ref = "master";
|
||||
inputs = {
|
||||
flake-utils.follows = "futils";
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, futils, nixpkgs, pre-commit-hooks }:
|
||||
futils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
checks = {
|
||||
pre-commit = pre-commit-hooks.lib.${system}.run {
|
||||
src = self;
|
||||
|
||||
hooks = {
|
||||
black = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
isort = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
nixpkgs-fmt = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
python310 # Latest version at the moment
|
||||
];
|
||||
|
||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue