Skip to content

Commit 2533b2b

Browse files
Remove Pydantic (#109)
1 parent 3e4ae42 commit 2533b2b

File tree

7 files changed

+215
-755
lines changed

7 files changed

+215
-755
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.148.1/containers/python-3/.devcontainer/base.Dockerfile
2-
3-
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6
42
ARG VARIANT="3.11"
53
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
6-
7-
# [Option] Install Node.js
84
ARG INSTALL_NODE="true"
95
ARG NODE_VERSION="lts/*"
106
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
11-
127
USER vscode
138
RUN pip3 --disable-pip-version-check --no-cache-dir install -U \
149
'poetry==1.1.13' \
1510
'pip==22.1.2'
16-
17-
COPY poetry.* /tmp/pip-tmp/
18-
COPY pyproject.toml /tmp/pip-tmp/
19-
RUN cd /tmp/pip-tmp/ && /home/vscode/.local/bin/poetry install --no-root
2011
RUN npm install -g @devcontainers/[email protected]

.devcontainer/devcontainer.json

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,20 @@
66
"args": {
77
"VARIANT": "3.10",
88
"INSTALL_NODE": "true",
9-
"NODE_VERSION": "lts/*"
9+
"NODE_VERSION": "18.7"
1010
}
1111
},
12-
"settings": {
13-
"terminal.integrated.defaultProfile.linux": "zsh",
14-
"python.pythonPath": "/usr/local/bin/python",
15-
"python.linting.enabled": true,
16-
"python.linting.pylintEnabled": true,
17-
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
18-
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
19-
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
20-
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
21-
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
22-
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
23-
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
24-
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
25-
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
12+
"customizations": {
13+
"vscode": {
14+
"settings": {
15+
"terminal.integrated.defaultProfile.linux": "zsh",
16+
"python.pythonPath": "/usr/local/bin/python"
17+
},
18+
"extensions": [
19+
"ms-python.python"
20+
]
21+
}
2622
},
27-
"extensions": [
28-
"ms-python.python"
29-
],
3023
"features": {
3124
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
3225
},

.github/workflows/pytest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: Pytest
22
on:
3+
schedule:
4+
- cron: 0 13 * * 1 # Every Monday at 1PM UTC (9AM EST)
35
pull_request:
4-
6+
# test in containerised and OS environments
57
jobs:
68
test-container:
79
runs-on: ubuntu-22.04
810
steps:
911
- uses: actions/checkout@v2
1012
- run: npm install -g @devcontainers/[email protected]
1113
- run: devcontainer up --workspace-folder=.
12-
- run: devcontainer exec --workspace-folder=. pre-commit run --verbose --all-files
14+
- run: devcontainer exec --workspace-folder=. poetry run pre-commit run --verbose --all-files
1315
- run: devcontainer exec --workspace-folder=. poetry run pytest --cov-report=xml --cov=src
1416
- uses: codecov/codecov-action@v1
1517
with:

0 commit comments

Comments
 (0)