GithubHelp home page GithubHelp logo

rabix / cwl-format Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 4.0 207 KB

A very opinionated code formatter for CWL

License: Apache License 2.0

Python 2.58% Common Workflow Language 97.42%
code-formatter common-workflow-language cwl

cwl-format's Introduction

Rabix has grown up!

Reproducible Analyses for Bioinformatics is now a reality!

Please see

If you want to see the old documentation for the project please see here

cwl-format's People

Contributors

dependabot[bot] avatar illusional avatar mr-c avatar pvanheus avatar tjni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cwl-format's Issues

Installation fails with pip and the tarball

Hi
when I try to install cwlformat 2022.2.18 with pip from the tarball
it fails because the tarball does not contain the Readme.md file.
The same for the LICENSE file.

The cause could be that the Readme.md file as well as the LICENSE file are not listed in the MANIFEST.in

remove extraneous 'id' fields

Some CWL generators, like cwlgen, output map<> format but still retain the id in the map entry's values, even though the 'id' value is also the map key.

This should be stripped out.

Example: https://github.com/PMCC-BioinformaticsCore/janis-pipelines/blob/536f8181dd3edaa7339483cc28610e3acde5d105/janis_pipelines/wgs_germline/cwl/WGSGermlineMultiCallers.cwl#L22

inputs:
  align_and_sort_sortsam_tmpDir:
    id: align_and_sort_sortsam_tmpDir
    doc: Undocumented option
    type: string
    default: ./tmp

How can I avoid removing comments in CWL ?

Hi,
while formatting CWL code, the cwl-format will remove all comment lines.
Can I avoid that somehow? I would like to have some comments in the code.
Is there a reason for removing comments by default?

Thanks,
Aleksandar

importlib.resources breaks Python <3.7

I updated cwlformat today and noticed that importlib.resources breaks Python < 3.7 which won't work. I tried installed importlib-metada but this also doesn't work.

Just wondering if there are potentially any suggestions? I'm happy to PR convert keyorder.yaml into a Python files so it can be imported and used.

Release for Python 3.6

Hi, I issued a PR (#5) for fixing Python 3.6. Just wondering if there's a release planned for this, or if there's something else that it's waiting on.

please tag a release

This is listed as a dependency for the latest version of benten, so a conda package will need to be built for cwlformat. However there is no release tagged - please tag a release to make it easier to build a conda package.

Thanks.

How can I get cwlformat to work on Py3.5

There is an error in cwl-format.

(env) ngsap2@ubuntu:~/cwl-format$ cwl-format /home/ngsap2/alignmentDocker.cwl > alignmentNewDocker.cwl
Traceback (most recent call last):
  File "/home/ngsap2/.local/bin/cwl-format", line 7, in <module>
    from cwlformat.formatter import main
  File "/home/ngsap2/.local/lib/python3.5/site-packages/cwlformat/formatter.py", line 105
    description=f"Rabix/cwl-format v{__version__}\n"
                                                   ^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.