Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module template retrofit: Update tox.ini with result of templating (some old jobs are preserved) #141

Merged
merged 2 commits into from
Dec 30, 2021
Merged
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
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
check_untyped_defs = True
scripts_are_modules = True

# TODO The tests currently do not pass Mypy.
# Don't forget to update tox.ini when they do!
files =
ldap_auth_provider.py

Expand Down
25 changes: 23 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[tox]
envlist = packaging, pep8, py35, py36, py37, py38
isolated_build = True
envlist = packaging, pep8, py35, py36, py37, py38, check_codestyle, check_types

# required for PEP 517 (pyproject.toml-style) builds
isolated_build = true

[testenv]
deps =
Expand All @@ -23,6 +25,7 @@ commands =
check-manifest

[testenv:pep8]
# Temporary, for backwards compatibility with the BuildKite pipelines
skip_install = True
basepython = python3.5
deps =
Expand All @@ -40,3 +43,21 @@ deps =
commands =
coverage xml
codecov -X gcov

[testenv:check_codestyle]

extras = dev

commands =
flake8 ldap_auth_provider.py tests
black --check --diff ldap_auth_provider.py tests
isort --check-only --diff ldap_auth_provider.py tests

[testenv:check_types]

extras = dev

commands =
# mypy ldap_auth_provider.py tests
# tests currently do not pass
mypy ldap_auth_provider.py