Skip to content

Commit a1495c3

Browse files
committed
Generate requirements.txt with pip-compile
1 parent 448a203 commit a1495c3

File tree

4 files changed

+59
-5
lines changed

4 files changed

+59
-5
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ repos:
33
rev: "7.0.0"
44
hooks:
55
- id: flake8
6+
- repo: https://github.com/jazzband/pip-tools
7+
rev: 7.4.1
8+
hooks:
9+
- id: pip-compile
10+
language_version: python3.8
11+
args: ["--output-file=requirements.txt", "--extra=test", "--strip-extras", "setup.cfg"]
12+
files: '^(?:setup\.cfg|requirements\.txt)$'

requirements.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pre-commit
2+
pytest
3+
pytest-asyncio>=0.23
4+
pytest-mock

requirements.txt

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
1-
pre-commit
2-
pytest
3-
pytest-asyncio
4-
pytest-mock
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
4+
#
5+
# pip-compile --extra=test --output-file=requirements.txt --strip-extras setup.cfg
6+
#
7+
cfgv==3.4.0
8+
# via pre-commit
9+
distlib==0.3.8
10+
# via virtualenv
11+
exceptiongroup==1.2.0
12+
# via pytest
13+
filelock==3.13.1
14+
# via virtualenv
15+
identify==2.5.35
16+
# via pre-commit
17+
iniconfig==2.0.0
18+
# via pytest
19+
nodeenv==1.8.0
20+
# via pre-commit
21+
packaging==24.0
22+
# via pytest
23+
platformdirs==4.2.0
24+
# via virtualenv
25+
pluggy==1.4.0
26+
# via pytest
27+
pre-commit==3.5.0
28+
# via async-solipsism (setup.cfg)
29+
pytest==8.1.1
30+
# via
31+
# async-solipsism (setup.cfg)
32+
# pytest-asyncio
33+
# pytest-mock
34+
pytest-asyncio==0.23.6
35+
# via async-solipsism (setup.cfg)
36+
pytest-mock==3.14.0
37+
# via async-solipsism (setup.cfg)
38+
pyyaml==6.0.1
39+
# via pre-commit
40+
tomli==2.0.1
41+
# via pytest
42+
virtualenv==20.25.1
43+
# via pre-commit
44+
45+
# The following packages are considered to be unsafe in a requirements file:
46+
# setuptools

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ where = src
2424
2525
[options.extras_require]
2626
test =
27+
pre-commit
2728
pytest
28-
pytest-asyncio
29+
pytest-asyncio>=0.23
2930
pytest-mock

0 commit comments

Comments
 (0)