Commit Graph

12 Commits

Author SHA1 Message Date
Pedro Algarvio
cc65301cc2 Merge branch 'develop' of github.com:saltstack/salt into hotfix/pylint/C0103 2012-12-30 15:58:16 +00:00
Pedro Algarvio
e92d5e0db2 Add __ret__ to additional-builtins config var on .pylintrc. Refs #1775. 2012-12-29 18:07:38 +00:00
Pedro Algarvio
79b7067256 W0142 added to .pylintrc disabled checkers.
`W0142` is triggered when `*` or `**` magic is used, for example:

```python
my_func(*args, **kwargs)
```

This PyLint checker is now disabled since we use it quite a lot, and, in fact, take advantage of this magic.
2012-12-29 16:15:35 +00:00
Pedro Algarvio
9eea488abf Merge branch 'develop' of github.com:saltstack/salt into hotfix/pylint/C0103 2012-12-28 22:59:23 +00:00
Pedro Algarvio
d6e01359bc Updated .pylintrc. Max arguments are now 35, max lines 3000. Refs #1775. 2012-12-28 22:55:14 +00:00
Pedro Algarvio
d6cd6174d6 Include ID's in the reports. 2012-12-28 15:51:13 +00:00
Pedro Algarvio
66e3bea992 Add __context__ to .pylintrc 2012-12-28 13:35:29 +00:00
Pedro Algarvio
caea4625f7 Add log to .pylintrc good names setting. Refs #1775. 2012-12-28 10:54:28 +00:00
Pedro Algarvio
06ab864c12 Oops, we can't just exit on the init-hook.
The encoded string now looks like:
```python
import os, sys

if 'VIRTUAL_ENV' in os.environ:

    ve_dir = os.environ['VIRTUAL_ENV']
    ve_dir in sys.path or sys.path.insert(0, ve_dir)
    activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')

    # Fix for windows
    if not os.path.exists(activate_this):
        activate_this = os.path.join(os.path.join(ve_dir, 'Scripts'), 'activate_this.py')

    execfile(activate_this, dict(__file__=activate_this))
```
2012-12-27 15:14:02 +00:00
Pedro Algarvio
45bcbef05a Add virtualenv support to .pylintrc
Include the current active virtualenv into pylint's init-hook.
The `base64` encoded string is:
```python
import sys, os

if 'VIRTUAL_ENV' not in os.environ:
    sys.exit(0)

ve_dir = os.environ['VIRTUAL_ENV']
ve_dir in sys.path or sys.path.insert(0, ve_dir)
activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')

if not os.path.exists(activate_this):
    activate_this = os.path.join(os.path.join(ve_dir, 'Scripts'), 'activate_this.py')

execfile(activate_this, dict(__file__=activate_this))
```
2012-12-27 15:02:40 +00:00
Baiju Muthukadan
1d53e056b2 include salt specific builtins 2012-05-01 22:58:16 +05:30
Baiju Muthukadan
39153a641d Autogenerated pylintrc (pylint --generate-rcfile) 2012-05-01 18:18:20 +05:30