Skip to content

Commit 2eb73b1

Browse files
committed
scapy 2.6.1
1 parent 2642db5 commit 2eb73b1

10 files changed

Lines changed: 109 additions & 107 deletions

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ exclude: |
44
)
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v5.0.0
7+
rev: v6.0.0
88
hooks:
99
- id: check-yaml
1010
- id: end-of-file-fixer
1111
exclude_types: [ python ]
1212
- id: trailing-whitespace
1313
exclude_types: [ python ]
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.12.0
15+
rev: v0.14.3
1616
hooks:
1717
- id: ruff
1818
exclude: ^tests/
@@ -42,7 +42,7 @@ repos:
4242
--select=TRY, # Exception handling
4343
--select=UP, # Upgrade syntax
4444
--select=W, # Warnings
45-
'--ignore=B019,S101,G004,TRY003,TRY300,TRY301,TRY400' # Ignore docstring and `assert` detection
45+
'--ignore=B019,S101,G004,TRY003,TRY300,TRY301,TRY400,UP007' # Ignore docstring and `assert` detection
4646
]
4747
- id: ruff
4848
name: ruff-format-tests

CLAUDE.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,46 @@ This is a Docker-based Amazon Dash Button hack that sniffs network traffic to de
1111
### Environment Setup
1212
```bash
1313
# Set up or activate development environment
14-
. ./activate.sh
14+
source ./activate.sh
1515

1616
# Install/upgrade dependencies
17-
make reqs
17+
source ./activate.sh && make reqs
1818
```
1919

20+
**IMPORTANT**: Always activate the virtual environment before running any commands. Use `source ./activate.sh` before each command.
21+
2022
### Testing and Quality
2123
```bash
2224
# Run tests with doctests
23-
pytest
25+
source ./activate.sh && pytest
2426

2527
# Run network sniff check (requires sudo)
26-
make check
27-
28-
# Type checking (via pre-commit hook)
29-
mypy src/
28+
source ./activate.sh && make check
3029

31-
# Linting (via pre-commit hook)
32-
ruff check src/
33-
ruff format src/
30+
# Run all pre-commit hooks
31+
source ./activate.sh && pre-commit run --all-files
3432
```
3533

34+
**IMPORTANT**: Always use `pre-commit run --all-files` for code quality checks. Never run ruff or mypy directly.
35+
3636
### Development Workflow
3737
```bash
3838
# Build documentation
39-
make docs
39+
source ./activate.sh && make docs
4040

4141
# Version management
42-
make ver-bug # Bump bug version
43-
make ver-feature # Bump feature version
44-
make ver-release # Bump release version
42+
source ./activate.sh && make ver-bug # Bump bug version
43+
source ./activate.sh && make ver-feature # Bump feature version
44+
source ./activate.sh && make ver-release # Bump release version
4545

4646
# View all available make commands
47-
make help
47+
source ./activate.sh && make help
4848
```
4949

5050
### Running the Application
5151
```bash
5252
# For development on macOS/Windows (cannot sniff in Docker)
53-
sudo python src/amazon_dash.py
53+
source ./activate.sh && sudo python src/amazon_dash.py
5454

5555
# For production (Linux with Docker)
5656
docker run --net host -it --rm -v $PWD/../amazon-dash-private:/amazon-dash-private:ro andgineer/amazon-dash-button-hack

requirements.dev.txt

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,94 +8,94 @@ annotated-types==0.7.0
88
# via
99
# -r requirements.txt
1010
# pydantic
11-
astroid==3.3.10
11+
astroid==4.0.1
1212
# via pylint
1313
bracex==2.6
1414
# via wcmatch
15-
build==1.2.2.post1
15+
build==1.3.0
1616
# via pip-tools
17-
cachetools==5.5.2
17+
cachetools==6.2.1
1818
# via
1919
# -r requirements.txt
2020
# google-auth
21-
certifi==2025.6.15
21+
certifi==2025.10.5
2222
# via
2323
# -r requirements.txt
2424
# requests
25-
cffi==1.17.1
25+
cffi==2.0.0
2626
# via -r requirements.txt
2727
cfgv==3.4.0
2828
# via pre-commit
29-
charset-normalizer==3.4.2
29+
charset-normalizer==3.4.4
3030
# via
3131
# -r requirements.txt
3232
# requests
33-
click==8.2.1
33+
click==8.3.0
3434
# via
3535
# mkdocs
3636
# pip-tools
3737
# typer
38-
coverage[toml]==7.9.1
38+
coverage[toml]==7.11.0
3939
# via pytest-cov
4040
dill==0.4.0
4141
# via pylint
42-
distlib==0.3.9
42+
distlib==0.4.0
4343
# via virtualenv
44-
filelock==3.18.0
44+
filelock==3.20.0
4545
# via virtualenv
46-
freezegun==1.5.2
46+
freezegun==1.5.5
4747
# via -r requirements.dev.in
4848
ghp-import==2.1.0
4949
# via mkdocs
50-
google-api-core==2.25.1
50+
google-api-core==2.28.1
5151
# via
5252
# -r requirements.txt
5353
# google-api-python-client
54-
google-api-python-client==2.173.0
54+
google-api-python-client==2.186.0
5555
# via
5656
# -r requirements.txt
5757
# google-api-python-client-stubs
58-
google-api-python-client-stubs==1.29.0
58+
google-api-python-client-stubs==1.30.0
5959
# via -r requirements.dev.in
60-
google-auth==2.40.3
60+
google-auth==2.42.1
6161
# via
6262
# -r requirements.txt
6363
# google-api-core
6464
# google-api-python-client
6565
# google-auth-httplib2
66-
google-auth-httplib2==0.2.0
66+
google-auth-httplib2==0.2.1
6767
# via
6868
# -r requirements.txt
6969
# google-api-python-client
70-
googleapis-common-protos==1.70.0
70+
googleapis-common-protos==1.71.0
7171
# via
7272
# -r requirements.txt
7373
# google-api-core
74-
httplib2==0.22.0
74+
httplib2==0.31.0
7575
# via
7676
# -r requirements.txt
7777
# google-api-python-client
7878
# google-auth-httplib2
7979
# oauth2client
80-
identify==2.6.12
80+
identify==2.6.15
8181
# via pre-commit
82-
idna==3.10
82+
idna==3.11
8383
# via
8484
# -r requirements.txt
8585
# requests
86-
iniconfig==2.1.0
86+
iniconfig==2.3.0
8787
# via pytest
88-
isort==6.0.1
88+
isort==7.0.0
8989
# via pylint
9090
jinja2==3.1.6
9191
# via mkdocs
9292
lazydocs==0.4.8
9393
# via -r requirements.dev.in
94-
markdown==3.8.2
94+
markdown==3.9
9595
# via mkdocs
96-
markdown-it-py==3.0.0
96+
markdown-it-py==4.0.0
9797
# via rich
98-
markupsafe==3.0.2
98+
markupsafe==3.0.3
9999
# via
100100
# jinja2
101101
# mkdocs
@@ -115,7 +115,7 @@ mkdocs-awesome-pages-plugin==2.10.1
115115
# via -r requirements.dev.in
116116
mkdocs-get-deps==0.2.0
117117
# via mkdocs
118-
mypy==1.16.1
118+
mypy==1.18.2
119119
# via -r requirements.dev.in
120120
mypy-extensions==1.1.0
121121
# via mypy
@@ -134,9 +134,9 @@ pathspec==0.12.1
134134
# via
135135
# mkdocs
136136
# mypy
137-
pip-tools==7.4.1
137+
pip-tools==7.5.1
138138
# via -r requirements.dev.in
139-
platformdirs==4.3.8
139+
platformdirs==4.5.0
140140
# via
141141
# mkdocs-get-deps
142142
# pylint
@@ -145,13 +145,13 @@ pluggy==1.6.0
145145
# via
146146
# pytest
147147
# pytest-cov
148-
pre-commit==4.2.0
148+
pre-commit==4.3.0
149149
# via -r requirements.dev.in
150150
proto-plus==1.26.1
151151
# via
152152
# -r requirements.txt
153153
# google-api-core
154-
protobuf==6.31.1
154+
protobuf==6.33.0
155155
# via
156156
# -r requirements.txt
157157
# google-api-core
@@ -168,60 +168,60 @@ pyasn1-modules==0.4.2
168168
# -r requirements.txt
169169
# google-auth
170170
# oauth2client
171-
pycparser==2.22
171+
pycparser==2.23
172172
# via
173173
# -r requirements.txt
174174
# cffi
175-
pydantic==2.11.7
175+
pydantic==2.12.3
176176
# via -r requirements.txt
177-
pydantic-core==2.33.2
177+
pydantic-core==2.41.4
178178
# via
179179
# -r requirements.txt
180180
# pydantic
181181
pygments==2.19.2
182182
# via
183183
# pytest
184184
# rich
185-
pylint==3.3.7
185+
pylint==4.0.2
186186
# via -r requirements.dev.in
187-
pyparsing==3.2.3
187+
pyparsing==3.2.5
188188
# via
189189
# -r requirements.txt
190190
# httplib2
191191
pyproject-hooks==1.2.0
192192
# via
193193
# build
194194
# pip-tools
195-
pytest==8.4.1
195+
pytest==8.4.2
196196
# via
197197
# -r requirements.dev.in
198198
# pytest-cov
199199
# pytest-mock
200-
pytest-cov==6.2.1
200+
pytest-cov==7.0.0
201201
# via -r requirements.dev.in
202-
pytest-mock==3.14.1
202+
pytest-mock==3.15.1
203203
# via -r requirements.dev.in
204204
python-dateutil==2.9.0.post0
205205
# via
206206
# -r requirements.txt
207207
# freezegun
208208
# ghp-import
209-
pyyaml==6.0.2
209+
pyyaml==6.0.3
210210
# via
211211
# mkdocs
212212
# mkdocs-get-deps
213213
# pre-commit
214214
# pyyaml-env-tag
215215
pyyaml-env-tag==1.1
216216
# via mkdocs
217-
requests==2.32.4
217+
requests==2.32.5
218218
# via
219219
# -r requirements.txt
220220
# google-api-core
221221
# requests-mock
222222
requests-mock==1.12.1
223223
# via -r requirements.dev.in
224-
rich==14.0.0
224+
rich==14.2.0
225225
# via typer
226226
rsa==4.9.1
227227
# via
@@ -239,11 +239,11 @@ six==1.17.0
239239
# python-dateutil
240240
tomlkit==0.13.3
241241
# via pylint
242-
typer==0.16.0
242+
typer==0.20.0
243243
# via lazydocs
244-
types-httplib2==0.22.0.20250622
244+
types-httplib2==0.31.0.20250913
245245
# via google-api-python-client-stubs
246-
typing-extensions==4.14.0
246+
typing-extensions==4.15.0
247247
# via
248248
# -r requirements.txt
249249
# google-api-python-client-stubs
@@ -252,7 +252,7 @@ typing-extensions==4.14.0
252252
# pydantic-core
253253
# typer
254254
# typing-inspection
255-
typing-inspection==0.4.1
255+
typing-inspection==0.4.2
256256
# via
257257
# -r requirements.txt
258258
# pydantic
@@ -264,7 +264,7 @@ urllib3==2.5.0
264264
# via
265265
# -r requirements.txt
266266
# requests
267-
virtualenv==20.31.2
267+
virtualenv==20.35.4
268268
# via pre-commit
269269
watchdog==6.0.0
270270
# via mkdocs

0 commit comments

Comments
 (0)