mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
point files to linters (#5739)
This commit is contained in:
@@ -172,7 +172,7 @@ class PackageBuilder:
|
||||
def run_linters(self):
|
||||
"""Run the linters."""
|
||||
self.console.log("\nRunning linters...")
|
||||
linters = Linters(self.directory, self.verbose)
|
||||
linters = Linters(self.directory / "package", self.verbose)
|
||||
linters.ruff()
|
||||
linters.black()
|
||||
|
||||
@@ -1053,7 +1053,7 @@ class Linters:
|
||||
self.console.log(f"\n* {linter}")
|
||||
self.print_separator("^")
|
||||
|
||||
command = [linter, self.directory]
|
||||
command = [linter] + list(self.directory.glob("*.py"))
|
||||
if flags:
|
||||
command.extend(flags) # type: ignore
|
||||
subprocess.run(command, check=False) # noqa: S603
|
||||
|
||||
Reference in New Issue
Block a user