This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LeeeeT
committed
Jan 12, 2023
1 parent
a60d623
commit d61a69d
Showing
128 changed files
with
1,628 additions
and
1,107 deletions.
There are no files selected for viewing
This file contains 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,27 @@ | ||
{ | ||
"name": "Valtypes", | ||
"image": "mcr.microsoft.com/devcontainers/python:0-3.11", | ||
"features": { | ||
"ghcr.io/devcontainers/features/git:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/zsh-plugins:0": { | ||
"plugins": [ | ||
"zsh-autosuggestions zsh-syntax-highlighting" | ||
], | ||
"omzPlugins": [ | ||
"https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting" | ||
] | ||
}, | ||
"ghcr.io/devcontainers-contrib/features/poetry:2": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.isort", | ||
"bungcip.better-toml", | ||
"ryanluker.vscode-coverage-gutters" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "poetry install" | ||
} |
This file contains 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,23 @@ | ||
name: Build Dev Container image | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Build Dev Container image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to GHCR | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build | ||
uses: devcontainers/ci@v0.2 | ||
with: | ||
imageName: ghcr.io/${{ github.repository }} | ||
cacheFrom: ghcr.io/${{ github.repository }} | ||
push: always |
This file contains 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 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 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,62 +1,57 @@ | ||
ci: | ||
autofix_commit_msg: 'refactor: auto fixes from pre-commit hooks' | ||
autoupdate_commit_msg: 'build(deps): update pre-commit hooks' | ||
skip: [ pyproject-flake8, pyright, pyright-verify, pytest ] | ||
|
||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.4 | ||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: isort | ||
entry: poetry run isort | ||
language: system | ||
pass_filenames: false | ||
stages: [ commit ] | ||
|
||
- repo: https://github.com/aio-libs/sort-all | ||
rev: v1.2.0 | ||
hooks: | ||
- id: sort-all | ||
name: sort-all | ||
entry: poetry run sort-all | ||
language: system | ||
stages: [ commit ] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black | ||
name: black | ||
entry: poetry run black . | ||
language: system | ||
pass_filenames: false | ||
stages: [ commit ] | ||
|
||
- repo: https://github.com/csachs/pyproject-flake8 | ||
rev: v6.0.0.post1 | ||
hooks: | ||
- id: pyproject-flake8 | ||
- id: flake8 | ||
name: flake8 | ||
alias: flake8 | ||
entry: poetry run pflake8 valtypes tests testing | ||
language: system | ||
pass_filenames: false | ||
stages: [ commit ] | ||
|
||
- repo: local | ||
hooks: | ||
# - id: mypy | ||
# name: mypy | ||
# entry: bash -c "pip install poetry && poetry install --with mypy && mypy" | ||
# language: system | ||
# pass_filenames: false | ||
# stages: [ commit ] | ||
# - id: mypy | ||
# name: mypy | ||
# entry: poetry run mypy | ||
# language: system | ||
# pass_filenames: false | ||
# stages: [ commit ] | ||
|
||
- id: pyright | ||
name: pyright | ||
entry: bash -c "pip install poetry && poetry install --with pyright && pyright" | ||
entry: poetry run pyright | ||
language: system | ||
pass_filenames: false | ||
stages: [ commit ] | ||
|
||
- id: pyright-verify | ||
name: pyright-verify | ||
entry: bash -c "pip install poetry && poetry install --with pyright-verify && pyright --verifytypes valtypes" | ||
entry: poetry run pyright --verifytypes valtypes | ||
language: system | ||
pass_filenames: false | ||
stages: [ commit ] | ||
|
||
- id: pytest | ||
name: pytest | ||
entry: bash -c "pip install poetry && poetry install --with pytest && pytest" | ||
entry: poetry run pytest | ||
language: system | ||
pass_filenames: false | ||
stages: [ commit ] |
This file contains 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,7 @@ | ||
{ | ||
"terminal.integrated.defaultProfile.linux": "zsh", | ||
"python.testing.pytestEnabled": true, | ||
"python.formatting.provider": "black", | ||
"python.analysis.typeCheckingMode": "strict", | ||
"python.linting.enabled": false, | ||
} |
This file contains 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
Oops, something went wrong.