Skip to content

Commit b0f6223

Browse files
author
Your Name
committed
d
1 parent 4a8ecf5 commit b0f6223

21 files changed

+705
-471
lines changed

.bish-index

Lines changed: 74 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,91 @@
1-
./test_pf_commands.py
2-
./SECURITY.md
3-
./env_check.sh
4-
./CODE_OF_CONDUCT.md
5-
./WARP.md
1+
./test_pf_tasks.sh
2+
./run_pf_tests.py
3+
./comprehensive_test.py
4+
./.pytest_cache/README.md
5+
./generator/README.md
6+
./generator/test_generate.py
7+
./generator/generate.py
68
./check_poetry.sh
7-
./REVIEW_SUMMARY.md
9+
./simple_test.py
810
./examples/connection_example.py
9-
./run_pf_tests.py
10-
./CHANGELOG.md
11-
./cdp/layer_tree.py
11+
./docs/connection.md
12+
./docs/conf.py
13+
./cdp/connection.py
14+
./cdp/bluetooth_emulation.py
15+
./cdp/headless_experimental.py
16+
./cdp/network.py
17+
./cdp/file_system.py
18+
./cdp/animation.py
1219
./cdp/util.py
13-
./cdp/dom_storage.py
14-
./cdp/input_.py
15-
./cdp/extensions.py
16-
./cdp/debugger.py
17-
./cdp/service_worker.py
18-
./cdp/schema.py
20+
./cdp/web_audio.py
21+
./cdp/system_info.py
1922
./cdp/background_service.py
20-
./cdp/device_orientation.py
21-
./cdp/cache_storage.py
22-
./cdp/tethering.py
23-
./cdp/runtime.py
24-
./cdp/indexed_db.py
25-
./cdp/pwa.py
26-
./cdp/fetch.py
27-
./cdp/css.py
28-
./cdp/page.py
29-
./cdp/media.py
30-
./cdp/inspector.py
3123
./cdp/memory.py
32-
./cdp/file_system.py
33-
./cdp/browser.py
34-
./cdp/dom_debugger.py
35-
./cdp/event_breakpoints.py
36-
./cdp/connection.py
37-
./cdp/profiler.py
38-
./cdp/heap_profiler.py
39-
./cdp/preload.py
4024
./cdp/__init__.py
41-
./cdp/accessibility.py
42-
./cdp/network.py
43-
./cdp/security.py
44-
./cdp/system_info.py
45-
./cdp/web_audio.py
46-
./cdp/dom_snapshot.py
47-
./cdp/cast.py
48-
./cdp/target.py
49-
./cdp/animation.py
50-
./cdp/bluetooth_emulation.py
51-
./cdp/io.py
52-
./cdp/overlay.py
25+
./cdp/profiler.py
26+
./cdp/event_breakpoints.py
5327
./cdp/device_access.py
5428
./cdp/log.py
29+
./cdp/io.py
5530
./cdp/autofill.py
56-
./cdp/tracing.py
57-
./cdp/fed_cm.py
31+
./cdp/cast.py
32+
./cdp/performance_timeline.py
33+
./cdp/dom.py
34+
./cdp/security.py
35+
./cdp/overlay.py
5836
./cdp/web_authn.py
37+
./cdp/fed_cm.py
38+
./cdp/console.py
39+
./cdp/layer_tree.py
40+
./cdp/heap_profiler.py
41+
./cdp/service_worker.py
42+
./cdp/debugger.py
43+
./cdp/media.py
44+
./cdp/accessibility.py
45+
./cdp/runtime.py
5946
./cdp/audits.py
47+
./cdp/input_.py
48+
./cdp/css.py
49+
./cdp/fetch.py
50+
./cdp/browser.py
51+
./cdp/dom_storage.py
52+
./cdp/tracing.py
53+
./cdp/pwa.py
54+
./cdp/tethering.py
55+
./cdp/dom_snapshot.py
56+
./cdp/extensions.py
6057
./cdp/performance.py
61-
./cdp/dom.py
62-
./cdp/emulation.py
63-
./cdp/headless_experimental.py
64-
./cdp/console.py
65-
./cdp/performance_timeline.py
6658
./cdp/storage.py
67-
./simple_test.py
68-
./AGENTS.md
69-
./README.md
70-
./generator/README.md
71-
./generator/generate.py
72-
./generator/test_generate.py
73-
./basic_check.sh
59+
./cdp/page.py
60+
./cdp/preload.py
61+
./cdp/schema.py
62+
./cdp/dom_debugger.py
63+
./cdp/device_orientation.py
64+
./cdp/emulation.py
65+
./cdp/cache_storage.py
66+
./cdp/indexed_db.py
67+
./cdp/inspector.py
68+
./cdp/target.py
7469
./minimal_test.py
75-
./SECURITY_SETUP.md
76-
./test_all_pf.sh
77-
./env_quick_check.py
78-
./CONTRIBUTING.md
79-
./test_pf_tasks.sh
80-
./IMPLEMENTATION.md
81-
./quick_check.py
8270
./test_every_pf_command.py
83-
./comprehensive_test.py
84-
./comprehensive_pf_test.py
85-
./test_import.py
86-
./docs/conf.py
87-
./docs/connection.md
71+
./README.md
72+
./REVIEW_SUMMARY.md
73+
./CONTRIBUTING.md
74+
./CHANGELOG.md
8875
./test/test_cdp.py
8976
./test/test_connection.py
77+
./comprehensive_pf_test.py
78+
./.github/copilot-instructions.md
79+
./env_quick_check.py
80+
./quick_check.py
81+
./SECURITY.md
82+
./test_all_pf.sh
83+
./IMPLEMENTATION.md
84+
./AGENTS.md
85+
./SECURITY_SETUP.md
86+
./CODE_OF_CONDUCT.md
87+
./WARP.md
88+
./test_pf_commands.py
89+
./basic_check.sh
90+
./env_check.sh
91+
./test_import.py

.bish.sqlite

-96 KB
Binary file not shown.

.github/.bish.sqlite

-44 KB
Binary file not shown.

.github/workflows/.bish.sqlite

-44 KB
Binary file not shown.

.pf

Lines changed: 60 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,71 @@
1-
# Python CDP Library Tasks
2-
# Simple wrappers around existing Makefile targets
3-
# Following pf simplicity rules - just calls to existing scripts
1+
shell_lang bash
42

5-
# Default task - runs the complete build pipeline
6-
default:
7-
poetry run make default
3+
task "setup"
4+
describe Install local Python dependencies for pycdp in current conda env
5+
shell "$CONDA_PREFIX/bin/python" -m pip install -e . --no-build-isolation
6+
shell "$CONDA_PREFIX/bin/python" -m pip install inflection mypy pytest pytest-asyncio sphinx sphinx-autodoc-typehints sphinx-rtd-theme websockets deprecated
7+
end
88

9-
# Code generation tasks
10-
generate:
11-
poetry run make generate
9+
task "default"
10+
describe Run full pycdp validation pipeline via Makefile
11+
shell make default
12+
end
1213

13-
# Type checking tasks
14-
typecheck:
15-
poetry run make mypy-cdp mypy-generate
14+
task "generate"
15+
describe Regenerate CDP bindings
16+
shell make generate
17+
end
1618

17-
# Testing tasks
18-
test:
19-
poetry run make test-cdp test-generate test-import
19+
task "typecheck"
20+
describe Run mypy checks for cdp and generator modules
21+
shell make mypy-cdp mypy-generate
22+
end
2023

21-
# Individual test components
22-
test-cdp:
23-
poetry run make test-cdp
24+
task "test"
25+
describe Run all pycdp tests
26+
shell make test-cdp
27+
shell make test-generate
28+
shell make test-import
29+
end
2430

25-
test-generate:
26-
poetry run make test-generate
31+
task "test-cdp"
32+
describe Run cdp package tests
33+
shell make test-cdp
34+
end
2735

28-
test-import:
29-
poetry run make test-import
36+
task "test-generate"
37+
describe Run generator tests
38+
shell make test-generate
39+
end
3040

31-
# Documentation
32-
docs:
33-
poetry run make docs
41+
task "test-import"
42+
describe Smoke-test importing generated modules
43+
shell make test-import
44+
end
3445

35-
# Development workflow - complete validation
36-
validate:
37-
poetry run make default
46+
task "docs"
47+
describe Build documentation
48+
shell make docs
49+
end
3850

39-
# Clean and rebuild everything
40-
rebuild:
41-
poetry run make generate
42-
poetry run make mypy-cdp mypy-generate
43-
poetry run make test-cdp test-generate test-import
51+
task "validate"
52+
describe Alias for default validation flow
53+
shell make default
54+
end
4455

45-
# Quick check - just run tests on existing code
46-
check:
47-
poetry run make test-cdp test-import
56+
task "rebuild"
57+
describe Regenerate and validate all modules
58+
shell make generate
59+
shell make mypy-cdp
60+
shell make mypy-generate
61+
shell make test-cdp
62+
shell make test-generate
63+
shell make test-import
64+
end
65+
66+
task "check"
67+
describe Quick local verification path
68+
shell make generate
69+
shell make test-cdp
70+
shell make test-import
71+
end

Makefile

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,43 @@
11
# The targets in this makefile should be executed inside Poetry, i.e. `poetry run make
22
# docs`.
33

4-
.PHONY: docs
5-
6-
default: mypy-generate test-generate generate test-import mypy-cdp test-cdp
4+
.PHONY: default docs generate mypy-cdp mypy-generate test-cdp test-generate test-import
5+
.NOTPARALLEL:
6+
7+
PYTHON ?= $(if $(CONDA_PREFIX),$(CONDA_PREFIX)/bin/python,python)
8+
PYTEST ?= $(PYTHON) -m pytest
9+
MYPY ?= $(if $(CONDA_PREFIX),$(CONDA_PREFIX)/bin/mypy,mypy)
10+
SPHINXBUILD ?= $(PYTHON) -m sphinx
11+
12+
default:
13+
$(MAKE) mypy-generate
14+
$(MAKE) test-generate
15+
$(MAKE) generate
16+
$(MAKE) test-import
17+
$(MAKE) mypy-cdp
18+
$(MAKE) test-cdp
19+
20+
MYPY_CACHE_BASE ?= .mypy_cache
21+
MYPY_GENERATOR_CACHE ?= $(MYPY_CACHE_BASE)/generator
22+
MYPY_CDP_CACHE ?= $(MYPY_CACHE_BASE)/cdp
723

824
docs:
9-
$(MAKE) -C docs html
25+
$(MAKE) -C docs SPHINXBUILD="$(SPHINXBUILD)" html
1026

1127
generate:
12-
python generator/generate.py
28+
$(PYTHON) generator/generate.py
1329

1430
mypy-cdp:
15-
mypy cdp/
31+
$(MYPY) --cache-dir $(MYPY_CDP_CACHE) cdp/
1632

1733
mypy-generate:
18-
mypy generator/
34+
$(MYPY) --cache-dir $(MYPY_GENERATOR_CACHE) generator/
1935

2036
test-cdp:
21-
pytest test/
37+
$(PYTEST) test/
2238

2339
test-generate:
24-
pytest generator/
40+
$(PYTEST) generator/
2541

2642
test-import:
27-
python -c 'import cdp; print(cdp.accessibility)'
43+
$(PYTHON) -c 'import cdp; print(cdp.accessibility)'

cdp/.bish-index

Lines changed: 0 additions & 56 deletions
This file was deleted.

cdp/.bish.sqlite

-52 KB
Binary file not shown.

0 commit comments

Comments
 (0)