Skip to content

Add beman-tidy config to exemplar#368

Merged
AndreiDurlea merged 1 commit intomainfrom
andreidurlea/beman-tidy-config
May 2, 2026
Merged

Add beman-tidy config to exemplar#368
AndreiDurlea merged 1 commit intomainfrom
andreidurlea/beman-tidy-config

Conversation

@AndreiDurlea
Copy link
Copy Markdown
Member

@AndreiDurlea AndreiDurlea commented Apr 30, 2026

This PR is in anticipation of this PR on beman-tidy which introduces the possibility of disable entire rules. And in anticipation of undoing this temporary CI pause.

This does two things

  • adds .beman-tidy.yaml with pre-ignored rules to fix CI on beman-tidy
  • adds cookiecutter/{{cookiecutter.project_name}}/.beman-tidy.yaml to the template in order to prep new repos with a .beman-tidy.yaml config file and how to use it

disabled_rules:
# None
ignored_paths:
# None
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.

The contents of this file should be as follows:

# This is the config file for beman-tidy, which checks compliance with the beman standard. 
# Check documentation for beman-tidy here: 
# https://github.com/bemanproject/beman-tidy/blob/main/README.md

{% if cookiecutter._generating_exemplar %}
disabled_rules:
  - readme.title
{% else %}
disabled_rules:
    # None
{% endif %}
ignored_paths:
    # None

Then you can pass the cookiecutter CI without needing to make changes to check_cookiecutter.sh

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nice! will apply this

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.

Agree with Eddie.

Also, thanks for adding this here! We need to reenable the test in beman-tidy repo!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Just ran beman tidy on exemplar. Seems like we have to ignore some files/disable some more rules. Working on it!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Also: pushing a PR to fix a small but critical bug regarding reading empty lists in an yaml.

Copy link
Copy Markdown
Member Author

@AndreiDurlea AndreiDurlea Apr 30, 2026

Choose a reason for hiding this comment

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

also, please wait for a new release of beman-tidy.

I'm doing one right now after your PR was merged into beman-tidy (bemanproject/beman-tidy#279). As per my understanding, you need here the capability of disabling rules, right?

If yes, we need to update https://github.com/bemanproject/exemplar/blob/main/cookiecutter/%7B%7Bcookiecutter.project_name%7D%7D/.pre-commit-config.yaml#L45

wait, @neatudarius can you postpone that release one min? I'm fixing a bug i just discovered

bemanproject/beman-tidy#293

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.

ok

Copy link
Copy Markdown
Member Author

@AndreiDurlea AndreiDurlea Apr 30, 2026

Choose a reason for hiding this comment

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

PR with fix is open
bemanproject/beman-tidy#294

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Excellent!

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 30, 2026

Coverage Status

coverage: 100.0%. remained the same — andreidurlea/beman-tidy-config into main

Comment thread .beman-tidy.yaml Outdated
Comment thread cookiecutter/{{cookiecutter.project_name}}/.beman-tidy.yaml Outdated
Comment thread .beman-tidy.yaml
@AndreiDurlea AndreiDurlea force-pushed the andreidurlea/beman-tidy-config branch from 69e8317 to 281486c Compare April 30, 2026 19:20
@AndreiDurlea AndreiDurlea marked this pull request as ready for review April 30, 2026 19:41
@AndreiDurlea
Copy link
Copy Markdown
Member Author

Can we get this merged? In order to also fix CI on tidy (bemanproject/beman-tidy#296) and develop it further

@ednolan
Copy link
Copy Markdown
Member

ednolan commented May 2, 2026

Just one thing first, can you squash all your commits into one commit and force push to this feature branch? The branch has 11 commits right now; I'd prefer for the exemplar repo to have a simpler git history.

@AndreiDurlea
Copy link
Copy Markdown
Member Author

Just one thing first, can you squash all your commits into one commit and force push to this feature branch? The branch has 11 commits right now; I'd prefer for the exemplar repo to have a simpler git history.

sure thing. will keep in mind for future PRs too

@AndreiDurlea AndreiDurlea force-pushed the andreidurlea/beman-tidy-config branch from 281486c to 9dd8230 Compare May 2, 2026 13:01
@AndreiDurlea
Copy link
Copy Markdown
Member Author

AndreiDurlea commented May 2, 2026

Squashed those, but github authored one more merge commit when updating this to be in sync w main. Hope it's ok

git log
commit a615617f19e278545323586856748a928f822b96 (HEAD -> andreidurlea/beman-tidy-config, origin/andreidurlea/beman-tidy-config)
Merge: 9dd8230 1d90edb
Author: Andrei Durlea <[email protected]>
Date:   Sat May 2 16:03:00 2026 +0300

    Merge branch 'main' into andreidurlea/beman-tidy-config

commit 9dd8230e704dc6523428976d66e054b3c169b478
Author: Andrei Durlea <[email protected]>
Date:   Sat May 2 16:01:42 2026 +0300

    Add beman-tidy config to exemplar
:

@ednolan
Copy link
Copy Markdown
Member

ednolan commented May 2, 2026

I'd prefer not to have merge commits; you should be able to eliminate it with a git rebase.

@AndreiDurlea AndreiDurlea force-pushed the andreidurlea/beman-tidy-config branch from a615617 to ea69220 Compare May 2, 2026 13:09
@AndreiDurlea
Copy link
Copy Markdown
Member Author

Done 👍

commit ea692207db1024c9118e6cf39ed518ca79700208 (HEAD -> andreidurlea/beman-tidy-config, origin/andreidurlea/beman-tidy-config)
Author: Andrei Durlea <[email protected]>
Date:   Sat May 2 16:01:42 2026 +0300

    Add beman-tidy config to exemplar

@AndreiDurlea AndreiDurlea merged commit 940a19c into main May 2, 2026
106 checks passed
@AndreiDurlea AndreiDurlea deleted the andreidurlea/beman-tidy-config branch May 2, 2026 13:18
@AndreiDurlea AndreiDurlea restored the andreidurlea/beman-tidy-config branch May 4, 2026 11:24
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.

4 participants