Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ workflows:
- test-3.7
- test-3.6
- test-3.5
- test-3.4
- test-2.7
- test-pypy3
- test-pypy2
jobs:
test-3.9: &test-template
docker:
Expand All @@ -31,11 +28,16 @@ jobs:
command: |
. venv/bin/activate
pip install -e .[tests]
- run:
name: Typecheck
command: |
. venv/bin/activate
venv/bin/mypy -p smpplib
- run:
name: Run tests
command: |
. venv/bin/activate
pytest -v
pytest -v smpplib
test-3.8:
<<: *test-template
docker:
Expand All @@ -52,19 +54,7 @@ jobs:
<<: *test-template
docker:
- image: python:3.5-alpine
test-3.4:
<<: *test-template
docker:
- image: python:3.4-alpine
test-2.7:
<<: *test-template
docker:
- image: python:2.7-alpine
test-pypy3:
<<: *test-template
docker:
- image: pypy:3-slim
test-pypy2:
<<: *test-template
docker:
- image: pypy:2-slim
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

venv:
python -m venv venv

deps:
pip install -e .[tests]

typecheck:
. venv/bin/activate
venv/bin/mypy -p smpplib

test:
. venv/bin/activate
pytest -v smpplib
21 changes: 21 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[mypy]

strict_optional = True
no_implicit_optional = True
warn_unused_configs = True
strict_equality = True
warn_unused_ignores = True

check_untyped_defs = True

disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_decorators = True
disallow_any_generics = True

[mypy-smpplib/tests/*]

disallow_untyped_calls = False
disallow_untyped_defs = False
disallow_incomplete_defs = False
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
url='https://github.com/podshumok/python-smpplib',
description='SMPP library for python',
packages=find_packages(),
install_requires=['six'],
extras_require=dict(
tests=('pytest', 'mock'),
tests=('pytest', 'mock', 'mypy', 'types-mock'),
),
zip_safe=True,
classifiers=(
Expand Down
Loading