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: automatically analyze newly created projects #514

Merged
merged 1 commit into from
Dec 13, 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
2 changes: 2 additions & 0 deletions src/phylum/ci/ci_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,8 @@ def _ensure_project_exists(self) -> None:
LOG.info(cleandoc(project_created_msg))
if self._project_file_already_existed:
LOG.warning("Overwrote previous `.phylum_project` file found at: %s", self._phylum_project_file)
LOG.warning("Forcing analysis to ensure new project is initially populated ...")
self._force_analysis = True

def _created_group(self) -> bool:
"""Ensure a Phylum group is created and in place, when specified.
Expand Down
4 changes: 2 additions & 2 deletions src/phylum/ci/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def get_args(args: Optional[Sequence[str]] = None) -> tuple[argparse.Namespace,
"-f",
"--force-analysis",
action="store_true",
help="""Specify this flag to force analysis, even when no dependency file has changed. This flag is implicitly
set when *any* manifest is included, to maximize the chance that updated dependencies are accounted.""",
help="""Specify this flag to force analysis, even when no dependency file has changed. Implicitly set for newly
created projects or when *any* manifest is included, to account for possible dependency updates.""",
maxrake marked this conversation as resolved.
Show resolved Hide resolved
)
analysis_group.add_argument(
"-k",
Expand Down
Loading