Skip to content

Commit

Permalink
ci: sync devcontainer and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 20, 2024
1 parent 520fa2d commit 9ff79b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ RUN \
&& pipx uninstall pylint \
&& pipx uninstall pytest \
&& pipx uninstall flake8 \
&& pipx uninstall black \
&& pipx install commitizen \
&& pip install -U hatch hatch-containers
&& pipx uninstall black

RUN pipx install commitizen \
&& pipx install hatch

RUN umask 0002 \
&& mkdir -p ${PIPX_BIN_DIR} \
&& chown -R "vscode:pipx" ${PIPX_HOME} \
&& chmod -R g+r+w "${PIPX_HOME}"

RUN su vscode -c "hatch config set dirs.env.virtual /home/vscode/.virtualenvs"

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ repos:
- hooks:
- id: commitizen
repo: https://github.com/commitizen-tools/commitizen
rev: 9d17f393228f6c60793b4929d910e3b1f0fcb1ad # frozen: v3.25.1
rev: c2bbc92202e9080adcdf8fa2e99c9e4406a1f684 # frozen: v3.26.0
- hooks:
- entry: hatch run python3 -m mypy
exclude: tests/.*
Expand Down

0 comments on commit 9ff79b1

Please sign in to comment.