Skip to content

Format yaml#487

Open
bastianjoel wants to merge 8 commits into
OpenSlides:mainfrom
bastianjoel:format-yaml
Open

Format yaml#487
bastianjoel wants to merge 8 commits into
OpenSlides:mainfrom
bastianjoel:format-yaml

Conversation

@bastianjoel
Copy link
Copy Markdown
Member

No description provided.

@bastianjoel bastianjoel force-pushed the format-yaml branch 2 times, most recently from a51a656 to 1448642 Compare April 23, 2026 09:14
Comment thread dev/Makefile
check-pyupgrade:
pyupgrade --py310-plus $$(find . -name '*.py')

cleanup-yaml:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the usage of docker in this target.
At least it leaves an unused image when executing locally.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason is for prettiers dependence on node, which is otherwise not used in meta.
We could add a target that just assumes the host machine already has node setup and can execute prettier without issue

Comment thread dev/Makefile
paths = src/ tests/

all: pyupgrade black autoflake isort flake8 mypy sqlfluff
lint: pyupgrade black autoflake isort flake8 mypy sqlfluff
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this renaming have effect on CI somewhere?
If not, we should add a check with linting.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not seen "all" being referenced anywhere. It isn't called in workflows, but the composite make targets are. It should probably remain that way, so you can see which of the linters have failed directly looking at the failed workflow step

@rrenkert rrenkert assigned Janmtbehrens and unassigned rrenkert Apr 29, 2026
Copy link
Copy Markdown
Member

@peb-adr peb-adr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting looks good and sensible.

I approve although rrenkert has remarks on make targets.

Comment thread .github/workflows/pick-to-staging.yml
Copy link
Copy Markdown
Member

@peb-adr peb-adr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sigh, this comment wasn't saved to the last review..

Comment thread dev/Makefile Outdated

cleanup-yaml:
docker build -t meta-prettier-image -f Dockerfile-prettier .
docker run -d --name meta-prettier-container -v ..:/app/ meta-prettier-image
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can run --rm, obsoleting docker rm after docker stop.

From docker run --help

--rm                               Automatically remove the container and its associated anonymous volumes when it exits

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a game changer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants