-
Notifications
You must be signed in to change notification settings - Fork 4
chore: add tox.ini for local development #38
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d297bb4
chore: add tox.ini for local development
salman2013 5841a45
chore: make tox the source of truth for test commands
salman2013 264bc60
chore: replicate CI test matrix locally via tox dependency groups
salman2013 cdf3207
Merge remote-tracking branch 'origin/main' into salman/modernize-branch
salman2013 eef9f16
chore: align CI and tox config with XBlock's approach
salman2013 0151abc
chore: use changedir for docs tox env
salman2013 42f67bb
chore: fail CI on codecov errors and drop redundant doc conflict
salman2013 7a68dac
chore: update codecov-action pin to v6.0.2
salman2013 e411010
chore: explicitly pin py312 in tox envlist and Makefile test target
salman2013 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [tox] | ||
| envlist = py312-django{42,52}, lint, docs | ||
| requires = tox-uv>=1 | ||
|
|
||
| [testenv:lint] | ||
| runner = uv-venv-lock-runner | ||
| extras = dev | ||
| commands = | ||
| ruff check . | ||
| ruff format --check . | ||
|
|
||
| [testenv] | ||
| runner = uv-venv-lock-runner | ||
| dependency_groups = | ||
| django42: django42 | ||
| django52: test | ||
| commands = pytest --cov=src --cov-report=xml {posargs} | ||
|
|
||
| [testenv:docs] | ||
| runner = uv-venv-lock-runner | ||
| basepython = python3.12 | ||
| changedir = {toxinidir}/docs | ||
| dependency_groups = doc | ||
| allowlist_externals = make | ||
| commands = | ||
| make html |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.