-
Notifications
You must be signed in to change notification settings - Fork 63
chore: Update dev/test environment #412
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
29 commits
Select commit
Hold shift + click to select a range
0a376a9
update dev container
DaveSkender fcab0c4
fix: editor config and git attributes
DaveSkender eac4ec0
code cleanup with settings
DaveSkender a3f6d09
simplify settings and setup
DaveSkender afff24a
add benchmark test marker and rename test quote defs
DaveSkender ca887bd
update test and lint settings
DaveSkender 50939f6
separate localization and coverage test jobs
DaveSkender 1928255
refactor GitHub Actions workflows, fix localation
DaveSkender e4a6fe6
update localization tests
DaveSkender 9e26bdd
update docs website actions
DaveSkender d205047
temp remove macOS, locales from test runner
DaveSkender 4490693
update doc site packages
DaveSkender e339d8a
update a11y test config
DaveSkender 4a92a87
tweak Linux locale setup
DaveSkender 9fe9ffd
update markdown rules
DaveSkender b5d7f3e
allow workflows to be manual
DaveSkender 7a6430d
improve locale setup error handline
DaveSkender 29fc65b
simplify locale test runner (temp)
DaveSkender e3b3739
add `act` GitHub Actions emulator
DaveSkender c652625
setup local GH Action runner (partially)
DaveSkender 71f4906
Update config and workflow formatting
DaveSkender 2cdb930
Merge branch 'main' into update-dev-container
DaveSkender 0104c9e
update dotnet in dev container
DaveSkender be40d0b
code cleanup
DaveSkender d43bdad
simpler extensions
DaveSkender e8abb5b
update docs
DaveSkender 82cb22c
Merge branch 'main' into update-dev-container
DaveSkender 8022c8d
fix typo in tasks.json
DaveSkender 10c13ab
fix: launch, tasks configurations
DaveSkender 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,73 @@ | ||
| /* CONTAINER for Python Development | ||
| * references: | ||
| * » https://containers.dev/implementors/json_reference | ||
| * » https://github.com/devcontainers/features/tree/main/src | ||
| * » https://code.visualstudio.com/docs/remote/containers | ||
| * » https://github.com/devcontainers/images/blob/main/src/python | ||
| * | ||
| * » F1 > Dev Containers: Rebuild Container | ||
| */ | ||
| { | ||
| "name": "Python Dev Container", | ||
| "image": "mcr.microsoft.com/vscode/devcontainers/python:3.9", | ||
| "settings": { | ||
| "terminal.integrated.shell.linux": "/bin/bash" | ||
| "name": "Stock Indicators for Python", | ||
| "image": "mcr.microsoft.com/devcontainers/python:3.12", | ||
| "forwardPorts": [], | ||
| "remoteUser": "vscode", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/git:1": { | ||
| "version": "os-provided" | ||
| }, | ||
| "ghcr.io/devcontainers/features/dotnet:2": { | ||
| "version": "lts" | ||
| }, | ||
| "ghcr.io/devcontainers/features/node:1": { | ||
| "version": "lts", | ||
| "pnpmVersion": "none", | ||
| "nvmVersion": "none" | ||
| }, | ||
| "ghcr.io/devcontainers/features/github-cli:1": { | ||
| "installDirectlyFromGitHubRelease": true, | ||
| "version": "latest" | ||
| }, | ||
| "ghcr.io/devcontainers/features/azure-cli:1": { | ||
| "version": "latest" | ||
| }, | ||
| "ghcr.io/devcontainers/features/ruby:1": { | ||
| "version": "3.3" | ||
| }, | ||
| "ghcr.io/devcontainers-extra/features/isort:2": { | ||
| "version": "latest" | ||
| }, | ||
| "ghcr.io/devcontainers-extra/features/pylint:2": { | ||
| "version": "latest" | ||
| } | ||
| }, | ||
| "extensions": [ | ||
| "ms-python.python", | ||
| "ms-python.vscode-pylance", | ||
| "ms-python.flake8", | ||
| "ms-python.black-formatter", | ||
| "ms-python.isort", | ||
| "ms-toolsai.jupyter", | ||
| "eamodio.gitlens", | ||
| "esbenp.prettier-vscode", | ||
| "dbaeumer.vscode-eslint", | ||
| "github.copilot", | ||
| "ms-vscode-remote.remote-containers" | ||
| ], | ||
| "postCreateCommand": "pip install -r requirements.txt -r requirements-test.txt", | ||
| "workspaceFolder": "/workspace", | ||
| "tasks": { | ||
| "build": "pip install -r requirements.txt && pip install -r requirements-test.txt", | ||
| "test": "pytest -vr A tests -m \"not locale_specific\"" | ||
| } | ||
| // Use 'settings' to set *default* container specific settings.json | ||
| // values on container create. | ||
| "customizations": { | ||
| "vscode": { | ||
| // container overrides only | ||
| // otherwise use .vscode/settings.json | ||
| "settings": { | ||
| "pylint.importStrategy": "fromEnvironment", | ||
| "python.defaultInterpreterPath": "/usr/local/bin/python" | ||
| }, | ||
| // required extensions | ||
| // for recommended, see .vscode/extensions.json | ||
| "extensions": [ | ||
| "donjayamanne.python-extension-pack", | ||
| "DavidAnson.vscode-markdownlint", | ||
| "EditorConfig.EditorConfig", | ||
| "ms-python.black-formatter", | ||
| "ms-python.debugpy", | ||
| "ms-python.isort", | ||
| "ms-python.python", | ||
| "ms-python.pylint", | ||
| "ms-python.vscode-pylance" | ||
| ] | ||
| } | ||
| }, | ||
| // Runs after the container is created | ||
| "postCreateCommand": "chmod +x .devcontainer/setup.sh && .devcontainer/setup.sh", | ||
| // Runs every time the container starts | ||
| "postStartCommand": "echo 'Container started'" | ||
| } |
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,10 @@ | ||
| #!/bin/bash | ||
|
|
||
| # install or upgrade pip | ||
| python -m ensurepip --upgrade | ||
|
|
||
| # install core dependencies | ||
| pip install -r requirements.txt | ||
|
|
||
| # install test dependencies | ||
| pip install -r requirements-test.txt |
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 |
|---|---|---|
|
|
@@ -129,7 +129,6 @@ dmypy.json | |
|
|
||
| # personal editor configs | ||
| .vs | ||
| .vscode | ||
|
|
||
| # Jekyll site | ||
| _site/ | ||
|
|
||
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,13 @@ | ||
| { | ||
| "recommendations": [ | ||
| "donjayamanne.python-extension-pack", | ||
| "DavidAnson.vscode-markdownlint", | ||
| "EditorConfig.EditorConfig", | ||
| "ms-python.black-formatter", | ||
| "ms-python.debugpy", | ||
| "ms-python.isort", | ||
| "ms-python.python", | ||
| "ms-python.pylint", | ||
| "ms-python.vscode-pylance" | ||
| ] | ||
| } |
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,38 @@ | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Python: Debug File", | ||
| "type": "debugpy", | ||
| "request": "launch", | ||
| "program": "${file}", | ||
| "console": "integratedTerminal", | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| { | ||
| "name": "Python: Run Tests", | ||
| "type": "debugpy", | ||
| "request": "launch", | ||
| "module": "pytest", | ||
| "console": "integratedTerminal", | ||
| "args": ["-svr", "A"], | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| { | ||
| "name": "Python: Debug Current Test File", | ||
| "type": "debugpy", | ||
| "request": "launch", | ||
| "module": "pytest", | ||
| "console": "integratedTerminal", | ||
| "args": ["-svr", "A", "${file}"], | ||
| "cwd": "${workspaceFolder}" | ||
| } | ||
| ], | ||
| "inputs": [ | ||
| { | ||
| "type": "promptString", | ||
| "id": "programPath", | ||
| "description": "Path to the Python file you want to debug" | ||
| } | ||
| ] | ||
| } |
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,34 @@ | ||
| { | ||
| "isort.args": [ | ||
| "--profile", | ||
| "black" | ||
| ], | ||
| "isort.check": true, | ||
| "isort.importStrategy": "fromEnvironment", // default: "useBundled" | ||
| "markdownlint.config": { | ||
| "default": true, // Enable all default rules | ||
| "MD013": false, // Disable line length checking entirely | ||
| "MD025": false, // Allow multiple top level headers in the same document | ||
| "MD033": { // Allow specific HTML elements | ||
| "allowed_elements": [ | ||
| "details", | ||
| "summary", | ||
| "h1" // we use h1 as a Jekyll-y page title | ||
| ] | ||
| }, | ||
| "MD041": false // Allow content before first heading | ||
| }, | ||
| "pylint.importStrategy": "fromEnvironment", // default: "useBundled" | ||
| "python.testing.pytestArgs": [ | ||
| "tests" | ||
| ], | ||
| "python.testing.pytestEnabled": true, | ||
| "python.testing.unittestEnabled": false, | ||
| "[markdown]": { | ||
| "editor.defaultFormatter": "DavidAnson.vscode-markdownlint", | ||
| "files.trimTrailingWhitespace": true | ||
| }, | ||
| "[python]": { | ||
| "editor.defaultFormatter": "ms-python.black-formatter" | ||
| } | ||
| } |
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,47 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "label": "build", | ||
| "type": "shell", | ||
| "command": "pip install -r requirements.txt && pip install -r requirements-test.txt", | ||
| "group": "build", | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: Unit (default)", | ||
| "type": "shell", | ||
| "command": "pytest -vr A", | ||
| "group": "test", | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: Performance", | ||
| "type": "shell", | ||
| "command": "pytest -m performance", | ||
| "group": "none", | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: Localization", | ||
| "type": "shell", | ||
| "command": "pytest -m localization -vr A", | ||
| "group": "none", | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: All", | ||
| "type": "shell", | ||
| "command": "pytest -m \"\"", | ||
| "group": "none", | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Test: Coverage", | ||
| "type": "shell", | ||
| "command": "pytest --cov=stock_indicators --cov-report=term-missing", | ||
| "group": "none", | ||
| "problemMatcher": [] | ||
| } | ||
| ] | ||
| } | ||
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
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.