-
Notifications
You must be signed in to change notification settings - Fork 177
Better handling of linting/packaging dependencies #680
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,7 @@ wheel = "wheel._commands:main" | |
| bdist_wheel = "wheel.bdist_wheel:bdist_wheel" | ||
|
|
||
| [dependency-groups] | ||
| lint = ["pre-commit"] | ||
| test = [ | ||
| "packaging >= 26.0", | ||
| "pytest >= 6.0.0", | ||
|
|
@@ -121,6 +122,7 @@ mypy-init-return = true | |
|
|
||
| [tool.tox] | ||
| env_list = ["py39", "py310", "py311", "py312", "py313", "py314", "pypy3", "lint", "pkg"] | ||
| requires = ["tox>=4.22"] | ||
| skip_missing_interpreters = true | ||
|
|
||
| [tool.tox.env_run_base] | ||
|
|
@@ -131,11 +133,9 @@ dependency_groups = ["test"] | |
| set_env = { PYTHONWARNDEFAULTENCODING = "1" } | ||
|
|
||
| [tool.tox.env.lint] | ||
| depends = [] | ||
| deps = ["pre-commit"] | ||
| dependency_groups = "lint" | ||
| package = "skip" | ||
| commands = [["pre-commit", "run", "-a"]] | ||
|
|
||
| [tool.tox.env.pkg] | ||
| deps = ["build", "flit >= 3.8"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you actually test this? I did, and it breaks the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll have to test again. I thought tox would install the build system automatically. I'll have to investigate how to achieve that. Is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| commands = [["pytest", "tests/test_sdist.py", { replace = "posargs", extend = true }]] | ||
Uh oh!
There was an error while loading. Please reload this page.