Show error codes when running mypy

E.g. this error:

```
lib/galaxy/tool_util/cwl/schema.py:38: error: "LoadingContext" has no attribute "relax_path_checks"
```

becomes

```
lib/galaxy/tool_util/cwl/schema.py:38: error: "LoadingContext" has no attribute "relax_path_checks"  [attr-defined]
```

making it easier to Google for solutions or to add a
`# type: ignore[error-code]` comment.
This commit is contained in:
Nicola Soranzo
2021-11-10 10:53:31 +01:00
parent 823e461faa
commit 7b1eb02aa3
+1
View File
@@ -17,6 +17,7 @@ import-order-style = smarkets
application-import-names = galaxy,galaxy_test,tool_shed
[mypy]
show_error_codes = True
ignore_missing_imports = True
check_untyped_defs = True
exclude = lib/galaxy/tools/bundled|test/functional