I am using elpy with emacs and flake8 as my syntax checker.
I find that it keeps checking for syntax everytime i type, like if start opening a parenthesis it complains of syntax error, this leads to me not being able to see function declarations while typing and slows down emacs too.
How do i remove this functionality so that syntax is checked only when i save the file.
Here are the relevant lines from my emacs configuration.
(elpy-enable)
(pyvenv-activate (expand-file-name "~/lpackages/anaconda3/envs/MLenv"))
(setq elpy-rpc-backend "jedi")
;;(elpy-use-ipython)
(require 'python)
(setq python-shell-interpreter "ipython"
python-shell-interpreter-args "--simple-prompt -i")
(require 'py-autopep8)
(add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)
;;import company settings
(require 'company-config)