File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ ci_housekeeping: check_check check doc
4343ci_unit_tests : unit_tests
4444
4545check :
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
5050check_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
5656pretty :
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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -72,4 +72,8 @@ write_to = "WDL/_version.py"
7272mypy_path = " ${MYPY_CONFIG_FILE_DIR}/stubs"
7373
7474[tool .ruff ]
75+ line-length = 100
7576exclude = [" WDL/_version.py" ]
77+
78+ [tool .ruff .lint ]
79+ ignore = [" E741" , " E731" ]
You can’t perform that action at this time.
0 commit comments