diff --git a/.envrc b/.envrc deleted file mode 100644 index c23bb91..0000000 --- a/.envrc +++ /dev/null @@ -1,7 +0,0 @@ -use_flake() { - watch_file flake.nix - watch_file flake.lock - eval "$(nix print-dev-env)" -} - -use flake diff --git a/2019/d13/ex1/ex1.py b/2019/d13/ex1/ex1.py index 1bf7e8c..52198a1 100755 --- a/2019/d13/ex1/ex1.py +++ b/2019/d13/ex1/ex1.py @@ -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): diff --git a/2019/d13/ex2/ex2.py b/2019/d13/ex2/ex2.py index 9fb669f..bee602b 100755 --- a/2019/d13/ex2/ex2.py +++ b/2019/d13/ex2/ex2.py @@ -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): diff --git a/flake.lock b/flake.lock deleted file mode 100644 index b743e83..0000000 --- a/flake.lock +++ /dev/null @@ -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 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 59cf9db..0000000 --- a/flake.nix +++ /dev/null @@ -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; - }; - }); -}