Nicola Soranzo
8cdca0f343
Revert some requests import changes
...
introduced in https://github.com/galaxyproject/galaxy/pull/18003 .
In particular, when using requests in the tests to connect to Galaxy
or the ToolShed it's not needed to use the modified headers.
Also:
- Move some imports after conditional imports.
- Fix type annotations in `lib/tool_shed/test/base/populators.py`
- Fix typo bug in `test/unit/util/test_get_url.py`
2024-05-23 15:55:56 +01:00
John Chilton
2f43c32fd9
Merge pull request #18003 from mvdbeek/add_galaxy_to_user_agent
...
Add galaxy to user agent
2024-05-20 12:14:13 -04:00
Nicola Soranzo
0629908541
Fix new UP031 errors from ruff 0.4.2
2024-04-29 00:09:38 +01:00
mvdbeek
e8a3b8c0cd
Create wrapper for requests with default user agent
2024-04-16 17:54:29 +02:00
Nicola Soranzo
00f7522e7e
Merge branch 'release_22.01' into dev
2022-03-19 01:57:33 +00:00
mvdbeek
4c7bfd1032
Fix tool shed bootstrapping script
2022-03-17 19:34:43 +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
f5cd88465e
Make str.join()s more efficient
...
by using generator expressions and tuples instead of lists.
2020-01-23 11:06:32 +00:00
Nicola Soranzo
b956406c4d
Fix Python3 compatibility and import order for 21 files
2017-10-16 19:43:01 +01:00
Nicola Soranzo
d1bc98dfcb
Python3: fix remaining print statements
...
Remove some debugging prints.
Fix import order.
Consolidate exception logging in ToolShed database migrations.
2017-10-12 18:34:29 +01:00
Nicola Soranzo
a353b2e88f
Fix E127 errors introduced by previous commit
...
using:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E127 .
```
2017-08-17 11:35:39 +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
Nicola Soranzo
de3c50a5ef
Python3 support and import order fixes for lib/tool_shed/
2016-08-04 13:41:36 +01:00
Nicola Soranzo
8a43b2b492
Python 3: use "as" instead of comma in except clause
2016-05-17 23:53:16 +01:00
Dave Bouvier
9bf3976e8a
Fix sys.path.insert
2016-04-05 13:50:51 -04:00
Dave Bouvier
77353902ee
Move scripts out of lib/tool_shed.
2016-04-05 13:04:44 -04:00