Skip to content

Commit

Permalink
Add py311
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Falk-Petersen committed Sep 26, 2024
1 parent b5cd09d commit c7ae945
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ venv
.vscode
__pycache__
venv
logs
logs
.tox
old
.mypy_cache
.pytest_cache
4 changes: 2 additions & 2 deletions sedr/schemat.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def after_call(context, case, response):
if response.request:
# Log calls with status
util.logger.debug(
f"after_call {'OK' if response.ok else 'ERR'} " + \
f"{response.request.path_url} {response.text[0:150]}"
f"after_call {'OK' if response.ok else 'ERR'} "
+ f"{response.request.path_url} {response.text[0:150]}"
)


Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist = unittest, black, prospector, bandit, py312
envlist = unittest, black, prospector, bandit, py{311,312}, markdown

# Tell tox to not require a setup.py file
skipsdist = True

[testenv]
[testenv]; This is called py312 in envlist
ignore_outcome = true
description = This is a live test against the API edrisobaric
deps =
Expand Down Expand Up @@ -34,6 +34,7 @@ commands = prospector --no-autodetect \
{toxinidir}/sedr/

[testenv:black]
ignore_outcome = true
description = Check code style
deps =
-r{toxinidir}/requirements.txt
Expand All @@ -55,7 +56,7 @@ deps =
-r{toxinidir}/requirements-dev.txt
commands = bandit -r --ini .bandit {toxinidir}/sedr/

[testenv:lint-md]
[testenv:markdown]
ignore_outcome = true
description = Lint README.md
commands = pymarkdown scan README.md
Expand Down

0 comments on commit c7ae945

Please sign in to comment.