Skip to content

Commit

Permalink
Chore: Renamed tests file, added pytest to pyproject file
Browse files Browse the repository at this point in the history
  • Loading branch information
lordsarcastic committed Jan 24, 2024
1 parent 5695f77 commit 4de1f6c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ shell:
@docker compose run --rm app python manage.py shell

test:
@docker compose run --rm app py.test
@docker compose run --rm app py.test tests

testcase:
@docker compose run --rm app py.test $(test)
Expand Down
2 changes: 0 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,3 @@ class GeneralSettings(BaseSettings):
SIMPLE_JWT = {
"AUTH_HEADER_TYPES": ("JWT",),
}

EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
39 changes: 16 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
[tool.black]
line-length = 79
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
)/
'''

[tool.isort]
skip = [".gitignore", ".dockerignore"]
skip_glob = ["*/dist/*", "*/migrations/*"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
pythonpath = ["src", "tests"]
python_files = [
"test_*.py",
"*_test.py",
"testing/python/*.py"
]
norecursedirs = [
"scripts",
"node_modules",
"py-requirements",
"webpack",
".*",
"{args}"
]


[tool.ruff]
Expand Down
File renamed without changes.

0 comments on commit 4de1f6c

Please sign in to comment.