Commit Graph

56 Commits

Author SHA1 Message Date
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