Nicola Soranzo
c3139f246d
Fix UP031 errors reported by ruff
2023-03-29 08:55:54 +01:00
Nicola Soranzo
30f60493c3
Format Python code with black 23.1.0
...
with manual fixes to 3 files to make them compatible with black 22.12.0 .
We need to keep black pinned at `<23` until we vendorise `packaging`, since
the new version of black depends on `packaging >=22.0` which is the version
where `LegacyVersion` (which we use for tool lineages) was removed.
2023-02-01 23:51:03 +00:00
Nicola Soranzo
0c80836c34
Upgrade syntax to Python 3.7
...
using `ack --type=python -f | grep -v '^tools/' | xargs pyupgrade --py37-plus`
Also more refactoring of Python files in `packages/` .
2022-03-14 14:57:43 +00:00
Nicola Soranzo
7f04b5d698
Merge branch 'release_22.01' into dev
2022-03-02 20:08:55 +00:00
mvdbeek
c08a12f553
Drop get_database_url helper
...
I don't see an advantage over accessing the config attribute instead.
2022-03-01 16:50:06 +01:00
Dannon Baker
623a5e165a
Apply black formatting.
...
Apply isort.
2022-02-03 07:42:20 -05:00
Nicola Soranzo
9d74bba7fb
Drop support for retired Python 3.5
...
Upgrade syntax using `pyupgrade --py36-plus` .
Manually drop several `six` imports.
Also:
- Remove broken pr_cache in scripts/bootstrap_history.py
- Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
2020-10-07 11:52:13 +01:00
Nicola Soranzo
f4203ca051
Fix errors reported by flake8 3.6.0
...
Ignore W504.
2018-10-24 23:22:19 +01:00
John Chilton
5f3f792f6f
Unification of Galaxy configuration parsing for scripts/*
2018-03-23 16:14:49 -04:00
Nicola Soranzo
9b4de72ca6
Fix all E722 errors and ignore E741
...
Introduced in flake8 3.5.0
Fix import order.
2017-10-24 11:29:09 +01:00
Nicola Soranzo
21b44bf348
Fix all E201 and E202 style errors
...
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00
Enis Afgan
6a77a186a8
Script doc correction
2017-07-14 11:21:56 -04:00
Nicola Soranzo
6ba6f798ec
Fix more E203 flake8 errors
2016-05-17 23:53:16 +01:00
Nicola Soranzo
6569c2dcc3
Partially lint scripts/ .
2015-07-13 20:13:28 +01:00
Nate Coraor
73dd0b1a6f
Add some additional documentation/usage in the doc string
2015-04-23 16:03:58 -04:00
Nate Coraor
bdbc98c47c
Fix the connection string when a database username is provided (reported
...
by @afgane in #151 ).
2015-04-23 15:46:46 -04:00
Nate Coraor
fd5c41e902
Pull runtime stats from metrics by default (job state history remains an
...
option), a couple other minor improvements to the script.
2015-04-23 15:42:46 -04:00
Nate Coraor
ef69881e56
Added a command line script for collecting stats on job runtimes to help
...
admins make decisions about how/where to run jobs.
2015-04-23 12:56:06 -04:00