Skip to content

Commit 3d1c3c6

Browse files
authored
Merge pull request #1 from galaxyproject/dev
update official
2 parents dc6d61c + 33380f9 commit 3d1c3c6

4,489 files changed

Lines changed: 306532 additions & 174367 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci/autopep8.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

.ci/check_py3_compatibility.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

.ci/check_test_class_names.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
TEST=$(mktemp)
3+
TEST_EXTRA_CLASSES=$(mktemp)
4+
5+
pytest --collect-only --ignore=test/functional lib/galaxy_test/ test/ > "$TEST"
6+
pytest -o python_classes='Test* *Test *TestCase' --collect-only --ignore=test/functional lib/galaxy_test/ test/ > "$TEST_EXTRA_CLASSES"
7+
8+
n_tests=$(grep 'tests collected' "$TEST" | sed -e 's/[^0-9]*\([0-9]*\) tests collected.*/\1/')
9+
n_tests_extra_classes=$(grep 'tests collected' "$TEST_EXTRA_CLASSES" | sed -e 's/[^0-9]*\([0-9]*\) tests collected.*/\1/')
10+
11+
if [ "$n_tests_extra_classes" -gt "$n_tests" ]; then
12+
echo "New test class with name not starting with Test introduced, change it to have tests collected by pytest"
13+
diff "$TEST" "$TEST_EXTRA_CLASSES"
14+
exit 1
15+
fi

.ci/eslint_wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
# Setting NODE_PATH and config appropriately, using dependencies from
66
# client/node_modules, run eslint against args passed to this script.
77
# Primary use case here is for a pre-commit check.
8-
NODE_PATH=src/ node client/node_modules/eslint/bin/eslint.js -c client/.eslintrc.json "$@"
8+
NODE_PATH=src/ node client/node_modules/eslint/bin/eslint.js -c client/.eslintrc.js "$@"

.ci/flake8_ignorelist.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
.git
22
.tox
3-
.venv
4-
.venv3
3+
.venv*
54
packages/*/.venv
65
packages/*/build
76
packages/*/dist
87
packages/venv
98
node_modules
109
database
1110
doc/build
12-
doc/source/conf.py
1311
eggs
14-
lib/galaxy/util/jstree.py
1512
lib/galaxy/web/proxy/js/node_modules
13+
lib/tool_shed/test/test_data/repos
1614
static/maps
1715
static/scripts
1816
test/functional/tools/cwl_tools/v1.?/

.ci/ignore-spelling.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
hda
2+
implementors
3+
purgable

.ci/validate_test_tools.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ xsd_path="lib/galaxy/tools/xsd/galaxy.xsd"
77
xmllint --noout "$xsd_path"
88

99
test_tools_path='test/functional/tools'
10-
tool_files_list=$(ls "$test_tools_path"/*.xml | grep -v '_conf.xml$')
10+
# test all test tools except upload.xml which uses a non-standard conditional
11+
# (without param) which does not survive xsd validation
12+
tool_files_list=$(ls "$test_tools_path"/*.xml | grep -v '_conf.xml$' | grep -v upload.xml)
1113
sh scripts/validate_tools.sh $tool_files_list

.circleci/config.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ variables:
55
restore_cache:
66
keys:
77
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
8-
restore_yarn_cache: &restore_yarn_cache
9-
restore_cache:
10-
keys:
11-
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
12-
- yarn-packages-{{ checksum "client/yarn.lock" }}
13-
save_yarn_cache: &save_yarn_cache
14-
save_cache:
15-
key: yarn-packages-{{ checksum "client/yarn.lock" }}
16-
paths:
17-
- ~/.cache/yarn
188
install_tox: &install_tox
199
run: pip install tox
2010
set_workdir: &set_workdir
@@ -25,7 +15,7 @@ variables:
2515
jobs:
2616
get_code:
2717
docker:
28-
- image: cimg/python:3.7
18+
- image: cimg/python:3.8
2919
<<: *set_workdir
3020
steps:
3121
# Replace standard code checkout with shallow clone to speed things up.
@@ -34,7 +24,7 @@ jobs:
3424
command: |-
3525
# Add github.com to known hosts
3626
mkdir -p ~/.ssh
37-
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
27+
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=
3828
' >> ~/.ssh/known_hosts
3929
4030
# Add the user ssh key and set correct perms
@@ -83,30 +73,18 @@ jobs:
8373
- ~/repo
8474
validate_test_tools:
8575
docker:
86-
- image: cimg/python:3.7
76+
- image: cimg/python:3.8
8777
<<: *set_workdir
8878
steps:
8979
- *restore_repo_cache
9080
- run: sudo apt-get update
9181
- run: sudo apt-get install -y libxml2-utils
9282
- *install_tox
9383
- run: tox -e validate_test_tools
94-
js_lint:
95-
docker:
96-
- image: cimg/node:16.15.1
97-
<<: *set_workdir
98-
steps:
99-
- *restore_yarn_cache
100-
- run: cd client && yarn install --frozen-lockfile
101-
- *save_yarn_cache
102-
- run: cd client && yarn run eslint
103-
- run: cd client && yarn run format-check
10484
workflows:
10585
version: 2
10686
get_code_and_test:
10787
jobs:
10888
- get_code
10989
- validate_test_tools:
11090
<<: *requires_get_code
111-
- js_lint:
112-
<<: *requires_get_code

.flake8

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
# B008 Do not perform function calls in argument defaults (for FastAPI Depends and Body)
44
# E203 is whitespace before ':'; we follow black's formatting here. See https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated
55
# E402 module level import not at top of file # TODO, we would like to improve this.
6-
# E501 is line length
6+
# E501 is line length (delegated to black)
7+
# E701,E704 are multiple statements on one line; we follow black's formatting here. See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#configuration
78
# W503 is line breaks before binary operators, which has been reversed in PEP 8.
89
# D** are docstring linting - which we mostly ignore except D302. (Hopefully we will solve more over time).
9-
ignore = B008,E203,E402,E501,W503,D100,D101,D102,D103,D104,D105,D106,D107,D200,D201,D202,D204,D205,D206,D207,D208,D209,D210,D211,D300,D301,D400,D401,D402,D403,D412,D413
10-
exclude = lib/galaxy/util/jstree.py
10+
ignore = B008,E203,E402,E501,E701,E704,W503,D100,D101,D102,D103,D104,D105,D106,D107,D200,D201,D202,D204,D205,D206,D207,D208,D209,D210,D211,D300,D301,D400,D401,D402,D403,D412,D413
11+
exclude = lib/tool_shed/test/test_data/repos

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ A clear and concise description of what the bug is.
1414
Galaxy Version: (check <galaxy_url>/api/version if you don't know)
1515
Commit: (run `git rev-parse HEAD` if you run this Galaxy server)
1616

17+
**Browser and Operating System**
18+
Operating System: Windows, Linux, macOS
19+
Browser: Firefox, Chrome, Chrome-based, Safari
20+
1721
**To Reproduce**
1822
Steps to reproduce the behavior:
1923
1. Go to '...'

0 commit comments

Comments
 (0)