File tree 3 files changed +8
-13
lines changed
3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -48,24 +48,19 @@ lint: .venv
48
48
49
49
.PHONY : lint
50
50
51
- apidocs-sphinx : .venv
52
- @$(VENV_PATH ) /bin/pip install --editable .
53
- @$(VENV_PATH ) /bin/pip install -U -r ./docs-requirements.txt
54
- @$(VENV_PATH ) /bin/sphinx-build -b html docs/ docs/_build
55
- .PHONY : apidocs-sphinx
56
-
57
51
apidocs : .venv
58
52
@$(VENV_PATH ) /bin/pip install --editable .
59
- @$(VENV_PATH ) /bin/pip install pdoc==0.3.2 pygments
60
- @$(VENV_PATH ) /bin/pdoc --overwrite --html -- html-dir build/apidocs sentry_sdk
53
+ @$(VENV_PATH ) /bin/pip install -U -r ./docs-requirements.txt
54
+ @$(VENV_PATH ) /bin/sphinx-build -W -b html docs/ docs/_build
61
55
.PHONY : apidocs
56
+
62
57
install-zeus-cli :
63
58
npm install -g @zeus-ci/cli
64
59
.PHONY : install-zeus-cli
65
60
66
61
travis-upload-docs : apidocs install-zeus-cli
67
- cd build/apidocs && zip -r gh-pages ./sentry_sdk
68
- zeus upload -t " application/zip+docs" build/apidocs /gh-pages.zip \
62
+ cd docs/_build && zip -r gh-pages ./sentry_sdk
63
+ zeus upload -t " application/zip+docs" docs/_build /gh-pages.zip \
69
64
|| [[ ! " $( TRAVIS_BRANCH) " =~ ^release/ ]]
70
65
.PHONY : travis-upload-docs
71
66
Original file line number Diff line number Diff line change 22
22
from typing import Dict
23
23
from typing import List
24
24
25
- from sentry_sdk import Hub
25
+ import sentry_sdk
26
26
27
27
_traceparent_header_format_re = re .compile (
28
28
"^[ \t ]*" # whitespace
@@ -249,7 +249,7 @@ def _format_sql(cursor, sql):
249
249
250
250
@contextlib .contextmanager
251
251
def record_sql_queries (
252
- hub , # type: Hub
252
+ hub , # type: sentry_sdk. Hub
253
253
cursor , # type: Any
254
254
query , # type: Any
255
255
params_list , # type: Any
Original file line number Diff line number Diff line change @@ -576,4 +576,4 @@ def dispatch_request(self):
576
576
event , = events
577
577
578
578
assert event ["message" ] == "hi"
579
- assert event [' transaction' ] == ' hello_class'
579
+ assert event [" transaction" ] == " hello_class"
You can’t perform that action at this time.
0 commit comments