-
Notifications
You must be signed in to change notification settings - Fork 92
Chore/dev env fixes #1279
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: pre/v2.0
Are you sure you want to change the base?
Chore/dev env fixes #1279
Changes from all commits
b3b712b
a506d40
88ca4dc
a30d41b
d631b8b
f45e7c8
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 |
|---|---|---|
| @@ -1,56 +1,7 @@ | ||
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
| // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose | ||
| { | ||
| "name": "Existing Docker Compose (Extend)", | ||
| // Update the 'dockerComposeFile' list if you have more compose files or use different names. | ||
| // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. | ||
| "dockerComposeFile": [ | ||
| "../docker-compose.yaml", | ||
| "docker-compose.yml" | ||
| ], | ||
| // The 'service' property is the name of the service for the container that VS Code should | ||
| // use. Update this value and .devcontainer/docker-compose.yml to the real service name. | ||
| "service": "app", | ||
| // The optional 'workspaceFolder' property is the path VS Code should open by default when | ||
| // connected. This is typically a file mount in .devcontainer/docker-compose.yml | ||
| "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
| // Features to add to the dev container. More info: https://containers.dev/features. | ||
| // "features": {}, | ||
| // Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
| "forwardPorts": [ | ||
| 80, | ||
| 443, | ||
| 3306, | ||
| 8080, | ||
| 9000 | ||
| ], | ||
| "mounts": [ | ||
| "type=bind,source=${env:SSH_AUTH_SOCK},target=/ssh-agent" | ||
| ], | ||
| "containerEnv": { | ||
| "SSH_AUTH_SOCK": "/ssh-agent" | ||
| }, | ||
| // Uncomment the next line if you want start specific services in your Docker Compose config. | ||
| // "runServices": [], | ||
| // Uncomment the next line if you want to keep your containers running after VS Code shuts down. | ||
| "shutdownAction": "stopCompose", | ||
| "onCreateCommand": "python3 -m pip install -q -e .[dev]", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/git:1": {}, | ||
| "ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
| "ghcr.io/devcontainers/features/github-cli:1": {}, | ||
| }, | ||
| // Configure tool-specific properties. | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "ms-python.python" | ||
| ] | ||
| } | ||
| }, | ||
| "remoteEnv": { | ||
| "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" | ||
| } | ||
| // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. | ||
| // "remoteUser": "devcontainer" | ||
| } | ||
| "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
| }, | ||
| "postCreateCommand": "curl -fsSL https://pixi.sh/install.sh | bash && echo 'export PATH=\"$HOME/.pixi/bin:$PATH\"' >> ~/.bashrc" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ repos: | |
| rev: 25.1.0 # matching versions in pyproject.toml and github actions | ||
| hooks: | ||
| - id: black | ||
| args: ["--check", "-v", "src", "tests", "--diff"] # --required-version is conflicting with pre-commit | ||
| args: ["-v", "src", "tests", "--diff"] # --required-version is conflicting with pre-commit | ||
|
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. makes pre-commit much more useful by applying the formatting changes |
||
| - repo: https://github.com/PyCQA/flake8 | ||
| rev: 7.3.0 | ||
| hooks: | ||
|
|
@@ -50,7 +50,6 @@ repos: | |
| - --max-complexity=62 | ||
| - --max-line-length=127 | ||
| - --statistics | ||
| - --per-file-ignores=datajoint/diagram.py:C901 | ||
| files: src/ # a lot of files in tests are not compliant | ||
| - repo: https://github.com/rhysd/actionlint | ||
| rev: v1.7.7 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #! /usr/bin/bash | ||
| # This script registers dot plugins so that we can use graphviz | ||
| # to write png images | ||
| dot -c | ||
|
Comment on lines
+1
to
+4
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. the |
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ dependencies = [ | |
| "urllib3", | ||
| "setuptools", | ||
| ] | ||
| requires-python = ">=3.9,<4.0" | ||
| requires-python = ">=3.9,<3.14" | ||
|
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. linux tests fail on python 3.14 due to attempts to pickle things that should not be pickled (locks). Fixing this architecturally requires quite a bit more work so we avoid python 3.14 for now.
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. 3.9 has reached its end of life.
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. 👍 then lets move to 3.11
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. as a lower bound |
||
| authors = [ | ||
| {name = "Dimitri Yatsenko", email = "[email protected]"}, | ||
| {name = "Thinh Nguyen", email = "[email protected]"}, | ||
|
|
@@ -125,7 +125,7 @@ JUPYTER_PASSWORD="datajoint" | |
|
|
||
| [tool.pixi.workspace] | ||
| channels = ["conda-forge"] | ||
| platforms = ["linux-64"] | ||
| platforms = ["linux-64", "osx-arm64", "linux-aarch64"] | ||
|
|
||
| [tool.pixi.pypi-dependencies] | ||
| datajoint = { path = ".", editable = true } | ||
|
|
@@ -138,4 +138,8 @@ test = { features = ["test"], solve-group = "default" } | |
| [tool.pixi.tasks] | ||
|
|
||
| [tool.pixi.dependencies] | ||
| python = ">=3.9,<3.14" | ||
| graphviz = ">=13.1.2,<14" | ||
|
|
||
| [tool.pixi.activation] | ||
| scripts=["activate.sh"] | ||
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.
we just need pixi and docker now
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.
nodejs is in here for LLM tooling, we can remove if that's not needed