From aceb9d7c50373136ff536bfb9574cf4ed27dab6f Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Sun, 16 Oct 2022 13:59:31 -0400 Subject: [PATCH] Boilerplate updates --- .readthedocs.yaml | 14 ++++++++++++++ .readthedocs.yml | 11 ----------- setup.cfg | 17 +++++++++-------- tox.ini | 32 ++++++++++++++++---------------- 4 files changed, 39 insertions(+), 35 deletions(-) create mode 100644 .readthedocs.yaml delete mode 100644 .readthedocs.yml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..81d1187 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,14 @@ +version: 2 +formats: all +python: + install: + - requirements: docs/requirements.txt + - method: pip + path: . +build: + os: ubuntu-22.04 + tools: + python: "3" +sphinx: + configuration: docs/conf.py + fail_on_warning: true diff --git a/.readthedocs.yml b/.readthedocs.yml deleted file mode 100644 index 0415e0d..0000000 --- a/.readthedocs.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: 2 -formats: all -python: - version: 3 - install: - - requirements: docs/requirements.txt - - method: pip - path: . -sphinx: - configuration: docs/conf.py - fail_on_warning: true diff --git a/setup.cfg b/setup.cfg index 5ee5b43..bb40a14 100644 --- a/setup.cfg +++ b/setup.cfg @@ -91,17 +91,18 @@ versioningit.onbuild = replace-version = versioningit.onbuild:replace_version_onbuild [mypy] +allow_incomplete_defs = False +allow_untyped_defs = False ignore_missing_imports = True -disallow_untyped_defs = True -disallow_incomplete_defs = True +# : no_implicit_optional = True -warn_redundant_casts = True -warn_return_any = True -warn_unreachable = True +implicit_reexport = False local_partial_types = True -no_implicit_reexport = True -strict_equality = True +pretty = True show_error_codes = True show_traceback = True -pretty = True +strict_equality = True +warn_redundant_casts = True +warn_return_any = True +warn_unreachable = True exclude = test/data/ diff --git a/tox.ini b/tox.ini index 638adc2..1d83ec9 100644 --- a/tox.ini +++ b/tox.ini @@ -6,26 +6,26 @@ minversion = 3.3.0 [testenv] deps = - build~=0.7 # Must be a version that builds wheels from sdists + build>=0.7 # Must be a version that builds wheels from sdists setuptools>=42 pip - pydantic~=1.8 - pytest~=7.0 - pytest-cov~=3.0 - pytest-mock~=3.0 + pydantic + pytest + pytest-cov + pytest-mock wheel commands = pytest {posargs:-v} test [testenv:py-oldsetup] deps = - build~=0.7 # Must be a version that builds wheels from sdists + build>=0.7 # Must be a version that builds wheels from sdists setuptools<64 pip - pydantic~=1.8 - pytest~=7.0 - pytest-cov~=3.0 - pytest-mock~=3.0 + pydantic + pytest + pytest-cov + pytest-mock wheel commands = pytest {posargs:-v} test @@ -33,16 +33,16 @@ commands = [testenv:lint] skip_install = True deps = - flake8~=4.0 + flake8 flake8-bugbear - flake8-builtins~=1.4 + flake8-builtins flake8-unused-arguments commands = flake8 src test [testenv:typing] deps = - mypy~=0.900 + mypy types-setuptools {[testenv]deps} commands = @@ -81,11 +81,11 @@ exclude_lines = doctests = True exclude = .*/,build/,dist/,test/data,venv/ hang-closing = False -max-doc-length = 80 +max-doc-length = 100 max-line-length = 80 unused-arguments-ignore-stub-functions = True -select = C,B,B902,B950,E,E242,F,I,U100,W -ignore = B005,E203,E262,E266,E501,I201,W503 +select = C,B,B902,B950,E,E242,F,U100,W +ignore = B005,E203,E262,E266,E501,W503 [isort] atomic = True