Skip to content

Commit 96f14a3

Browse files
committed
fix: Fixes missing 'core' in rosemary linter
1 parent 6d37363 commit 96f14a3

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/features/factlabel/_flamapy_patches.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1414
Ref: flamapy.metamodels.fm_metamodel.models.feature_model.is_single_feature_constraint
1515
"""
16+
1617
import logging
1718

1819
logger = logging.getLogger(__name__)

rosemary/src/rosemary/commands/linter.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@
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
)
1313
def 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
)
5857
def 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

Comments
 (0)