Merge pull request #21419 from nsoranzo/release_25.0_pin_black_25.11.0

[25.0] Use a new format tox environment in lint GitHub action
This commit is contained in:
John Chilton
2025-12-09 15:33:17 +01:00
committed by GitHub
2 changed files with 8 additions and 4 deletions
+2 -4
View File
@@ -56,7 +56,5 @@ jobs:
run: tox -e lint_docstring_include_list
- name: Run mypy checks
run: tox -e mypy
- uses: psf/black@stable
with:
version: ">=25.1.0"
- uses: isort/isort-action@v1
- name: Run format checks
run: tox -e format
+6
View File
@@ -3,6 +3,7 @@
# hyphens in an environment name are used to delimit factors
envlist =
first_startup
format
lint
lint_docstring_include_list
mypy
@@ -16,6 +17,8 @@ skipsdist = True
[testenv]
commands =
first_startup: bash .ci/first_startup.sh
format: isort --check --diff .
format: black --check --diff .
lint: ruff check .
# Once we are happy to replace flake8 with ruff, we can replace the next line with `black --check --diff`
# (since ruff delegates to black for checking/fixing many rules).
@@ -31,6 +34,8 @@ commands =
test_galaxy_packages_for_pulsar: bash packages/test.sh --for-pulsar
allowlist_externals =
bash
black
isort
make
passenv =
CI
@@ -52,6 +57,7 @@ setenv =
unit: marker=not external_dependency_management
deps =
coverage: coverage
format: -rlib/galaxy/dependencies/dev-requirements.txt
lint,lint_docstring,lint_docstring_include_list: -rlib/galaxy/dependencies/pinned-lint-requirements.txt
mypy: -rlib/galaxy/dependencies/pinned-typecheck-requirements.txt
mypy: -rlib/galaxy/dependencies/pinned-requirements.txt