This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Pylint plugin for OCA

Project Description
# THIS PROJECT IS DEPRECATED BY https://github.com/oca/pylint-odoo




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



# OCA pylint plugin

Enable custom checks for OCA 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/moylop260/pylint_oca.git`

Or

`# pip install --upgrade --pre oca-pylint-plugin`


## Usage

`pylint --load-plugins=pylint_oca -e odoolint ...`


Example to test just odoo-lint case:

`touch {ADDONS-PATH}/__init__.py`

`pylint --load-plugins=pylint_oca -d all -e odoolint {ADDONS-PATH}`

CHANGES
=======

1.11.2
------

* [REF] .travis.yml: Auto generate ChangeLog

1.11.1
------

* [REF] setup: Enable changelog
* Update README.md

1.11.0
------

* [REF] incoherent-interpreter-exec-perm: Add explicit message of how to fix it
* [IMP] Add messages2md method and add all messagess to README.md file
* [IMP] Add check for method-required-super
* [IMP] deprecated-attributes: Add check to depreated attributes
* [IMP] Add license allowed check
* Add docstring and typo
* [IMP] api-one-deprecated: Enable check of deprecated api.one decorator
* [REF] .coveragerc: Add except OSError
* [REF] jslint: Try-except if jshint is not installed
* [IMP] jslint: Add new check to javascript files with jshint
* [REF] .travis.yml: Fix coveralls dependency
* [REF] .travis.yml: Add comments and add coverage report
* [IMP] jslint: Add check of lint to js files
* [REF] .travis.yml: testing speed of build without ignore installed parameters
* [REF] .travis.yml: Remove deprecated download-cache in pip command
* squash
* [REF] .travis.yml: Remove lxml from requirements.txt just in travis build
* dummy-commit
* [REF] .travis.yml: Use of ignore-installed and download-cache in pip install command
* [REF] rst-syntax-error: Use of restructuredtext_lint package
* [REF] .travis.yml: Fix cache pip

1.10.0
------

* [REF] .travis.yml: Fixing cache
* [REF] .travis.yml: Enable pypi deploy in tags
* [FIX] argument_aux.func.name == '_': AttributeError: 'Getattr' object has no attribute 'name'

1.9.0
-----

* [REF] misc: Fix except style
* [IMP] Enable check to verify fields with _('string')
* Update README.md
* Update README.md

1.8.0
-----


1.7.1
-----

* [REF] support code-block with pygments. Fix OCA/maintainer-quality-tools#250
* Update README.md
* Update README.md

1.7.0
-----

* [REF] encoding: Avoid encoding check in __init__.py file
* typo

1.6.0
-----

* [FIX] unicode strip error
* Update README.md
* [REF] Readme: Adding pypi badge

1.5.0
-----

* [REF] coding comment: Suppport `# coding: utf-8`

1.4.0
-----

* [FIX] Fix manifest double dict=dict

1.3.0
-----

* [REF] xml-syntax-error: Add one line per file. [REF] extension: Support to upper case

1.2.0
-----

* [FIX] Enable check and fix xml syntax error
* Update README.md
* Update README.md

1.1.0
-----

* [REF] checkers: Support spaces between each author
* [REF] misc: Fix UnicodeDecodeError in xml read
* [REF] Adding testing without manifest file
* [REF] Adding testing disabling
* [ADD] test_module
* [REF] Testing supress case
* [REF] Add unitest
* [REF] Change directory structure
* mv tests->pylint_oca/test
* [FIX] lxml requirements
* [ADD] basic tests
* [ADD] .travis.yml: Enable travis file
Release History

Release History

This version
History Node

1.11.2

History Node

1.11.1

History Node

1.11.0

History Node

1.10.1.dev29

History Node

1.10.1.dev27

History Node

1.10.1.dev17

History Node

1.10.1.dev12

History Node

1.10.1.dev7

History Node

1.10.0

History Node

1.9.0

History Node

1.8.1.dev2

History Node

1.8.1.dev1

History Node

1.8.0

History Node

1.7.2.dev1

History Node

1.7.1.dev3

History Node

1.7.1.dev2

History Node

1.7.1.dev1

History Node

1.6.1.dev1

History Node

1.6.0

History Node

1.5.1.dev3

History Node

1.5.1.dev2

History Node

1.5.1.dev1

History Node

1.5.0

History Node

1.4.0

History Node

1.3.0

History Node

1.2.1.dev1

History Node

1.1.1.dev2

History Node

1.1.1.dev1

History Node

1.1.0

History Node

1.0.2.dev26

History Node

1.0.2.dev25

History Node

1.0.2.dev24

History Node

1.0.2.dev23

History Node

1.0.2.dev22

History Node

1.0.2.dev21

History Node

1.0.2.dev10

History Node

1.0.2.dev9

History Node

1.0.2.dev8

History Node

1.0.2.dev7

History Node

1.0.2.dev4

History Node

1.0.2.dev2

History Node

0.0.1.dev29

History Node

0.0.1.dev25

History Node

0.0.1.dev24

History Node

0.0.1.dev23

History Node

0.0.1.dev22

History Node

0.0.1.dev21

History Node

0.0.1.dev20

History Node

0.0.1.dev17

History Node

0.0.1.dev16

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
oca-pylint-plugin-1.11.2.tar.gz (18.8 kB) Copy SHA256 Checksum SHA256 Source Oct 31, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting