Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(back): #1347 fix lintpython typo #1348

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/api/builtins/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ and (if configured) [import-linter](https://import-linter.readthedocs.io/en/stab
Types:

- lintPython:
- dirsOfModules (`attrsOf dirOfModulesType`): Optional.
- dirOfModules (`attrsOf dirOfModulesType`): Optional.
Definitions of directories of python packages/modules to lint.
Defaults to `{ }`.
- imports (`attrsOf importsType`): Optional.
Expand Down Expand Up @@ -296,7 +296,7 @@ Example:
```nix
{
lintPython = {
dirsOfModules = {
dirOfModules = {
makes = {
config = {};
src = "/src/cli";
Expand Down
2 changes: 1 addition & 1 deletion makes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
};
lintPython = let searchPaths.source = [ outputs."/cli/env/runtime" ];
in {
dirsOfModules = {
dirOfModules = {
makes = {
inherit searchPaths;
src = "/src/cli";
Expand Down
4 changes: 2 additions & 2 deletions src/evaluator/modules/lint-python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ let
in {
options = {
lintPython = {
dirsOfModules = lib.mkOption {
dirOfModules = lib.mkOption {
default = { };
type = lib.types.attrsOf (lib.types.submodule (_: {
options = {
Expand Down Expand Up @@ -106,7 +106,7 @@ in {
};
config = {
outputs =
(__toModuleOutputs__ makeDirOfModules config.lintPython.dirsOfModules)
(__toModuleOutputs__ makeDirOfModules config.lintPython.dirOfModules)
// (__toModuleOutputs__ makeImports config.lintPython.imports)
// (__toModuleOutputs__ makeModule config.lintPython.modules);
};
Expand Down
Loading