Commit Graph
8 Commits
Author SHA1 Message Date
davelopezandMarius van den Beek 7d00202034 Fix export_remote include metadata flag
We were passing 'false' to --export-metadata-files, but it was
considered True (non-zero length string), and the metadata was
always included in the export.

Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
2024-08-07 14:46:57 +02:00
Nicola Soranzo 7fee81607c Add linting with ruff
ruff (https://github.com/charliermarsh/ruff) is a new and extremely fast
Python linter, written in Rust.
Ruff can be used to replace Flake8 (plus a variety of plugins), isort,
pydocstyle, yesqa, eradicate, pyupgrade, and autoflake.
Here ruff is added to our current linters (flake8, flake8-bugbear and isort)
while we assess its reliability.
I've not enabled the isort rules because many of the options we use are not
implemented yet. I have instead enabled the pyupgrade rules (a tool which I
run manually every few months).

Also:
- Fix new linting errors reported by ruff.
2023-01-16 14:34:56 +00:00
Dannon Baker 03351d2a9f Apply black to tools as well 2022-02-03 09:12:13 -05:00
mvdbeek 8bf9de4e1a Provide $input.serialize(), allow wrap_json to serialize collections 2021-05-28 22:49:49 +02:00
mvdbeek d6e58fb898 Implement export of FileParameter / MetadataFile files 2021-05-27 17:23:42 +02:00
mvdbeek a4c0468813 Sanitize exported filenames
Now can't include leading `.`, `/` and utf null, and is truncated at 255
characters. Duplicate filenames will raise an error.
2021-05-27 17:21:01 +02:00
mvdbeek 920a4b3f77 Provide files to export as json configfile
This avoids shell limits and quoting issues.
2021-05-27 17:21:01 +02:00
John Chilton e9081759ca Add tool for exporting individual files to Galaxy.
Stolen wholesale from EU. Trying to make it a bit more general though.
2021-05-27 17:21:01 +02:00