Skip to content

Commit

Permalink
fix: Reinstate pytest.ini
Browse files Browse the repository at this point in the history
Turns out Pytest doesn't support log-format specification in setup.cfg declarations. See pytest-dev/pytest#3062.
  • Loading branch information
sondrelg committed Dec 13, 2021
1 parent 1f6db19 commit d1b8b0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
DJANGO_SETTINGS_MODULE = demoproj.settings
log_cli_format = %(levelname)s %(asctime)s [%(correlation_id)s] %(name)s %(message)s
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ exclude =
venv,
manage.py


max-complexity = 15

[mypy]
Expand All @@ -68,4 +67,5 @@ ignore_errors = True

[tool:pytest]
DJANGO_SETTINGS_MODULE = demoproj.settings
log_cli=True
log_cli_format = %(levelname)s %(asctime)s [%(correlation_id)s] %(name)s %(message)s

0 comments on commit d1b8b0b

Please sign in to comment.