diff --git a/.pylintrc b/.pylintrc index 6c36cf6ea12f..58acd05d34f8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -155,6 +155,8 @@ enable= W1305, # format-combined-specification W1306, # missing-format-attribute W1307, # invalid-format-index + W1401, # anomalous-backslash-in-string + W1402, # anomalous-unicode-escape-in-string [REPORTS] diff --git a/datumaro/plugins/sampler/sampler.py b/datumaro/plugins/sampler/sampler.py index 797fd800a549..9672cc7a575b 100644 --- a/datumaro/plugins/sampler/sampler.py +++ b/datumaro/plugins/sampler/sampler.py @@ -13,7 +13,7 @@ class Sampler(Transform, CliPlugin): - """ + r""" Sampler that analyzes model inference results on the dataset |n and picks the best sample for training.|n |n diff --git a/datumaro/plugins/transforms.py b/datumaro/plugins/transforms.py index 7b0ad8b0253c..f1e6e362ea16 100644 --- a/datumaro/plugins/transforms.py +++ b/datumaro/plugins/transforms.py @@ -399,7 +399,7 @@ def transform_item(self, item): return item class Rename(ItemTransform, CliPlugin): - """ + r""" Renames items in the dataset. Supports regular expressions. The first character in the expression is a delimiter for the pattern and replacement parts. Replacement part can also @@ -409,7 +409,7 @@ class Rename(ItemTransform, CliPlugin): - Replace 'pattern' with 'replacement':|n |s|srename -e '|pattern|replacement|'|n - Remove 'frame_' from item ids:|n - |s|srename -e '|frame_(\d+)|\\1|' + |s|srename -e '|frame_(\d+)|\1|' """ @classmethod