Skip to content

Commit 10007dc

Browse files
committed
chore: keep a requirements.txt file up-to-date for dependabot
1 parent 3399495 commit 10007dc

File tree

7 files changed

+278
-38
lines changed

7 files changed

+278
-38
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.6.3
4+
rev: v0.13.0
55
hooks:
66
# Run the linter.
7-
- id: ruff
7+
- id: ruff-check
88
# Run the formatter.
99
- id: ruff-format
1010

1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v2.3.0
12+
rev: v6.0.0
1313
hooks:
1414
- id: trailing-whitespace
15-
exclude: ^tests/.*/fixtures/.*
1615
- id: end-of-file-fixer
17-
exclude: ^tests/.*/fixtures/.*
1816
- id: debug-statements
17+
18+
# A hack to get dependabot to find security vulnerabilities in our dependencies
19+
- repo: https://github.com/astral-sh/uv-pre-commit
20+
rev: 0.8.16
21+
hooks:
22+
- id: uv-export
23+
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
24+
args: ["--frozen", "--no-emit-project", "--no-hashes", "--output-file=requirements.txt", "--quiet"]

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ install:
55
uv sync
66
uv run pre-commit install
77

8+
lint:
9+
uv run pre-commit run --all-files
10+
811
test *flags:
912
uv run pytest --cov=stacklet {{ flags }}
1013

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ dev = [
2828
"ipdb>=0.13.13,<0.14",
2929
"jsonref>=1.1.0,<2",
3030
"moto[cognito-idp]>=4.1.3,<5",
31-
"pre-commit>=3.1.0,<4",
32-
"python-jose>=3.3.0,<4",
33-
"pytest>=7.2.1,<8",
31+
"pre-commit>=4.3.0,<5",
3432
"pytest-cov>=4.0.0,<5",
35-
"ruff>=0.6.3,<0.7",
33+
"pytest>=7.2.1,<8",
34+
"python-jose>=3.3.0,<4",
35+
"ruff>=0.13.0",
3636
"semver>=3.0.4,<4",
3737
"tomlkit>=0.13.2,<0.14",
3838
]

requirements.txt

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv export --frozen --no-emit-project --no-hashes --output-file=requirements.txt
3+
argcomplete==3.6.2
4+
# via c7n
5+
asttokens==3.0.0
6+
# via stack-data
7+
attrs==25.3.0
8+
# via
9+
# jsonschema
10+
# referencing
11+
boto3==1.39.4
12+
# via
13+
# c7n
14+
# moto
15+
# stacklet-client-sinistral
16+
botocore==1.39.10
17+
# via
18+
# boto3
19+
# moto
20+
# s3transfer
21+
c7n==0.9.46
22+
# via c7n-left
23+
c7n-left==0.3.32
24+
# via stacklet-client-sinistral
25+
certifi==2025.7.14
26+
# via
27+
# requests
28+
# sentry-sdk
29+
cffi==1.17.1
30+
# via
31+
# cryptography
32+
# tfparse
33+
cfgv==3.4.0
34+
# via pre-commit
35+
charset-normalizer==3.4.2
36+
# via requests
37+
click==8.2.1
38+
# via
39+
# c7n-left
40+
# codecov-cli
41+
# stacklet-client-sinistral
42+
codecov-cli==11.1.0
43+
# via stacklet-client-sinistral
44+
colorama==0.4.6 ; sys_platform == 'win32'
45+
# via
46+
# click
47+
# ipython
48+
# pytest
49+
coverage==7.9.2
50+
# via pytest-cov
51+
cryptography==44.0.3
52+
# via
53+
# c7n
54+
# moto
55+
decorator==5.2.1
56+
# via
57+
# ipdb
58+
# ipython
59+
distlib==0.4.0
60+
# via virtualenv
61+
ecdsa==0.19.1
62+
# via python-jose
63+
exceptiongroup==1.3.0 ; python_full_version < '3.11'
64+
# via
65+
# ipython
66+
# pytest
67+
executing==2.2.0
68+
# via stack-data
69+
filelock==3.18.0
70+
# via virtualenv
71+
identify==2.6.12
72+
# via pre-commit
73+
idna==3.10
74+
# via requests
75+
ijson==3.4.0
76+
# via codecov-cli
77+
iniconfig==2.1.0
78+
# via pytest
79+
ipdb==0.13.13
80+
ipython==8.37.0
81+
# via ipdb
82+
jedi==0.19.2
83+
# via ipython
84+
jinja2==3.1.6
85+
# via moto
86+
jmespath==1.0.1
87+
# via
88+
# boto3
89+
# botocore
90+
# stacklet-client-sinistral
91+
jsonref==1.1.0
92+
jsonschema==4.24.0
93+
# via
94+
# c7n
95+
# stacklet-client-sinistral
96+
jsonschema-specifications==2025.4.1
97+
# via jsonschema
98+
lark==1.2.2
99+
# via python-hcl2
100+
markdown-it-py==3.0.0
101+
# via rich
102+
markupsafe==3.0.2
103+
# via
104+
# jinja2
105+
# werkzeug
106+
matplotlib-inline==0.1.7
107+
# via ipython
108+
mdurl==0.1.2
109+
# via markdown-it-py
110+
moto==4.2.14
111+
nodeenv==1.9.1
112+
# via pre-commit
113+
packaging==25.0
114+
# via pytest
115+
parso==0.8.4
116+
# via jedi
117+
pexpect==4.9.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
118+
# via ipython
119+
platformdirs==4.3.8
120+
# via virtualenv
121+
pluggy==1.6.0
122+
# via pytest
123+
pre-commit==4.3.0
124+
prompt-toolkit==3.0.51
125+
# via ipython
126+
ptyprocess==0.7.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
127+
# via pexpect
128+
pure-eval==0.2.3
129+
# via stack-data
130+
pyasn1==0.6.1
131+
# via
132+
# python-jose
133+
# rsa
134+
pycparser==2.22
135+
# via cffi
136+
pygments==2.19.2
137+
# via
138+
# ipython
139+
# rich
140+
pyjwt==2.10.1
141+
# via stacklet-client-sinistral
142+
pyrsistent==0.19.3
143+
# via stacklet-client-sinistral
144+
pytest==7.4.4
145+
# via pytest-cov
146+
pytest-cov==4.1.0
147+
python-dateutil==2.9.0.post0
148+
# via
149+
# botocore
150+
# c7n
151+
# moto
152+
python-hcl2==4.3.5
153+
# via c7n-left
154+
python-jose==3.5.0
155+
pyyaml==6.0.2
156+
# via
157+
# c7n
158+
# codecov-cli
159+
# pre-commit
160+
# stacklet-client-sinistral
161+
referencing==0.36.2
162+
# via
163+
# jsonschema
164+
# jsonschema-specifications
165+
requests==2.32.4
166+
# via
167+
# moto
168+
# responses
169+
# stacklet-client-sinistral
170+
responses==0.21.0
171+
# via
172+
# codecov-cli
173+
# moto
174+
rich==14.0.0
175+
# via c7n-left
176+
rpds-py==0.26.0
177+
# via
178+
# jsonschema
179+
# referencing
180+
rsa==4.9.1
181+
# via python-jose
182+
ruff==0.13.0
183+
s3transfer==0.13.1
184+
# via boto3
185+
semver==3.0.4
186+
sentry-sdk==2.34.1
187+
# via codecov-cli
188+
six==1.17.0
189+
# via
190+
# ecdsa
191+
# python-dateutil
192+
stack-data==0.6.3
193+
# via ipython
194+
tabulate==0.9.0
195+
# via c7n
196+
test-results-parser==0.5.4
197+
# via codecov-cli
198+
tfparse==0.6.17
199+
# via c7n-left
200+
tomli==2.2.1 ; python_full_version <= '3.11'
201+
# via
202+
# coverage
203+
# ipdb
204+
# pytest
205+
tomlkit==0.13.3
206+
traitlets==5.14.3
207+
# via
208+
# ipython
209+
# matplotlib-inline
210+
typing-extensions==4.14.1 ; python_full_version < '3.13'
211+
# via
212+
# exceptiongroup
213+
# ipython
214+
# referencing
215+
# rich
216+
urllib3==2.5.0
217+
# via
218+
# botocore
219+
# c7n
220+
# requests
221+
# responses
222+
# sentry-sdk
223+
virtualenv==20.32.0
224+
# via pre-commit
225+
wcwidth==0.2.13
226+
# via prompt-toolkit
227+
werkzeug==3.1.3
228+
# via moto
229+
xmltodict==0.14.2
230+
# via moto

scripts/parse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def parse_params(params, request_body):
2929

3030
for i in params:
3131
if i["in"] == "path":
32-
path_result.setdefault(f'--{i["name"]}', {"required": bool(i["required"])})
32+
path_result.setdefault(f"--{i['name']}", {"required": bool(i["required"])})
3333
if i["in"] == "query":
34-
query_result.setdefault(f'--{i["name"]}', {"required": bool(i["required"])})
34+
query_result.setdefault(f"--{i['name']}", {"required": bool(i["required"])})
3535

3636
return path_result, query_result, payload_result
3737

stacklet/client/sinistral/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def on_execution_ended(self):
112112
)
113113

114114
if res.get("id"):
115-
click.echo(f'Results submitted: id:{res["id"]}')
115+
click.echo(f"Results submitted: id:{res['id']}")
116116
pass
117117

118118

0 commit comments

Comments
 (0)