-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗️ Splits PSM1, Removes
#Requires
from PSM1
Tests were failing because the module was not importable. The `#Requires` syntax being used in the root PSM1 prevented dependencies from being fully resolved before the module loading could complete, making the module unusable.
- Loading branch information
1 parent
a5d84b0
commit a8146fc
Showing
2 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env pwsh | ||
$ErrorActionPreference = "Stop" | ||
Set-StrictMode -Version Latest | ||
#Requires -Modules @{ ModuleName = "poshy-lucidity"; RequiredVersion = "0.4.1" } | ||
|
||
|
||
function Invoke-PylintReportsDisabled { | ||
pylint --reports=n @args | ||
} | ||
Set-Alias -Name pylint-quick -Value Invoke-PylintReportsDisabled | ||
|
||
|
||
Export-ModuleMember -Function * -Alias * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
#!/usr/bin/env pwsh | ||
$ErrorActionPreference = "Stop" | ||
Set-StrictMode -Version Latest | ||
#Requires -Modules @{ ModuleName = "poshy-lucidity"; RequiredVersion = "0.4.1" } | ||
|
||
|
||
if (-not (Test-Command pylint) -and (-not (Get-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Scope Global -ValueOnly -ErrorAction SilentlyContinue))) { | ||
if (-not (Get-Command pylint -ErrorAction SilentlyContinue) -and (-not (Get-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Scope Global -ValueOnly -ErrorAction SilentlyContinue))) { | ||
return | ||
} else { | ||
. "$PSScriptRoot/poshy-wrap-pylint.ps1" | ||
} | ||
|
||
function Invoke-PylintReportsDisabled { | ||
pylint --reports=n @args | ||
} | ||
Set-Alias -Name pylint-quick -Value Invoke-PylintReportsDisabled | ||
|
||
|
||
Export-ModuleMember -Function * -Alias * |