-
Notifications
You must be signed in to change notification settings - Fork 1
Various improvements to pyproject toml #23
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
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 |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ on: | |
| push: | ||
| branches: | ||
| - master | ||
| - main | ||
| pull_request: | ||
|
|
||
| jobs: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,12 +18,12 @@ keywords = [] | |
| requires-python = ">=3.12" | ||
| dependencies = [] | ||
|
|
||
| [project.optional-dependencies] | ||
| test = ["pytest>=8.4.2", "pytest-cov>=6.3.0", "pytest-sugar>=1.1.1"] | ||
|
|
||
|
Comment on lines
+21
to
+23
Member
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 need to do a bit of googling on this. I've automatically been using uv's |
||
| [project.urls] | ||
| homepage = "https://github.com/nens/{{ cookiecutter.project_name }}" | ||
|
|
||
| [tool.pytest.ini_options] | ||
| addopts = "--cov --cov-fail-under=80" | ||
|
|
||
|
Comment on lines
-24
to
-26
Member
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. Good one. I had forgotten that it breaks vscode.
Member
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'm adding a comment to mostly fix this: https://github.com/nens/cookiecutter-python-template/pull/25/files#diff-fc2fadee46a6a3ade3b8d0faee076978577745ccba23a0b1fb8f6483d0fa8b2c |
||
| [tool.zest-releaser] | ||
| release = false | ||
|
|
||
|
|
@@ -38,13 +38,14 @@ select = ["E4", "E7", "E9", "F", "I", "UP", "C901"] | |
| [tool.ruff.lint.isort] | ||
| known-first-party = ["{{ cookiecutter.package_name }}"] | ||
|
|
||
|
|
||
| [tool.ruff.lint.per-file-ignores] | ||
| "__init__.py" = ["F401", "F403"] | ||
|
Comment on lines
+42
to
+43
Member
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'd prefer not to have it in the basic template. It is fine for properly build and maintained APIs, but advisors will also use this template and they have the tendency to make an unholy mess with Easy to enable/add for individual projects that need it.
Member
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. Documented it in nens/nens-meta@3a9fa0c |
||
|
|
||
| [tool.pyright] | ||
| # Pyright/pylance/vscode configuration. | ||
| # Note: if you want a different setup, you can overwrite this with a | ||
| # "pyrightconfig.json", which takes precedence. | ||
| include = "src" | ||
| venvPath = "." | ||
| venv = ".venv" | ||
|
|
||
| [dependency-groups] | ||
| dev = ["pytest>=8.4.2", "pytest-cov>=6.3.0", "pytest-sugar>=1.1.1"] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually want to remove the whole
test.yml, I accidentally left that one in. The basicnens-meta.ymlcovers a quick pytest call.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in #25