Skip to content

Commit e6ad75d

Browse files
committed
📍Pin CI-Dependencies
(cf. #72) + pre-commit autoupdate
1 parent 86084be commit e6ad75d

16 files changed

+213
-33
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "weekly"
12+
- package-ecosystem: "pip" # See documentation for possible values
13+
directory: "/dev_requirements/" # Location of package manifests
14+
schedule:
15+
interval: "weekly"
1216
# Maintain dependencies for GitHub Actions
1317
- package-ecosystem: "github-actions"
1418
directory: "/"

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v4.5.0
44
hooks:
55
- id: check-yaml
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 20.8b1 # Replace by any tag/version: https://github.com/psf/black/tags
9+
rev: 23.11.0 # Replace by any tag/version: https://github.com/psf/black/tags
1010
hooks:
1111
- id: black
1212
language_version: python3
1313
- repo: https://github.com/pycqa/isort
14-
rev: 5.8.0
14+
rev: 5.12.0
1515
hooks:
1616
- id: isort
1717
name: isort (python)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# specific requirements for the tox coverage env
2+
coverage
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile '.\requirements-coverage.in'
6+
#
7+
coverage==7.3.2
8+
# via -r .\requirements-coverage.in
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# specific requirements for the tox coverage env
2+
black
3+
isort
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile '.\requirements-formatting.in'
6+
#
7+
black==23.11.0
8+
# via -r .\requirements-formatting.in
9+
click==8.1.7
10+
# via black
11+
colorama==0.4.6
12+
# via click
13+
isort==5.12.0
14+
# via -r .\requirements-formatting.in
15+
mypy-extensions==1.0.0
16+
# via black
17+
packaging==23.2
18+
# via black
19+
pathspec==0.11.2
20+
# via black
21+
platformdirs==4.1.0
22+
# via black
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# specific requirements for the tox coverage env
2+
pylint
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile '.\requirements-linting.in'
6+
#
7+
astroid==3.0.1
8+
# via pylint
9+
colorama==0.4.6
10+
# via pylint
11+
dill==0.3.7
12+
# via pylint
13+
isort==5.12.0
14+
# via pylint
15+
mccabe==0.7.0
16+
# via pylint
17+
platformdirs==4.1.0
18+
# via pylint
19+
pylint==3.0.2
20+
# via -r .\requirements-linting.in
21+
tomlkit==0.12.3
22+
# via pylint
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# specific requirements for the tox coverage env
2+
build
3+
twine
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile '.\requirements-test_packaging.in'
6+
#
7+
build==1.0.3
8+
# via -r .\requirements-test_packaging.in
9+
certifi==2023.11.17
10+
# via requests
11+
charset-normalizer==3.3.2
12+
# via requests
13+
colorama==0.4.6
14+
# via build
15+
docutils==0.20.1
16+
# via readme-renderer
17+
idna==3.6
18+
# via requests
19+
importlib-metadata==7.0.0
20+
# via
21+
# keyring
22+
# twine
23+
jaraco-classes==3.3.0
24+
# via keyring
25+
keyring==24.3.0
26+
# via twine
27+
markdown-it-py==3.0.0
28+
# via rich
29+
mdurl==0.1.2
30+
# via markdown-it-py
31+
more-itertools==10.1.0
32+
# via jaraco-classes
33+
nh3==0.2.14
34+
# via readme-renderer
35+
packaging==23.2
36+
# via build
37+
pkginfo==1.9.6
38+
# via twine
39+
pygments==2.17.2
40+
# via
41+
# readme-renderer
42+
# rich
43+
pyproject-hooks==1.0.0
44+
# via build
45+
pywin32-ctypes==0.2.2
46+
# via keyring
47+
readme-renderer==42.0
48+
# via twine
49+
requests==2.31.0
50+
# via
51+
# requests-toolbelt
52+
# twine
53+
requests-toolbelt==1.0.0
54+
# via twine
55+
rfc3986==2.0.0
56+
# via twine
57+
rich==13.7.0
58+
# via twine
59+
twine==4.0.2
60+
# via -r .\requirements-test_packaging.in
61+
urllib3==2.1.0
62+
# via
63+
# requests
64+
# twine
65+
zipp==3.17.0
66+
# via importlib-metadata
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# specific requirements for the tox coverage env
2+
pytest
3+
pytest-datafiles
4+
pytest-mock
5+
pytest-asyncio
6+
aioresponses
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile '.\dev_requirements\requirements-tests.in'
6+
#
7+
aiohttp==3.9.1
8+
# via aioresponses
9+
aioresponses==0.7.6
10+
# via -r .\dev_requirements\requirements-tests.in
11+
aiosignal==1.3.1
12+
# via aiohttp
13+
attrs==23.1.0
14+
# via aiohttp
15+
colorama==0.4.6
16+
# via pytest
17+
frozenlist==1.4.0
18+
# via
19+
# aiohttp
20+
# aiosignal
21+
idna==3.6
22+
# via yarl
23+
iniconfig==2.0.0
24+
# via pytest
25+
multidict==6.0.4
26+
# via
27+
# aiohttp
28+
# yarl
29+
packaging==23.2
30+
# via pytest
31+
pluggy==1.3.0
32+
# via pytest
33+
pytest==7.4.3
34+
# via
35+
# -r .\dev_requirements\requirements-tests.in
36+
# pytest-asyncio
37+
# pytest-datafiles
38+
# pytest-mock
39+
pytest-asyncio==0.23.0
40+
# via -r .\dev_requirements\requirements-tests.in
41+
pytest-datafiles==3.0.0
42+
# via -r .\dev_requirements\requirements-tests.in
43+
pytest-mock==3.12.0
44+
# via -r .\dev_requirements\requirements-tests.in
45+
yarl==1.9.3
46+
# via aiohttp
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# specific requirements for the tox coverage env
2+
mypy
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile '.\requirements-type_check.in'
6+
#
7+
mypy==1.7.1
8+
# via -r .\requirements-type_check.in
9+
mypy-extensions==1.0.0
10+
# via mypy
11+
typing-extensions==4.8.0
12+
# via mypy

requirements.txt

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,38 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# pip-compile requirements.in
66
#
7-
aiodns==3.0.0
8-
# via aiohttp
9-
aiohttp[speedups]==3.8.5
7+
aiohttp[speedups]==3.9.1
108
# via
119
# -r requirements.in
1210
# aiohttp-requests
1311
aiohttp-requests==0.2.3
1412
# via -r requirements.in
1513
aiosignal==1.3.1
1614
# via aiohttp
17-
async-timeout==4.0.2
18-
# via aiohttp
19-
attrs==22.2.0
15+
attrs==23.1.0
2016
# via aiohttp
2117
beautifulsoup4==4.12.2
2218
# via -r requirements.in
2319
brotli==1.1.0
2420
# via aiohttp
25-
cffi==1.15.1
26-
# via pycares
27-
charset-normalizer==2.1.1
28-
# via aiohttp
2921
coworker==2.0.1
3022
# via aiohttp-requests
31-
frozenlist==1.3.3
23+
frozenlist==1.4.0
3224
# via
3325
# aiohttp
3426
# aiosignal
35-
idna==3.3
27+
idna==3.6
3628
# via yarl
3729
multidict==6.0.4
3830
# via
3931
# aiohttp
4032
# yarl
41-
pycares==4.3.0
42-
# via aiodns
43-
pycparser==2.21
44-
# via cffi
4533
pypdf==3.17.1
4634
# via -r requirements.in
4735
soupsieve==2.3.2.post1
4836
# via beautifulsoup4
49-
yarl==1.8.2
37+
yarl==1.9.3
5038
# via aiohttp

tox.ini

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@ commands = python -m pip install --upgrade pip
1414
# the tests environment is called by the Github action that runs the unit tests
1515
deps =
1616
-rrequirements.txt
17-
pytest
18-
pytest-datafiles
19-
pytest-mock
20-
pytest-asyncio
21-
aioresponses
17+
-r dev_requirements/requirements-tests.txt
2218
setenv = PYTHONPATH = {toxinidir}/src
2319
commands = python -m pytest --basetemp={envtmpdir} {posargs}
2420

2521
[testenv:linting]
2622
# the linting environment is called by the Github Action that runs the linter
2723
deps =
2824
-rrequirements.txt
29-
pylint
25+
-r dev_requirements/requirements-linting.txt
3026
# add your fixtures like e.g. pytest_datafiles here
3127
setenv = PYTHONPATH = {toxinidir}/src
3228
commands =
@@ -37,7 +33,7 @@ commands =
3733
# the type_check environment checks the type hints using mypy
3834
deps =
3935
-rrequirements.txt
40-
mypy
36+
-r dev_requirements/requirements-type_check.txt
4137
commands =
4238
mypy --show-error-codes src/edi_energy_scraper
4339
# mypy --show-error-codes unittests # does not work yet, sadly; Some tox/packaging problems
@@ -47,7 +43,7 @@ commands =
4743
# the coverage environment is called by the Github Action that runs the coverage measurement
4844
deps =
4945
{[testenv:tests]deps}
50-
coverage
46+
-r dev_requirements/requirements-coverage.txt
5147
setenv = PYTHONPATH = {toxinidir}/src
5248
commands =
5349
coverage run -m pytest --basetemp={envtmpdir} {posargs}
@@ -62,8 +58,7 @@ deps =
6258
{[testenv:linting]deps}
6359
{[testenv:type_check]deps}
6460
{[testenv:coverage]deps}
65-
black
66-
isort
61+
-r dev_requirements/requirements-formatting.txt
6762
pip-tools
6863
pre-commit
6964
commands =
@@ -75,8 +70,7 @@ commands =
7570
[testenv:test_packaging]
7671
skip_install = true
7772
deps =
78-
build
79-
twine
73+
-r dev_requirements/requirements-test_packaging.txt
8074
commands =
8175
python -m build
8276
twine check dist/*

0 commit comments

Comments
 (0)