Rock Solid Python with Python Typing Transcripts
Chapter: Tools Based on Typing
Lecture: Editors (Round 2)

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Now the first one you've already seen in a sense, and that's our code editors.
0:06 I strongly encourage you to use one of the modern editors that understands Python type
0:12 information, as well as autocomplete refactoring like 21st century, the sort of thing, you
0:18 know, and primarily, you know, the, the 2023, well, the results for the Python Community
0:25 survey on how people are using Python that comes out in 2023, even though it was actually the survey from last year.
0:34 That said basically what editor using and the editors were VS Code and PyCharm and pretty much nothing else, right?
0:43 It was like very high numbers there and then three, 4% for anything else. So most of you are doing this, most of you are using these types of editors.
0:52 So obviously in this course we're using PyCharm, but VS Code has a bunch of functionality as well.
0:58 But your editors are super, super important for this. And you've seen a ton of that, right?
1:04 We've written a lot of code and we get little errors and even sometimes some auto fix correction
1:09 options to work on what's wrong with our code with regard to typing.
1:13 But I got one more trick up my sleeve with regards to the editor to show you how you you can do more than just, oh, I was scrolling through
1:21 and I saw a squiggly line, so I worked on it. And that's full project inspection in PyCharm. So here's the final example code that before I created it,
1:32 the starting code that I wanted to sort of use to write this course. And you can go through and go to the very top level
1:40 with all of the code, all the different files and all the different pieces, and you can say, I wanna inspect the entire project.
1:47 Now by default, what this is gonna do is it's gonna run all the rules, like do you have your commas set correctly? And are you have any unused imports?
1:57 Well, we can tame that back, turn that down some and sure you can run all that inspection
2:03 if you like, but notice here it says inspection profile type checking only.
2:09 And so this is something that I came up with it is a limited set of these inspections that we can run against everything.
2:17 So regardless of if you have the file open, you can get basically whole project analysis of the type information. So we're gonna do that next.


Talk Python's Mastodon Michael Kennedy's Mastodon