-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File extensions #684
Comments
I'm of the opinion that tools meant to be run directly (e.g. But I did notice that our tools will skip files that don't have a Side note: I think we might actually not use |
A suggestion would be to add the scripts to the path (this can be done with console scripts section in An example https://github.com/mateusoliveira43/docky |
We can just add the extensions, I'm not a purist! I wouldn't mind setuptools integration eventually. |
Another approach to this is to have source files of the CLIs with extensions and link them to the CLIs executables without, so in our case, (example): $ ls scripts/view-grafana-queries.py
scripts/view-grafana-queries.py
$ pushd scripts
$ mkdir src/
$ git mv scripts/view-grafana-queries.py scripts/src/
$ sed -i 's$../../charts/pelorus$../../../charts/pelorus$g' src/view-grafana-queries.py
$ ln -s ./src/view-grafana-queries.py ./view-grafana-queries |
Not a bad idea. Essentially, in [project.scripts]
view-grafana-queries = "pelorus_scripts.grafana:view_queries" We'd have to slightly alter some of the scripts, and add a namespace manually to |
Related #479 |
Hi everyone 👋
Thanks for this awesome Project!
Pelorus have some files without extension. To get the list of files without extension, in the project root run
Some of them should not have extension (like
.gitignore
), but I believe the Python files should, for example. This leads to the project quality checks not checking files properly.For example, running
make black-check
does not warn of any errors today. But if we change the name of the filescripts/bump-version
toscripts/bump-version.py
and runmake black-check
again, black indicates format errors.The text was updated successfully, but these errors were encountered: