Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Move scripts to Synapse package and expose as entry_points; add suffices to scripts-dev #12107

@DMRobertson

Description

@DMRobertson

black and flake8 will ignore such files by default. flake8 has a filename config option, but I haven't been able to use this to have flake8 run over the scripts it would otherwise script.

mypy does not have this problem: one can specify an explicit list of files to example or ignore. isort doesn't have such configuration, but does look for shebang lines to detect python scripts without a .py suffix.

Given a magic wand, I would like to:

  • rename all scripts to end in .py
  • change the documentation to include the new .py suffix
  • change the debian package build so that the new scripts are available by the old, suffixless filename

Bullet three here is the hard one.

This would allow me to run black . and flake8 . both locally and in CI without thinking.

Metadata

Metadata

Assignees

Labels

T-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions