Skip to main content

Pylint plugin for Odoo

Project description

[![Build Status](https://travis-ci.org/OCA/pylint-odoo.svg?branch=master)](https://travis-ci.org/OCA/pylint-odoo) [![Coverage Status](https://coveralls.io/repos/OCA/pylint-odoo/badge.svg?branch=master&service=github)](https://coveralls.io/github/OCA/pylint-odoo?branch=master) [![Pypi Package](https://img.shields.io/pypi/v/pylint-odoo.svg)](https://pypi.python.org/pypi/pylint-odoo)

# Pylint Odoo plugin

Enable custom checks for Odoo modules.

[//]: # (checks) Code | Description | short name — | — | — C7902 | Missing ./README.rst file. Template here: %s | missing-readme C8101 | Missing author required “%s” in manifest file | manifest-required-author C8102 | Missing required key “%s” in manifest file | manifest-required-key C8103 | Deprecated key “%s” in manifest file | manifest-deprecated-key C8104 | Use CamelCase “%s” in class name “%s”. You can use oca-autopep8 of https://github.com/OCA/maintainer-tools to auto fix it. | class-camelcase C8105 | License “%s” not allowed in manifest file. | license-allowed C8201 | No UTF-8 coding comment found: Use # coding: utf-8 or # -*- coding: utf-8 -*- | no-utf8-coding-comment E7901 | %s:%s %s | rst-syntax-error E7902 | %s error: %s | xml-syntax-error R8101 | Import Warning should be renamed as UserError from openerp.exceptions import Warning as UserError | openerp-exception-warning W7901 | Dangerous filter without explicit user_id in xml_id %s | dangerous-filter-wo-user W7902 | Duplicate xml record id %s | duplicate-xml-record-id W7903 | %s | javascript-lint W8101 | Detected api.one and api.multi decorators together. | api-one-multi-together W8102 | Missing api.one or api.multi in copy function. | copy-wo-api-one W8103 | Translation method _(“string”) in fields is not necessary. | translation-field W8104 | api.one deprecated | api-one-deprecated W8105 | attribute “%s” deprecated | attribute-deprecated W8106 | Missing super call in “%s” method. | method-required-super W8201 | Incoherent interpreter comment and executable permission. Interpreter: [%s] Exec perm: %s | incoherent-interpreter-exec-perm W8202 | Use of vim comment | use-vim-comment

[//]: # (end checks)

## Install # pip install –upgrade git+https://github.com/oca/pylint-odoo.git

Or

# pip install –upgrade –pre pylint-odoo

## Usage

pylint –load-plugins=pylint_odoo -e odoolint …

Example to test just odoo-lint case:

touch {ADDONS-PATH}/__init__.py

pylint –load-plugins=pylint_odoo -d all -e odoolint {ADDONS-PATH}

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint-odoo-1.0.0.tar.gz (15.5 kB view details)

Uploaded Source

File details

Details for the file pylint-odoo-1.0.0.tar.gz.

File metadata

  • Download URL: pylint-odoo-1.0.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pylint-odoo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a7ceb11f57af61f41c33721a9caddd5a52bea9897586dfcf0091ec9f50928674
MD5 5807a5128fc13ba8c006a9b30308d5a7
BLAKE2b-256 1f66356d7e6c76bc141ba2ed8c800f1a8b79a6afa9b7d32d0a91ba86af3a58ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page