77
88@click .command (
99 "linter" ,
10- help = "Runs flake8 + black --check + isort --check-only on 'app', 'rosemary' and 'core ' "
10+ help = "Runs flake8 + black --check + isort --check-only on 'app' and 'rosemary ' "
1111 "(same checks as .github/workflows/CI_lint.yml)." ,
1212)
1313def linter ():
1414
1515 # Mirror the CI Python Lint job exactly: flake8, black --check and
16- # isort --check-only, all three pointed at the same three directories.
16+ # isort --check-only, both pointed at the same two directories.
1717 # Running them locally via `rosemary linter` used to only cover flake8,
1818 # so PRs kept bouncing off the black/isort steps after being green
1919 # locally — fixed by running the full triad here.
2020 working_dir = os .getenv ("WORKING_DIR" , "" )
2121 directories = [
2222 os .path .join (working_dir , "app" ),
2323 os .path .join (working_dir , "rosemary" ),
24- os .path .join (working_dir , "core" ),
2524 ]
2625
2726 checks = [
@@ -53,7 +52,7 @@ def linter():
5352
5453@click .command (
5554 "linter:fix" ,
56- help = "Automatically formats and cleans code in 'app', 'rosemary', and 'core ' directories." ,
55+ help = "Automatically formats and cleans code in 'app' and 'rosemary ' directories." ,
5756)
5857def linter_fix ():
5958 import os
@@ -65,7 +64,6 @@ def linter_fix():
6564 directories = [
6665 os .path .join (working_dir , "app" ),
6766 os .path .join (working_dir , "rosemary" ),
68- os .path .join (working_dir , "core" ),
6967 ]
7068
7169 for directory in directories :
0 commit comments