Skip to content

Commit d5d2715

Browse files
committed
Disable import mangling in autopep8 when integrated in emacs as it breaks some cases where migrid modules require sys.path mangling
git-svn-id: svn+ssh://svn.code.sf.net/p/migrid/code/trunk@6074 b75ad72c-e7d7-11dd-a971-7dbc132099af
1 parent 7ce4a99 commit d5d2715

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mig/install/mig-user/.emacs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@
120120
; pip install autopep8
121121
; wget https://raw.githubusercontent.com/paetzke/py-autopep8.el/master/py-autopep8.el \
122122
; -O ~/.emacs.d/site-lisp/py-autopep8.el
123-
;
123+
;
124+
; NOTE: we adjust max line length and disable import mangling as it breaks
125+
; some migrid modules.
124126
(require 'py-autopep8)
125127
(add-hook 'python-mode-hook 'py-autopep8-enable-on-save)
126-
(setq py-autopep8-options '("--max-line-length=79"))
128+
(setq py-autopep8-options '("--max-line-length=80 --ignore E402"))
127129

128130
;; Prefer espresso mode from
129131
;; http://download.savannah.gnu.org/releases-noredirect/espresso/espresso.el

0 commit comments

Comments
 (0)