Skip to content

Commit

Permalink
Boilerplate updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Oct 16, 2022
1 parent f2bdf77 commit aceb9d7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 35 deletions.
14 changes: 14 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 0 additions & 11 deletions .readthedocs.yml

This file was deleted.

17 changes: 9 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
# <https://github.com/python/mypy/issues/7773>:
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/
32 changes: 16 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,43 @@ 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

[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 =
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aceb9d7

Please sign in to comment.