Skip to content

Commit

Permalink
[FIX] connector: ignore artificial linting issues in test and docs
Browse files Browse the repository at this point in the history
* connector/doc/locale/*/LC_MESSAGES/project.po violates po-requires-module
* Inheritance of objects in test setup is artificially redundant
  • Loading branch information
StefanRijnhart committed Feb 12, 2025
1 parent e802667 commit 8f1b3b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ exclude: |
# Ignore test files in addons
/tests/samples/.*|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
(LICENSE.*|COPYING.*)|
^connector/doc/
default_language_version:
python: python3
node: "14.18.0"
Expand Down
4 changes: 3 additions & 1 deletion connector/tests/test_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ def name(self):
pass

class FryMapperInherit(Component):
_inherit = "fry.mapper"
_inherit = ( # pylint: disable=consider-merging-classes-inherited
"fry.mapper"
)
_apply_on = "res.users"

@changed_by("email")
Expand Down

0 comments on commit 8f1b3b3

Please sign in to comment.