Skip to content

Commit

Permalink
feat(back): fluidattacks#1171 use new builtin
Browse files Browse the repository at this point in the history
- Migrate lintPythonImports

Signed-off-by: Daniel Salazar <[email protected]>
  • Loading branch information
dsalaza4 committed Jan 9, 2024
1 parent 8a8fc21 commit 833e5c2
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/args/lint-python-imports/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
makeDerivation,
makePythonPypiEnvironment,
makePythonEnvironment,
makeSearchPaths,
...
}: {
Expand All @@ -18,12 +18,17 @@ makeDerivation {
name = "lint-python-imports-for-${name}";
searchPaths.source = [
(makeSearchPaths searchPaths)
(makePythonPypiEnvironment {
name = "lint-python-imports";
sourcesYaml = ./pypi-sources.yaml;
withSetuptools_67_7_2 = true;
withSetuptoolsScm_7_1_0 = true;
withWheel_0_40_0 = true;
(makePythonEnvironment {
pythonProjectDir = ./.;
pythonVersion = "3.11";
overrides = self: super: {
grimp = super.grimp.overridePythonAttrs (
old: {buildInputs = [super.setuptools];}
);
import-linter = super.import-linter.overridePythonAttrs (
old: {buildInputs = [super.setuptools];}
);
};
})
];
}
79 changes: 79 additions & 0 deletions src/args/lint-python-imports/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/args/lint-python-imports/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
name = "lint-python-imports"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
import-linter = "1.2.4"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 833e5c2

Please sign in to comment.