Skip to content

Commit 0e9c14b

Browse files
committed
Merge remote-tracking branch 'origin/main' into runtime-task-metadata
2 parents e5e7f0e + d8d73a4 commit 0e9c14b

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ ci_housekeeping: check_check check doc
4343
ci_unit_tests: unit_tests
4444

4545
check:
46-
ruff check --ignore E741 WDL
46+
ruff check WDL
4747
mypy WDL
48-
ruff format --check --line-length 100 WDL
48+
ruff format --check WDL
4949

5050
check_check:
5151
# regression test against pyre/mypy doing nothing (issue #100)
@@ -54,7 +54,7 @@ check_check:
5454
rm WDL/DELETEME_check_check.py
5555

5656
pretty:
57-
ruff format --line-length 100 WDL
57+
ruff format WDL
5858

5959
# build docker image with current source tree, poised to run tests e.g.:
6060
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp miniwdl

WDL/Lint.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,11 @@ def _compound_coercion(
209209
if predicates:
210210
return predicates(to_type, from_type)
211211
if not from_type_predicate:
212-
213-
def from_type_predicate(ty):
214-
return not isinstance(ty, (base_to_type, Type.Any))
215-
212+
from_type_predicate = lambda ty: (
213+
not isinstance( # noqa: E731
214+
ty, (base_to_type, Type.Any)
215+
)
216+
)
216217
return from_type_predicate(from_type)
217218
return False
218219

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,8 @@ write_to = "WDL/_version.py"
7272
mypy_path = "${MYPY_CONFIG_FILE_DIR}/stubs"
7373

7474
[tool.ruff]
75+
line-length = 100
7576
exclude = ["WDL/_version.py"]
77+
78+
[tool.ruff.lint]
79+
ignore = ["E741", "E731"]

0 commit comments

Comments
 (0)