Skip to content

Commit

Permalink
Use extend functionality in mqt-compat/pylintrc
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca Bakker <[email protected]>
  • Loading branch information
carmenbianca committed Feb 23, 2022
1 parent 2078d01 commit 9ef6115
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
5 changes: 4 additions & 1 deletion version-specific/mqt-compat/.pylintrc-mandatory.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ disable=all
# too-few-format-args - E1306
# unreachable - W0101

{% block note %}{% endblock %}

enable=anomalous-backslash-in-string,
assignment-from-none,
dangerous-default-value,
Expand All @@ -57,7 +59,8 @@ enable=anomalous-backslash-in-string,
manifest-author-string,
manifest-required-author,
manifest-required-key,
manifest-version-format,
manifest-version-format
{%- block optional_checks %}{% endblock %}

[REPORTS]
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
Expand Down
33 changes: 12 additions & 21 deletions version-specific/mqt-compat/.pylintrc.jinja
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
[MASTER]
load-plugins=pylint_odoo
score=n

[ODOOLINT]
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest_required_authors=Odoo Community Association (OCA)
manifest_required_keys=license
manifest_deprecated_keys=description,active
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
valid_odoo_versions={{ odoo_version }}

[MESSAGES CONTROL]
disable=all
{% extends "version-specific/mqt-compat/.pylintrc-mandatory.jinja" %}
{% block note %}
# This .pylintrc contains optional AND mandatory checks and is meant to be
# loaded in an IDE to have it check everything, in the hope this will make
# optional checks more visible to contributors who otherwise never look at a
# green travis to see optional checks that failed.
# .pylintrc-mandatory containing only mandatory checks is used the pre-commit
# config as a blocking check.

# Beta message and code:
# api-one-deprecated - W8104
Expand Down Expand Up @@ -51,8 +45,9 @@ disable=all
# use-vim-comment - W8202
# wrong-tabs-instead-of-spaces - W7910
# xml-syntax-error - E7902

enable=api-one-deprecated,
{% endblock %}
{% block optional_checks %},
api-one-deprecated,
api-one-multi-together,
attribute-deprecated,
class-camelcase,
Expand Down Expand Up @@ -93,8 +88,4 @@ enable=api-one-deprecated,
use-vim-comment,
wrong-tabs-instead-of-spaces,
xml-syntax-error,

[REPORTS]
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
output-format=colorized
reports=no
{% endblock %}

0 comments on commit 9ef6115

Please sign in to comment.