Skip to content

Commit

Permalink
Pin CI dependencies (#201)
Browse files Browse the repository at this point in the history
* 📌Pin CI dependencies

* 📌Remove unpinned dependencies from tox.ini
  • Loading branch information
hf-sheese authored Dec 21, 2023
1 parent 4d4298c commit 4e03cbd
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 6 deletions.
2 changes: 2 additions & 0 deletions dev_requirements/requirements-coverage.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# specific requirements for the tox coverage env
coverage
8 changes: 8 additions & 0 deletions dev_requirements/requirements-coverage.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile '.\requirements-coverage.in'
#
coverage==7.3.3
# via -r dev_requirements/requirements-coverage.in
2 changes: 2 additions & 0 deletions dev_requirements/requirements-linting.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# specific requirements for the tox linting env
pylint
20 changes: 20 additions & 0 deletions dev_requirements/requirements-linting.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile '.\requirements-linting.in'
#
astroid==3.0.0
# via pylint
dill==0.3.7
# via pylint
isort==5.12.0
# via pylint
mccabe==0.7.0
# via pylint
platformdirs==3.10.0
# via pylint
pylint==3.0.1
# via -r dev_requirements/requirements-linting.in
tomlkit==0.12.3
# via pylint
4 changes: 4 additions & 0 deletions dev_requirements/requirements-tests.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# specific requirements for the tox tests env
pytest
pytest-datafiles
dictdiffer
22 changes: 22 additions & 0 deletions dev_requirements/requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile '.\requirements-tests.in'
#
colorama==0.4.6
# via pytest
dictdiffer==0.9.0
# via -r .\requirements-tests.in
iniconfig==2.0.0
# via pytest
packaging==22.0
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.2
# via
# -r .\requirements-tests.in
# pytest-datafiles
pytest-datafiles==3.0.0
# via -r .\requirements-tests.in
7 changes: 7 additions & 0 deletions dev_requirements/requirements-type_check.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# specific requirements for the tox type_check environment
mypy
types-requests
networkx-stubs
pytest
pandas
pandas-stubs
30 changes: 30 additions & 0 deletions dev_requirements/requirements-type_check.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile '.\requirements-type_check.in'
#
mypy==1.5.1
# via -r dev_requirements/requirements-type_check.in
mypy-extensions==1.0.0
# via mypy
networkx==3.1
# via networkx-stubs
networkx-stubs==0.0.1
# via -r dev_requirements/requirements-type_check.in
packaging==22.0
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.2
# via -r dev_requirements/requirements-type_check.in
types-requests==2.31.0.6
# via -r dev_requirements/requirements-type_check.in
types-urllib3==1.26.25.14
# via types-requests
typing-extensions==4.8.0
# via mypy
pandas==2.1.4
# via -r dev_requirements/requirements-type_check.in
pandas-stubs==2.0.1.230501
# via -r dev_requirements/requirements-type_check.in
10 changes: 4 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ commands = python -m pip install --upgrade pip
setenv = PYTHONPATH = {toxinidir}/src
deps =
-rrequirements.txt
pytest
pytest-datafiles
-r dev_requirements/requirements-tests.txt
commands = pytest --basetemp={envtmpdir} {posargs}

[testenv:linting]
# the linting environment is called by the Github Action that runs the linter
deps =
-rrequirements.txt
pylint
-r dev_requirements/requirements-linting.txt
setenv = PYTHONPATH = {toxinidir}/src
# add your fixtures like e.g. pytest_datafiles here
commands =
Expand All @@ -35,9 +34,7 @@ commands =
setenv = PYTHONPATH = {toxinidir}/src
deps =
-rrequirements.txt
mypy
types-pytz
pandas-stubs
-r dev_requirements/requirements-type_check.txt
commands =
mypy --show-error-codes src/kohlrahbi
mypy --show-error-codes unittests
Expand All @@ -48,6 +45,7 @@ commands =
# the coverage environment is called by the Github Action that runs the coverage measurement
deps =
{[testenv:tests]deps}
-r dev_requirements/requirements-coverage.txt
coverage
setenv = PYTHONPATH = {toxinidir}/src
commands =
Expand Down

0 comments on commit 4e03cbd

Please sign in to comment.