-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] deprecated-odoo-model-method: New check to detect deprecated me…
…thod for each Odoo version (#470) * [ADD] deprecated-odoo-model-method: New check to detect deprecated method for each Odoo version (#470) This new check looks for model methods that have been deprecated and should not be overriden in model classes. It takes into account odoo versions and comes with sane defaults which can be replaced by a custom list in the configuration file. Closes #469. * [REF] tests: support custom rcfiles Tests can now specify their own rcfiles, previously it was always /dev/null (no rcfile). This makes it possible to test the behavior of tests when options are provided through rcfiles. There is also no need to supply /dev/null as a rcfile. Pylint internally uses a default RC file if not provided. It also makes it redundant to use `_add_rcfile_default_pylintrc` in tests.
- Loading branch information
Showing
6 changed files
with
154 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ODOOLINT] | ||
deprecated-odoo-model-methods={ | ||
'15.0': {'custom_deprecated_method_just_because', 'another_deprecated_model_method'}, | ||
'16.0': {'fields_view_get'}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters