-
Notifications
You must be signed in to change notification settings - Fork 12
Update copier template #1809
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
Update copier template #1809
Changes from 6 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f1f168c
Update copier template
jacob720 503663a
Update uv.lock
jacob720 a62db70
Update lock requirements docs
jacob720 4092135
Fixes
jacob720 45d796d
Increase time allowed for system tests
jacob720 b97fd35
Remove dev test check
jacob720 c815eec
Update run tests docs to document system test bear trap
rtuck99 d7fefe1
Extend timeouts for test_cli system test
rtuck99 dea9479
Update dev-install.md
jacob720 1b6979c
Update docs
jacob720 8cd6273
Only run unit tests with uv run tox -e tests
jacob720 e161801
Add timing report in unit tests tox command
jacob720 f82d163
Update uv.lock
jacob720 14899d9
Re-add line
jacob720 2c4e240
Use pytest-timeout for test timing
jacob720 da867c8
PR comments
jacob720 66f1dba
Increase timeout for system tests
jacob720 3795040
Fixes
jacob720 e0f4478
Add option to use different python for tox command
jacob720 38a9bd2
Fix virtualenv resolution for pyright
rtuck99 9aa2147
Merge branch 'main' into 1807_update_copier_template
jacob720 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,19 @@ | ||
| # Changes here will be overwritten by Copier | ||
| _commit: 4.0.1 | ||
| _commit: 5.0.1 | ||
| _src_path: https://github.com/DiamondLightSource/python-copier-template | ||
| author_email: dominic.oram@diamond.ac.uk | ||
| author_name: Dominic Oram | ||
| component_lifecycle: production | ||
| component_owner: group:data-acquisition | ||
| component_type: library | ||
| description: Ophyd devices and other utils that could be used across DLS beamlines | ||
| distribution_name: dls-dodal | ||
| distribution_name: dls-dodal # Can change to dodal https://github.com/DiamondLightSource/dodal/issues/681 | ||
| docker: false | ||
| docs_type: sphinx | ||
| git_platform: github.com | ||
| github_org: DiamondLightSource | ||
| package_name: dodal | ||
| pypi: true | ||
| repo_name: dodal | ||
| strict_typing: false | ||
| strict_typing: false # Should move to strict typing in future | ||
| type_checker: pyright |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,19 @@ | ||
| # This allow-list is limited to YAML/YML files to cut down SealedSecrets false positives. | ||
| # All gitleaks default rules still apply everywhere (useDefault = true). | ||
| # To broaden this allow-list to all files, comment out the 'paths' line below. | ||
|
|
||
| [extend] | ||
| useDefault = true | ||
|
|
||
| [[rules]] | ||
| id = "generic-api-key" | ||
|
|
||
| # Pattern-only allowlist for long Ag… tokens in YAML | ||
| [[rules.allowlists]] | ||
| condition = "AND" | ||
| regexes = [ | ||
| # Boundary-safe Ag… token without lookarounds (RE2-safe) | ||
| '''(?:^|[^A-Za-z0-9+/=])(Ag[A-Za-z0-9+/]{500,}={0,2})(?:[^A-Za-z0-9+/=]|$)''' | ||
| ] | ||
| # Limit to YAML only for now. Comment this out if you want it to apply everywhere. | ||
| paths = ['''(?i).*\.ya?ml$'''] |
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 @@ | ||
| 3.11 |
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 |
|---|---|---|
| @@ -1,13 +1,8 @@ | ||
| # The devcontainer should use the developer target and run as root with podman | ||
| # or docker with user namespaces. | ||
| ARG PYTHON_VERSION=3.11 | ||
| FROM python:${PYTHON_VERSION} AS developer | ||
| FROM ghcr.io/diamondlightsource/ubuntu-devcontainer:noble AS developer | ||
|
|
||
| # Add any system dependencies for the developer/build environment here | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| RUN apt-get update -y && apt-get install -y --no-install-recommends \ | ||
| graphviz \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Set up a virtual environment and put it in PATH | ||
| RUN python -m venv /venv | ||
| ENV PATH=/venv/bin:$PATH | ||
| && apt-get dist-clean |
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.