Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appmap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from _appmap.env import Env # noqa: F401
from _appmap.importer import instrument_module # noqa: F401
from _appmap.labels import labels # noqa: F401
from _appmap.noappmap import decorator as noappmap
from _appmap.noappmap import decorator as noappmap # noqa: F401
from _appmap.recording import Recording # noqa: F401

try:
Expand Down
2 changes: 1 addition & 1 deletion appmap/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def putheader(self, orig, header, *values):
if not hasattr(request, "headers"):
request["headers"] = {}
headers = request["headers"]
if not header in headers:
if header not in headers:
headers[header] = []
headers[header].extend(values)
orig(self, header, *values)
Expand Down
2 changes: 1 addition & 1 deletion appmap/labeling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import yaml
from importlib_resources import files

from _appmap.labels import LabelSet
from _appmap.labels import LabelSet # noqa: F401


@lru_cache(maxsize=None)
Expand Down
2 changes: 1 addition & 1 deletion appmap/pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ def pytest_pyfunc_call(pyfuncitem):
try:
with testing_framework.collect_result_metadata(metadata):
result.get_result()
except: # pylint: disable=bare-except
except: # pylint: disable=bare-except # noqa: E722
pass # exception got recorded in metadata
2 changes: 1 addition & 1 deletion appmap/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

if not Env.current.is_appmap_repo and Env.current.enables("unittest"):
logger.debug("Test recording is enabled (unittest)")
import _appmap.unittest # pyright: ignore pylint: disable=unused-import
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This import needs to be retained, so it should be marked with # noqa: F401 rather than deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

import _appmap.unittest # pyright: ignore pylint: disable=unused-import # noqa: F401
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ uvicorn = "^0.27.1"
fastapi = "^0.110.0"
httpx = "^0.27.0"
pytest-env = "^1.1.3"
ruff = "^0.3.3"

[build-system]
requires = ["poetry-core>=1.1.0"]
Expand Down