-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add file extension for SnakeMake #3953
Conversation
Previously a file name was defined for [SnakeMake[(snakemake-wrappers.readthedocs.io): github-linguist#1834 Currently, the canonical extension is `smk` (see [this discussion](https://groups.google.com/forum/#!topic/Snakemake/segLE-RlV_s) with the author (@johanneskoester) of SnakeMake, and the [FAQ](http://snakemake.readthedocs.io/en/stable/project_info/faq.html#how-do-i-enable-syntax-highlighting-in-vim-for-snakefiles)).
Sorry about the delay in getting to this PR. Unfortunately, this extension isn't popular enough on GitHub for this PR to be merged. At the moment, the stats are: Total files found: 911 As per the contributing guidelines at https://github.com/github/linguist/blob/master/CONTRIBUTING.md#adding-an-extension-to-a-language "we prefer that extensions be in use in hundreds of repositories before supporting them in Linguist." This is close, but no cigar. Accordingly, I'll added the "Pending popularity" label. |
To clarify, it should be both, |
That file is currently being detected as Python because you've asked for it to be detected as Python - https://github.com/snakemake-workflows/rna-seq-star-deseq2/blob/master/.gitattributes 😄 |
Ah, I forgot about that. Thanks for the clarification! |
Ok, but still, you already do this automatically for files called "Snakefile". So, basically it is already in. What stands against also doing it for .smk? |
As I mentioned before, popularity. Snakefile is a defined file that is waaaay more popular than the |
Ok, I see, given that criterion, this is of course clear. However, both are for the same tool though (Snakemake). While many people just need a single |
Unfortunately not. Peeps can use whatever extension they like with most languages. Just because Python is popular, doesn’t mean we should accept |
Ok, I understand. We can wait then ;-). |
‘smk’ appears to be the accepted file extension for these things. See github-linguist/linguist#3953
Let’s reopen! |
Ok! You'll need to add and fill in our template for pull requests. |
This pull request has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this pull request was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions. |
I’ll update the pr |
This pull request has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this pull request was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions. |
@johanneskoester do you want to take this one over (in particular the checklist?) |
This pull request has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this pull request was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions. |
DescriptionChecklist:
|
@nh13 here we go. Do you need anything else? |
@johanneskoester @nh13 Could you add one or two files from these repositories to the pull request, under |
@nh13 I don't think that I have access to your branch. Can you add one of the smk files from dna-seq-gatk-variant-calling? |
Will do when I’m back from vacation in a week or so. |
@johanneskoester added:
I also added you as a collaborator :) |
Thanks a lot! I am looking forward to see this automatic highlighting Github and Atom. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Add file extension for SnakeMake Previously a file name was defined for [SnakeMake[(snakemake-wrappers.readthedocs.io): github-linguist#1834 Currently, the canonical extension is `smk` (see [this discussion](https://groups.google.com/forum/#!topic/Snakemake/segLE-RlV_s) with the author (@johanneskoester) of SnakeMake, and the [FAQ](http://snakemake.readthedocs.io/en/stable/project_info/faq.html#how-do-i-enable-syntax-highlighting-in-vim-for-snakefiles)). * Adding two Snakemake (smk) example files
* add .4dm extensons * no language for the moment * change the source of syntax highlighting for Agda (#4768) * Add interpreters 'csh' and 'tcsh' for language 'Tcsh' (#4760) * Update languages.yml * Create regtest_nmmnest.csh Source: https://github.com/barlage/WRF-kill/blob/master/tools/regtest_nmmnest.csh * Register `.bibtex` as a BibTeX file-extension (#4764) * Register `.dof` as an INI file-extension (#4766) * Register `.epsi` as a PostScript file-extension (#4763) * Add common extensions to Motorola 68k Assembly (#4637) * Add common extensions to Motorola 68k * Revert ACE mode for m68k assembly * Add heuristics for Motorola 68K Assembly * Add SWIG language and `.i` Assembly extension Co-authored-by: John Gardner <[email protected]> * Add file extension for SnakeMake (#3953) * Add file extension for SnakeMake Previously a file name was defined for [SnakeMake[(snakemake-wrappers.readthedocs.io): #1834 Currently, the canonical extension is `smk` (see [this discussion](https://groups.google.com/forum/#!topic/Snakemake/segLE-RlV_s) with the author (@johanneskoester) of SnakeMake, and the [FAQ](http://snakemake.readthedocs.io/en/stable/project_info/faq.html#how-do-i-enable-syntax-highlighting-in-vim-for-snakefiles)). * Adding two Snakemake (smk) example files * add .4dm extensons * no language for the moment * add lang-4d tmLanguage * link syntax highliting * typo Co-authored-by: Guillaume Brunerie <[email protected]> Co-authored-by: friedc <[email protected]> Co-authored-by: John Gardner <[email protected]> Co-authored-by: Iggy Drougge <[email protected]> Co-authored-by: Nils Homer <[email protected]>
Previously a file name was defined for SnakeMake: #1834
Currently, the canonical extension is
smk
(see this discussion with the author (@johanneskoester) of SnakeMake, and the FAQ).