Тёмный

a flake8 plugin from scratch (intermediate) anthony explains  

anthonywritescode
Подписаться 39 тыс.
Просмотров 11 тыс.
50% 1

today I build a flake8 plugin from scratch showing the bare minimum to add a new lint check! I also demo all the related tools I use to make this happen: astpretty, pytest, flake8, and a little bit of python packaging!
- flake8: gitlab.com/pycqa/flake8
- flake8-2020: github.com/asottile/flake8-2020
- astpretty: github.com/asottile/astpretty
- pytest: github.com/pytest-dev/pytest
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/asottile
stream github: github.com/anthonywritescode
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

Наука

Опубликовано:

 

13 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@didku11
@didku11 Год назад
I love your videos. Today I thought one company-specific plugin would be helpful, but I thought it'll be hard to write it. And now I just watched your video and wrote it about an hour.
@avallbona
@avallbona 4 года назад
This is dope!!
@rushalverma8719
@rushalverma8719 3 года назад
Thanks for the video, it's really helpful. I am making my first plugin and this is pretty helpful
@WelcomeToSex101
@WelcomeToSex101 4 года назад
Hey, I watch your streams and I just found out that you talk about some really cool stuff here on your channel. On stream you do a lot of open source programming and a big part of that (it seems) is your masterful usage of git. You seem to know your way around git and it would be interesting if you can make a video about semi-advanced usage of git in a "open source" setting. Like, what you most commonly use in git while developing, some tricks that you've acquired over the years and some things that you think are worth knowing. I would love learning about git from you!
@anthonywritescode
@anthonywritescode 4 года назад
I have a few git-related ones planned! should be coming soon :)
@GurashishSingh1
@GurashishSingh1 Год назад
This was super informative! I have never used the ast module. Any suggestions on how to get started playing around with ast?
@anthonywritescode
@anthonywritescode Год назад
no real suggestions beyond just doing something with it! astpretty is helpful for visualizing
@Schulesucks
@Schulesucks 2 года назад
Great Video! I have one Question: is it possible to make the checks depending on the filename? for example to check if a class is defined in a file which has the filename as the classname? I guess this needs to be done before the plugin is loaded?
@Schulesucks
@Schulesucks 2 года назад
I found the solution. If someone else needs ist: you can just get filename as an input parameter of the init method in plugin (after tree)
@anthonywritescode
@anthonywritescode 2 года назад
you can, but it's kind of a bad idea -- for instance your code may be fed through `--stdin` and won't know what file its in
@talalkalai8748
@talalkalai8748 Год назад
couldnt find any in-depth video about pluggy
Далее
Суши из арбуза?!
00:34
Просмотров 146 тыс.
Boots on point 👢
00:24
Просмотров 1,2 млн
Python AST Parsing and Custom Linting
11:24
Просмотров 43 тыс.
Intel's CPUs Are Failing, ft. Wendell of Level1 Techs
23:59
Don't throw exceptions in C#. Do this instead
18:13
Просмотров 252 тыс.
pytest Basics: The conftest.py File
8:52
Просмотров 2,4 тыс.
The flake8 Library
34:46
Просмотров 3,8 тыс.