Skip to content

Commit

Permalink
📍Pin CI-Dependencies
Browse files Browse the repository at this point in the history
(cf. #72)
+ pre-commit autoupdate
  • Loading branch information
DeltaDaniel committed Dec 5, 2023
1 parent 86084be commit e6ad75d
Show file tree
Hide file tree
Showing 16 changed files with 213 additions and 33 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "pip" # See documentation for possible values
directory: "/dev_requirements/" # Location of package manifests
schedule:
interval: "weekly"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 20.8b1 # Replace by any tag/version: https://github.com/psf/black/tags
rev: 23.11.0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.8.0
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
Expand Down
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.2
# via -r .\requirements-coverage.in
3 changes: 3 additions & 0 deletions dev_requirements/requirements-formatting.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# specific requirements for the tox coverage env
black
isort
22 changes: 22 additions & 0 deletions dev_requirements/requirements-formatting.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-formatting.in'
#
black==23.11.0
# via -r .\requirements-formatting.in
click==8.1.7
# via black
colorama==0.4.6
# via click
isort==5.12.0
# via -r .\requirements-formatting.in
mypy-extensions==1.0.0
# via black
packaging==23.2
# via black
pathspec==0.11.2
# via black
platformdirs==4.1.0
# via black
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 coverage env
pylint
22 changes: 22 additions & 0 deletions dev_requirements/requirements-linting.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-linting.in'
#
astroid==3.0.1
# via pylint
colorama==0.4.6
# via pylint
dill==0.3.7
# via pylint
isort==5.12.0
# via pylint
mccabe==0.7.0
# via pylint
platformdirs==4.1.0
# via pylint
pylint==3.0.2
# via -r .\requirements-linting.in
tomlkit==0.12.3
# via pylint
3 changes: 3 additions & 0 deletions dev_requirements/requirements-test_packaging.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# specific requirements for the tox coverage env
build
twine
66 changes: 66 additions & 0 deletions dev_requirements/requirements-test_packaging.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile '.\requirements-test_packaging.in'
#
build==1.0.3
# via -r .\requirements-test_packaging.in
certifi==2023.11.17
# via requests
charset-normalizer==3.3.2
# via requests
colorama==0.4.6
# via build
docutils==0.20.1
# via readme-renderer
idna==3.6
# via requests
importlib-metadata==7.0.0
# via
# keyring
# twine
jaraco-classes==3.3.0
# via keyring
keyring==24.3.0
# via twine
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.1.0
# via jaraco-classes
nh3==0.2.14
# via readme-renderer
packaging==23.2
# via build
pkginfo==1.9.6
# via twine
pygments==2.17.2
# via
# readme-renderer
# rich
pyproject-hooks==1.0.0
# via build
pywin32-ctypes==0.2.2
# via keyring
readme-renderer==42.0
# via twine
requests==2.31.0
# via
# requests-toolbelt
# twine
requests-toolbelt==1.0.0
# via twine
rfc3986==2.0.0
# via twine
rich==13.7.0
# via twine
twine==4.0.2
# via -r .\requirements-test_packaging.in
urllib3==2.1.0
# via
# requests
# twine
zipp==3.17.0
# via importlib-metadata
6 changes: 6 additions & 0 deletions dev_requirements/requirements-tests.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# specific requirements for the tox coverage env
pytest
pytest-datafiles
pytest-mock
pytest-asyncio
aioresponses
46 changes: 46 additions & 0 deletions dev_requirements/requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile '.\dev_requirements\requirements-tests.in'
#
aiohttp==3.9.1
# via aioresponses
aioresponses==0.7.6
# via -r .\dev_requirements\requirements-tests.in
aiosignal==1.3.1
# via aiohttp
attrs==23.1.0
# via aiohttp
colorama==0.4.6
# via pytest
frozenlist==1.4.0
# via
# aiohttp
# aiosignal
idna==3.6
# via yarl
iniconfig==2.0.0
# via pytest
multidict==6.0.4
# via
# aiohttp
# yarl
packaging==23.2
# via pytest
pluggy==1.3.0
# via pytest
pytest==7.4.3
# via
# -r .\dev_requirements\requirements-tests.in
# pytest-asyncio
# pytest-datafiles
# pytest-mock
pytest-asyncio==0.23.0
# via -r .\dev_requirements\requirements-tests.in
pytest-datafiles==3.0.0
# via -r .\dev_requirements\requirements-tests.in
pytest-mock==3.12.0
# via -r .\dev_requirements\requirements-tests.in
yarl==1.9.3
# via aiohttp
2 changes: 2 additions & 0 deletions dev_requirements/requirements-type_check.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# specific requirements for the tox coverage env
mypy
12 changes: 12 additions & 0 deletions dev_requirements/requirements-type_check.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile '.\requirements-type_check.in'
#
mypy==1.7.1
# via -r .\requirements-type_check.in
mypy-extensions==1.0.0
# via mypy
typing-extensions==4.8.0
# via mypy
24 changes: 6 additions & 18 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,50 +1,38 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
#
aiodns==3.0.0
# via aiohttp
aiohttp[speedups]==3.8.5
aiohttp[speedups]==3.9.1
# via
# -r requirements.in
# aiohttp-requests
aiohttp-requests==0.2.3
# via -r requirements.in
aiosignal==1.3.1
# via aiohttp
async-timeout==4.0.2
# via aiohttp
attrs==22.2.0
attrs==23.1.0
# via aiohttp
beautifulsoup4==4.12.2
# via -r requirements.in
brotli==1.1.0
# via aiohttp
cffi==1.15.1
# via pycares
charset-normalizer==2.1.1
# via aiohttp
coworker==2.0.1
# via aiohttp-requests
frozenlist==1.3.3
frozenlist==1.4.0
# via
# aiohttp
# aiosignal
idna==3.3
idna==3.6
# via yarl
multidict==6.0.4
# via
# aiohttp
# yarl
pycares==4.3.0
# via aiodns
pycparser==2.21
# via cffi
pypdf==3.17.1
# via -r requirements.in
soupsieve==2.3.2.post1
# via beautifulsoup4
yarl==1.8.2
yarl==1.9.3
# via aiohttp
18 changes: 6 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@ commands = python -m pip install --upgrade pip
# the tests environment is called by the Github action that runs the unit tests
deps =
-rrequirements.txt
pytest
pytest-datafiles
pytest-mock
pytest-asyncio
aioresponses
-r dev_requirements/requirements-tests.txt
setenv = PYTHONPATH = {toxinidir}/src
commands = python -m 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
# add your fixtures like e.g. pytest_datafiles here
setenv = PYTHONPATH = {toxinidir}/src
commands =
Expand All @@ -37,7 +33,7 @@ commands =
# the type_check environment checks the type hints using mypy
deps =
-rrequirements.txt
mypy
-r dev_requirements/requirements-type_check.txt
commands =
mypy --show-error-codes src/edi_energy_scraper
# mypy --show-error-codes unittests # does not work yet, sadly; Some tox/packaging problems
Expand All @@ -47,7 +43,7 @@ commands =
# the coverage environment is called by the Github Action that runs the coverage measurement
deps =
{[testenv:tests]deps}
coverage
-r dev_requirements/requirements-coverage.txt
setenv = PYTHONPATH = {toxinidir}/src
commands =
coverage run -m pytest --basetemp={envtmpdir} {posargs}
Expand All @@ -62,8 +58,7 @@ deps =
{[testenv:linting]deps}
{[testenv:type_check]deps}
{[testenv:coverage]deps}
black
isort
-r dev_requirements/requirements-formatting.txt
pip-tools
pre-commit
commands =
Expand All @@ -75,8 +70,7 @@ commands =
[testenv:test_packaging]
skip_install = true
deps =
build
twine
-r dev_requirements/requirements-test_packaging.txt
commands =
python -m build
twine check dist/*

0 comments on commit e6ad75d

Please sign in to comment.