~jugmac00/launchpad:run-mypy-via-tox

Last commit made on 2022-08-05
Get this branch:
git clone -b run-mypy-via-tox https://git.launchpad.net/~jugmac00/launchpad
Only Jürgen Gmach can upload to this branch. If you are Jürgen Gmach please log in for upload directions.

Branch merges

Branch information

Name:
run-mypy-via-tox
Repository:
lp:~jugmac00/launchpad

Recent commits

75bb0d2... by Jürgen Gmach

Run mypy via tox

You can run now the mypy checker via

```
tox -e mypy
```

Currently, this command runs the mypy checks on `lp.answers`. In future
we can add more subpackages to the list once they pass.

If you want to lint another subpackage, e.g. `lp.bugs`, you have to run

```
tox -e mypy -- lib/lp/bugs
```

Please note that you cannot run tox from within the LXC container on
Xenial as the available mypy version has issues with finding Python
files (recursion does not work properly).

Additionally, this commit fixes issues reported by mypy in lp.answers.

078d29d... by Andrey Fedoseev

Prepare some packages for type checking with `mypy`:

- lp.answers
- lp.app
- lp.archivepublisher
- lp.archiveuploader
- lp.blueprints
- lp.bugs

Merged from https://code.launchpad.net/~andrey-fedoseev/launchpad/+git/launchpad/+merge/425377

29b4325... by Ioana Lasc

Add a properties attribute to RevisionStatusReport

Merged from https://code.launchpad.net/~ilasc/launchpad/+git/launchpad/+merge/427821

31ad39a... by Ioana Lasc

Remove value_type for properties

87bb504... by Ioana Lasc

Merge db-stable f9f2c14a37 (Add jsonb column to RevisionStatusReport)

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/427907

1d00148... by Andrey Fedoseev

Sort the `tool.mypy.overrides` items alphabetically

8c3c359... by Andrey Fedoseev

Fix `mypy` errors in `lp.blueprints` package

8c6de64... by Andrey Fedoseev

Fix `mypy` errors in `lp.archiveuploader` package

551507a... by Andrey Fedoseev

Fix `mypy` errors in `lp.archivepublisher` package

1406108... by Andrey Fedoseev

Fix `mypy` errors in `lp.app` package