Skip to content

Commit

Permalink
Merge pull request #914 from kamadorueda/main
Browse files Browse the repository at this point in the history
refac(back): #0 remove old mypy
  • Loading branch information
kamadorueda authored Sep 21, 2022
2 parents feff9ee + 291f5e7 commit 389c77e
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 1,004 deletions.
16 changes: 7 additions & 9 deletions src/args/lint-python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
makeSearchPaths,
...
}: {
mypyVersion ? "0.910",
name,
python,
searchPaths,
Expand All @@ -32,14 +31,13 @@ makeDerivation {
bin = listOptional isDarwin __nixpkgs__.clang;
};
sourcesYaml =
./.
+ ({
"3.7" = "/mypy-${mypyVersion}/pypi-sources-3.7.yaml";
"3.8" = "/mypy-${mypyVersion}/pypi-sources-3.8.yaml";
"3.9" = "/mypy-${mypyVersion}/pypi-sources-3.9.yaml";
"3.10" = "/mypy-${mypyVersion}/pypi-sources-3.10.yaml";
}
.${python});
{
"3.7" = ./pypi-sources-3.7.yaml;
"3.8" = ./pypi-sources-3.8.yaml;
"3.9" = ./pypi-sources-3.9.yaml;
"3.10" = ./pypi-sources-3.10.yaml;
}
.${python};
withSetuptools_57_4_0 = true;
withSetuptoolsScm_5_0_2 = true;
withWheel_0_37_0 = true;
Expand Down
4 changes: 0 additions & 4 deletions src/args/lint-python/mypy-0.910/pypi-deps.yaml

This file was deleted.

234 changes: 0 additions & 234 deletions src/args/lint-python/mypy-0.910/pypi-sources-3.10.yaml

This file was deleted.

256 changes: 0 additions & 256 deletions src/args/lint-python/mypy-0.910/pypi-sources-3.7.yaml

This file was deleted.

240 changes: 0 additions & 240 deletions src/args/lint-python/mypy-0.910/pypi-sources-3.8.yaml

This file was deleted.

246 changes: 0 additions & 246 deletions src/args/lint-python/mypy-0.910/pypi-sources-3.9.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/cli/main/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def render(self) -> rich.text.Text:
text.append("\n")
else:
text = rich.text.Text("(none)")
return rich.align.Align(text, align="center")
return rich.align.Align(text, align="center") # type: ignore


class TuiOutputsTitle(textual.widget.Widget):
Expand Down Expand Up @@ -1004,15 +1004,15 @@ def write_provenance(
attestation["predicate"]["materials"] = [
{
"uri": requisite,
"hash": dict([hash_.split(":")]), # type: ignore
"hash": dict([hash_.split(":")]),
}
for requisite, hash_ in _nix_build_requisites(out)
]

attestation["subject"] = [
{
"uri": realpath(out),
"hash": dict([_nix_hashes(out)[0].split(":")]), # type: ignore
"hash": dict([_nix_hashes(out)[0].split(":")]),
}
]

Expand Down
12 changes: 0 additions & 12 deletions src/evaluator/modules/lint-python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@
};
};
makeModule = name: {
mypyVersion,
searchPaths,
python,
src,
}: {
name = "/lintPython/module/${name}";
value = lintPython {
inherit mypyVersion;
inherit searchPaths;
inherit name;
inherit python;
Expand All @@ -42,7 +40,6 @@
};
};
makeDirOfModules = name: {
mypyVersion,
searchPaths,
python,
src,
Expand All @@ -53,7 +50,6 @@
name = "/lintPython/dirOfModules/${name}/${moduleName}";
value =
(makeModule moduleName {
inherit mypyVersion;
inherit searchPaths;
inherit python;
src = "${src}/${moduleName}";
Expand All @@ -78,10 +74,6 @@ in {
default = {};
type = lib.types.attrsOf (lib.types.submodule (_: {
options = {
mypyVersion = lib.mkOption {
default = "0.910";
type = lib.types.enum ["0.910" "0.971"];
};
python = lib.mkOption {
type = lib.types.enum ["3.7" "3.8" "3.9" "3.10"];
};
Expand Down Expand Up @@ -116,10 +108,6 @@ in {
default = {};
type = lib.types.attrsOf (lib.types.submodule (_: {
options = {
mypyVersion = lib.mkOption {
default = "0.910";
type = lib.types.enum ["0.910" "0.971"];
};
python = lib.mkOption {
type = lib.types.enum ["3.7" "3.8" "3.9" "3.10"];
};
Expand Down

0 comments on commit 389c77e

Please sign in to comment.