Skip to content

Commit

Permalink
Enable pylint checkers that find invalid escape sequences (cvat-ai#344)
Browse files Browse the repository at this point in the history
Fix the issues that they found.
  • Loading branch information
Roman Donchenko authored Jul 9, 2021
1 parent a858c58 commit 91e30a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion datumaro/plugins/sampler/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions datumaro/plugins/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 91e30a4

Please sign in to comment.