File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,24 +48,19 @@ lint: .venv
4848
4949.PHONY : lint
5050
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-
5751apidocs : .venv
5852 @$(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
6155.PHONY : apidocs
56+
6257install-zeus-cli :
6358 npm install -g @zeus-ci/cli
6459.PHONY : install-zeus-cli
6560
6661travis-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 \
6964 || [[ ! " $( TRAVIS_BRANCH) " =~ ^release/ ]]
7065.PHONY : travis-upload-docs
7166
Original file line number Diff line number Diff line change 2222 from typing import Dict
2323 from typing import List
2424
25- from sentry_sdk import Hub
25+ import sentry_sdk
2626
2727_traceparent_header_format_re = re .compile (
2828 "^[ \t ]*" # whitespace
@@ -249,7 +249,7 @@ def _format_sql(cursor, sql):
249249
250250@contextlib .contextmanager
251251def record_sql_queries (
252- hub , # type: Hub
252+ hub , # type: sentry_sdk. Hub
253253 cursor , # type: Any
254254 query , # type: Any
255255 params_list , # type: Any
Original file line number Diff line number Diff line change @@ -576,4 +576,4 @@ def dispatch_request(self):
576576 event , = events
577577
578578 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