Linters and fixers: never worry about code formatting again (Vim + Ale + Flake8 & Black for Python)
ฝัง
- เผยแพร่เมื่อ 1 พ.ย. 2024
- Python linters
Flake8: flake8.pycqa.o...
pydocstyle: pypi.org/proje...
bandit: github.com/PyC...
mypy: mypy-lang.org/
Pylint: www.pylint.org/
Python fixers
Black: black.readthed...
Łukasz Langa - Life Is Better Painted Black, or: How to Stop Worrying and Embrace Auto-Formatting: • Łukasz Langa - Life Is...
Black: editor integration: black.readthed...\_integration.html
Yapf: github.com/goo...
autopep8: github.com/hha...
isort: github.com/tim...
Setting up (Neo)Vim
Vim-plug: github.com/jun...
Ale (Asynchronous Lint Engine): github.com/den...
Thanks a lot !
One has to get use to the black transformations of the code, but quickly you realise how convenient and more readable it is
I only login to say thank you so much ,this tutorial was explained so clear
Thanks! I appreciate it!
Your video saved me. I was fighting with ALE documentation to find how to enable pylint, black and mypy, and you just showed it effortlessly. And you even explained to me why flake8 is better than pylint in just one video! Cheers, brother!
Same here, super helpful, thank you! :)
I was struggling with ALE earlier today. This video is super helpful, thank you.
thanks a lot dude, also your voice is soothing
good video with clear indications and explanations thanks !
Thank you so much, As a beginner to vim this helped me so much!
Thanks for sharing! Good, nuanced advice, presented well. Good duration. Subscribed.
Awesome tutorial. I love you.
What's up guys I have a problem using ALE in vim, the problem is that when I make a mistake programming in python ALE informs me of the error not only in the vim status line but also puts an error message next to the line of code, for example: print('hello) # E: EOL while scanning string literal [syntax].
the message "# E: EOL while scanning string literal [syntax]" is the one I want to get out of my code and have only ALE show me the error messages in the status line below. how can I solve that? The same thing also happens to me when I'm working on a verilog file
Thank you for such a nice video 😀.. it explains all concepts very clear and precisely. 😎
Thank you very much.
Thank you, amazing work!
"""This is a Great video!""" Thanks
This is amazing tysm
Nice video with good explanations. Thanks!
Thanks for such an informative video. I will give ALE a go!
Have fun!
Great tutorial 👏👏
Great explanation, thanks!
Thank you, Ahn
!
Thank you, cleared it up for me.
Super helpflul
Black makes life much easier!
very helpful, thanks
If your let g:ale_linters lists moe then 1 linters - which one will be used? (all of them sequentially?)
In the case of fixers, it runs them sequentially. So I'd assume that it will run linters sequentially as well.
Hi, Im new to vim and im currenting using wsl ubuntu. I wanna ask what kind of vim you are using which allows this friendly ui.Thanks!
That can be a topic for another video! I use Neovim and Airline plugin for the status bar. yyahnwiki.appspot.com/Vim/Airline (it's been a while so some steps may need to be changed).
nice tips . thank you!
Thank you! Also, how did you get your hjkl to move so quickly?
That’s determined by your keyboard repeat delay setting, not vim.
Nice vid! Thanks!
Perhaps a silly question, what font are you using in neovim? Thanks for the video. It helps a lot!!
www.nerdfonts.com/font-downloads I've been using Inconsolata, JetBrainsMono, Meslo, Noto.
thanks a lot.
awesome vid! it helped me setup ale 😊
Super helpful and clear! Thank you! =D
Are you running tmux? Nice bottom bar. How can I get that?
I believe that was airline github.com/vim-airline/vim-airline. If you use neovim, now you can probably want to use github.com/nvim-lualine/lualine.nvim
Well done video!
Ty very much!
when i type flake8 in terminal i am getting this error:
zsh : permission denied: flake8
You probably want to run "which flake8" and check its permission.
I enjoyed this, I'm going to try Flake8 and Black for Python. Do you also do Perl ? I'd be interested in your ideas on linters and fixers for Perl.
ALE seems to support these two linters: github.com/dense-analysis/ale/tree/master/ale_linters/perl I rarely use perl so I don't have a good answer. Sorry!
Thanks for the vid! Do you also use an auto completion library? Which one?
github.com/Shougo/deoplete.nvim with github.com/deoplete-plugins/deoplete-jedi and github.com/SirVer/ultisnips
@@yyahn Make a quick video about that?
its really confusing for beginners.
How does your vimrc file looks like?
Maybe a topic for a video!
Is it sublime? You are using?
It’s neovim. :)