From 3ac4a1dd466cf20cef71bc7131f6c6e76ce601b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pr=C3=BCsse?= Date: Thu, 24 Feb 2022 18:20:10 -0300 Subject: [PATCH 1/6] Add mypy pre-commit hook --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8e95c0..ed2eb7c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,10 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.931 + hooks: + - id: mypy - repo: local hooks: - id: rst From bfa8aeb93baff86a949a9a84d5173799e0647d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pr=C3=BCsse?= Date: Thu, 24 Feb 2022 18:25:27 -0300 Subject: [PATCH 2/6] Change precommit default python version to 3.7 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed2eb7c..637c20d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ default_language_version: - python: python3.6 + python: python3.7 repos: - repo: https://github.com/psf/black rev: 22.1.0 From 88638a3e4625b07cb06615bf8fb948833a6cfc16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pr=C3=BCsse?= Date: Thu, 24 Feb 2022 18:26:32 -0300 Subject: [PATCH 3/6] Remove python 3.6 from build matrix --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c9d91cf..ef89ef0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,11 +10,9 @@ jobs: strategy: fail-fast: false matrix: - tox_env: ["py36", "py37", "py38", "py39", "py310"] + tox_env: ["py37", "py38", "py39", "py310"] os: [ubuntu-latest, windows-latest] include: - - tox_env: "py36" - python: "3.6" - tox_env: "py37" python: "3.7" - tox_env: "py38" From 52417d640104ebf47329778a71a5c93c9a1096fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pr=C3=BCsse?= Date: Thu, 24 Feb 2022 18:28:49 -0300 Subject: [PATCH 4/6] Add types-PyYAML to mypy hook requiments --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 637c20d..d48c183 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,7 @@ repos: rev: v0.931 hooks: - id: mypy + additional_dependencies: [types-PyYAML] - repo: local hooks: - id: rst From 95e610b4d28220318c4f99a2dcbf711b3cf7775d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pr=C3=BCsse?= Date: Fri, 4 Mar 2022 16:31:16 -0300 Subject: [PATCH 5/6] Fix type hints --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 84d1973..d001559 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,6 +15,7 @@ import sys import os +from typing import Dict # If extensions (or modules to document with autodoc) are in another # directory, add these directories to sys.path here. If the directory is @@ -193,7 +194,7 @@ # -- Options for LaTeX output ------------------------------------------ -latex_elements = { +latex_elements: Dict[str, str] = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). From 81c28950e8e8eecda5b29e2084c65e0423d41e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pr=C3=BCsse?= Date: Fri, 4 Mar 2022 16:33:05 -0300 Subject: [PATCH 6/6] Update setup.py (remove python 3.6) --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 86cf5a9..3605d4e 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,6 @@ "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9",