Skip to content

Commit a2f0e98

Browse files
authored
Update mypy to 0.950, remove docs/requirements.txt (#1385)
* Update mypy to 0.950, remove docs/requirements.txt * Fix CI * Remove * from type tests * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI
1 parent d9a4dbc commit a2f0e98

98 files changed

Lines changed: 678 additions & 702 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ updates:
55
schedule:
66
interval: daily
77
open-pull-requests-limit: 10
8-
- package-ecosystem: pip
9-
directory: "/docs"
10-
schedule:
11-
interval: daily
12-
open-pull-requests-limit: 10
138
- package-ecosystem: github-actions
149
directory: "/"
1510
schedule:

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,23 @@ jobs:
5858
- name: Run tests
5959
run: |
6060
poetry run flake8 .
61+
6162
# In order to make `exclude` option work, we need to separate the checks
6263
# of returns and its tests into two separated commands
63-
poetry run mypy returns
64+
poetry run mypy --enable-error-code=unused-awaitable returns
6465
poetry run mypy tests
66+
6567
# Different python versions are covered differently:
6668
poetry run pytest returns docs/pages tests
69+
6770
poetry run doc8 -q docs
6871
poetry run codespell returns tests docs typesafety README.md CONTRIBUTING.md CHANGELOG.md
72+
6973
poetry run poetry check
7074
poetry run pip check
7175
poetry run safety check --full-report
7276
poetry run python -m slotscheck returns --verbose
77+
7378
# We do this to speed up the build:
7479
poetry run pytest typesafety -p no:cov -o addopts="" --mypy-ini-file=setup.cfg
7580

.readthedocs.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1+
# .readthedocs.yml
12
version: 2
23

3-
python:
4-
version: 3.8
5-
install:
6-
- requirements: docs/requirements.txt
4+
# Set the version of Python and other tools you might need
5+
build:
6+
os: ubuntu-20.04
7+
tools: {python: "3.9"}
8+
jobs:
9+
pre_create_environment:
10+
- asdf plugin add poetry
11+
- asdf install poetry latest
12+
- asdf global poetry latest
13+
- poetry config virtualenvs.create false
14+
post_install:
15+
- poetry install
716

17+
# Build documentation in the docs/ directory with Sphinx
818
sphinx:
919
configuration: docs/conf.py
1020
fail_on_warning: true

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# -- Project information -----------------------------------------------------
2020

21-
def _get_project_meta():
21+
def _get_project_meta() -> str:
2222
import tomlkit # noqa: WPS433
2323

2424
with open('../pyproject.toml') as pyproject:

docs/requirements.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)