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

centralize tools config in pyproject.toml #1463

Merged
merged 1 commit into from
Aug 26, 2024
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
20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,26 @@ check-hidden = true
ignore-regex = '.*pragma: codespell-ignore.*'
ignore-words-list = 'assertIn'

[tool.coverage.run]
source = ["oauth2_provider"]
omit = ["*/migrations/*"]

[tool.coverage.report]
show_missing = true

[tool.pytest.ini_options]
django_find_project = false
addopts = [
"--cov=oauth2_provider",
"--cov-report=",
"--cov-append",
"-s"
]
markers = [
"oauth2_settings: Custom OAuth2 settings to use - use with oauth2_settings fixture",
"nologinrequiredmiddleware",
]

[tool.ruff]
line-length = 110
exclude = [".tox", "build/", "dist/", "docs/", "oauth2_provider/migrations/", "tests/migrations/", "manage.py"]
Expand Down
18 changes: 0 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ DJANGO =
5.1: dj51
main: djmain

[pytest]
django_find_project = false
addopts =
--cov=oauth2_provider
--cov-report=
--cov-append
-s
markers =
oauth2_settings: Custom OAuth2 settings to use - use with oauth2_settings fixture
nologinrequiredmiddleware

[testenv]
commands =
pytest {posargs}
Expand Down Expand Up @@ -124,10 +113,3 @@ commands =
rm -rf dist
python -m build
twine check dist/*

[coverage:run]
source = oauth2_provider
omit = */migrations/*

[coverage:report]
show_missing = True
Loading