Skip to content

Config Files Being Overwritten #570

Open
@blonienc

Description

@blonienc

Problem: Precommit config file is overwritten in certain circumstances when running secureli init

To reproduce

  1. Make a new git repo with a JS file
  2. Run secureli init
  3. Modify .secureli/.pre-commit-config.yaml
  4. Commit .secureli/.pre-commit-config.yaml
  5. Check out repo into a new directory
  6. Run secureli init
  7. .secureli/.pre-commit-config.yaml has now been reset back to the default value

The solution I came up with is to add a new flag for init which prevents overwriting of the precommit config: secureli init --preserve-precommit-config

Metadata

Metadata

Assignees

Labels

RefactorCode that needs revision/refactoringbugSomething isn't workingpythonPull requests that update Python code

Type

No type

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions