Skip to content

Commit

Permalink
centralize tools config in pyproject.toml (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
dulmandakh authored Aug 26, 2024
1 parent 9fceef1 commit e1cfb4c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
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

0 comments on commit e1cfb4c

Please sign in to comment.