1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

6 Commits

Author SHA1 Message Date
Athanasius
a499a22383
.mypy.ini: Set follow_imports explicitly to normal default
We'd been using `skip` because when we started with mypy next to nothing
passed it, and checking one file would spew errors with other files and it
just wasn't conducive to making at least *some* progress.

But now we should have every single file passing, so this is the right thing
to do.
2022-12-23 14:48:27 +00:00
Athanasius
61bdb54eb1
.mypy.ini: Add --explicit-package-bases to help with pre-commit invocation 2022-12-23 14:46:57 +00:00
Athanasius
f1b2022aa2
.mypy.ini: s/-/_/g on check-untyped-defs 2022-12-16 13:27:21 +00:00
Athanasius
6a580576ec
mpyp: Always use --check-untyped-defs
`mypy EDMarketConnector.py` was throwing a warning:

    By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]

for some things.  Bizarrely including e.g.

    play_bad: bool = False
2022-12-08 11:29:49 +00:00
A_D
f160acfe57
add configs for switching platforms 2022-01-26 18:51:49 +02:00
Athanasius
f5fad1c23d Add .mypy.ini and .pre-commit-config.yaml files
* With mypy we need to set some options for sane output.
* With pre-commit this defines the checks it performs.
2020-09-28 11:16:25 +01:00