Skip to content

Commit 8352024

Browse files
committed
add: ruff linter
1 parent 99fa8ee commit 8352024

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

appmap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from _appmap.env import Env # noqa: F401
55
from _appmap.importer import instrument_module # noqa: F401
66
from _appmap.labels import labels # noqa: F401
7-
from _appmap.noappmap import decorator as noappmap
7+
from _appmap.noappmap import decorator as noappmap # noqa: F401
88
from _appmap.recording import Recording # noqa: F401
99

1010
try:

appmap/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def putheader(self, orig, header, *values):
5252
if not hasattr(request, "headers"):
5353
request["headers"] = {}
5454
headers = request["headers"]
55-
if not header in headers:
55+
if header not in headers:
5656
headers[header] = []
5757
headers[header].extend(values)
5858
orig(self, header, *values)

appmap/labeling/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import yaml
99
from importlib_resources import files
1010

11-
from _appmap.labels import LabelSet
11+
from _appmap.labels import LabelSet # noqa: F401
1212

1313

1414
@lru_cache(maxsize=None)

appmap/pytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ def pytest_pyfunc_call(pyfuncitem):
8080
try:
8181
with testing_framework.collect_result_metadata(metadata):
8282
result.get_result()
83-
except: # pylint: disable=bare-except
83+
except: # pylint: disable=bare-except # noqa: E722
8484
pass # exception got recorded in metadata

appmap/unittest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ packaging = ">=19.0"
4949
#
5050
# So, if you'd like to run the tests outside of tox, run `pip install -r requirements-dev.txt` to
5151
# install it and the rest of the dev dependencies.
52+
ruff = "^0.3.3"
5253

5354
[tool.poetry.group.dev.dependencies]
5455
SQLAlchemy = "^1.4.11"

0 commit comments

Comments
 (0)