Skip to content

Fix .beman-tidy.yaml null values in exemplar template#413

Merged
neatudarius merged 2 commits into
bemanproject:mainfrom
neatudarius:fix/beman-tidy-yaml-null
Jul 10, 2026
Merged

Fix .beman-tidy.yaml null values in exemplar template#413
neatudarius merged 2 commits into
bemanproject:mainfrom
neatudarius:fix/beman-tidy-yaml-null

Conversation

@neatudarius

@neatudarius neatudarius commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

The exemplar template uses # None under disabled_rules and ignored_paths, which YAML parses as explicit null. In beman-tidy v0.5.x this crashes at runtime:

TypeError: can only concatenate list (not "NoneType") to list

because .get("ignored_paths", []) returns None when the key exists with a null value.

Changes

  • Root .beman-tidy.yaml: ignored_paths: [infra/]
  • Cookiecutter template: disabled_rules: [] (non-exemplar path) and ignored_paths: [infra/]
  • Cookiecutter .pre-commit-config.yaml: bump beman-tidy to v0.5.2

Test plan

  • Verified parsed YAML is {'disabled_rules': [], 'ignored_paths': ['infra/']} for default cookiecutter output
  • CI green

Replace `# None` comments (YAML null) with explicit empty lists and
`ignored_paths: [infra/]` so beman-tidy v0.5.1 does not crash when
loading config.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — neatudarius:fix/beman-tidy-yaml-null into bemanproject:main

@neatudarius neatudarius merged commit d951573 into bemanproject:main Jul 10, 2026
116 checks passed
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.

2 participants