Skip to content
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

Is there an official order of sections? #148

Open
nickp60 opened this issue Jun 21, 2022 · 5 comments
Open

Is there an official order of sections? #148

nickp60 opened this issue Jun 21, 2022 · 5 comments
Labels
wontfix This will not be worked on

Comments

@nickp60
Copy link

nickp60 commented Jun 21, 2022

Not sure if this has been discussed elsewhere, but is there an official order that the different directives should be written? And if there is would it be possible to have snakefmt enforce that order?

@bricoletc
Copy link
Collaborator

Hello, interesting question.

That sounds like something the linter should be in charge of, not the formatter- are you aware of the linter?. I suspect it currently doesn't warn about that though.

@nickp60
Copy link
Author

nickp60 commented Jun 21, 2022

I use both the linter and the the formatter, and I haven't seen it warn about this.

@mbhall88
Copy link
Member

This is a really interesting question and something I have also often wondered about!

It would be nice to have a unified ordering. This might best be handled by a separate tool though - analogous to isort and black for python.

@bricoletc bricoletc closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2022
@bricoletc bricoletc reopened this Dec 9, 2022
@bricoletc bricoletc added the wontfix This will not be worked on label Dec 9, 2022
@corneliusroemer
Copy link

Great idea to standardize order, like isort for imports! I would happily use such a tool (in case anyone feels like writing one).

@mbhall88
Copy link
Member

I'm struggling to maintain this repo let alone create a new one 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants