Skip to content

Commit 41604fe

Browse files
authored
fix: pin nox version in requirements.in for devcontainer. (#1215)
* fix: Pin `nox` version in `requirements.in` for devcontainer. `--require-hashes` requires pinned dependency version. Currently, devcontainer is failing to build. Post Create command will still fail but DevContainer will be built. * fix: Use nox linting command as DevContainer verification Current command unit tests which require setting up project. Hence, using a more relaxed but works in all environment.
1 parent e15e84f commit 41604fe

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.devcontainer/postCreate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
echo "Post Create Starting"
22

3-
nox -s unit-3.8
3+
nox -s blacken

.devcontainer/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nox>=2022.11.21
1+
nox==2024.10.9

.devcontainer/requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.9
2+
# This file is autogenerated by pip-compile with Python 3.8
33
# by the following command:
44
#
55
# pip-compile --generate-hashes requirements.in
@@ -32,6 +32,10 @@ platformdirs==4.3.6 \
3232
--hash=sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907 \
3333
--hash=sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb
3434
# via virtualenv
35+
tomli==2.0.2 \
36+
--hash=sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38 \
37+
--hash=sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed
38+
# via nox
3539
virtualenv==20.27.1 \
3640
--hash=sha256:142c6be10212543b32c6c45d3d3893dff89112cc588b7d0879ae5a1ec03a47ba \
3741
--hash=sha256:f11f1b8a29525562925f745563bfd48b189450f61fb34c4f9cc79dd5aa32a1f4

0 commit comments

Comments
 (0)