Skip to content

How do I run a fix command (e.g. for zpretty?) #4

@tisto

Description

@tisto

Most tools that are used in this repo have a check and a fix option.

You can run the check/lint option for zpretty with:

docker run --rm -v "${PWD}":/github/workspace plone/code-quality:latest check zpretty src

How are we supposed to run the fix command? Can the docker container access and change the fs?

docker run --rm -v "${PWD}":/github/workspace plone/code-quality:latest check zpretty --inplace src

does not work.

If I'd install zpretty locally and run it, I would risk to use a different version locally that would do a different formatting than the one I have on CI.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions