Комментарии:
Great video, Arjan! I wonder why you manually built the sample package. In uv: "uv init my_project --package" does it all for you ;-)
ОтветитьAwesome walkthrough. Thanks for sharing! I really have become fond of devcontainers. I can't go back as this solved my virtual env woes for any project and helped me tackle some CI/CD issues so much faster. Would love to see what you do with devcontainers at Arjan Codes 🤩
ОтветитьIf only Jetbrains AI assistant supported Claude 3.5 Sonnet..
ОтветитьThanks for sharing such valuable information! I need some advice: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How can I transfer them to Binance?
Ответить"files.autoSave": "onFocusChange" is a life saver for someone like me, who can sit and "debug" why my code does not work, and after 10 minutes or so realize that I had not saved.
ОтветитьGreat advice, thanks. I myself spent a lot of time on the pytest import troubles. It is a rabbit hole which I crawled out of with different opinions and no solid answers. Maybe you might have also mentioned how to fix that also for other team members who do not use VSCode.
ОтветитьIf you haven't yet, I recommend looking into devbox.
ОтветитьThanks Arjan. Great stuff.
ОтветитьLooking forward to the full UV walk through!
ОтветитьGreat content as always. I’ve used Dev Containers for a project. Worked well other than some odd github errors. When are you going to do a video on your mechanical keyboard? And a final suggestion. You should sell Arjancodes hoodies since you seem to like hoodies.😂😂😂 I would totally buy one with some tulip bulbs I have.
ОтветитьHonestly, I find the best way to setup VSCode for Python is to install PyCharm. I also love Neovim, but it's just too much effort to avoid working ON Neovim rather than working IN Neovim.
ОтветитьUV is very sketchy. It's written in Rust but describes itself as "extremely fast". Everyone and their grandma knows that Rust projects are BLAZINGLY fast!
Ответитьwhat kind of keyboard is that?
ОтветитьI'd highly recommend the GitGraph extension. It's lightweight and does everything I need it to do fast. Best way to view and navigate commits and diffs visually!!
ОтветитьThanks a lot for this high quality video. Pretty helpful since I had never invested time touching my settings.
I have a question, why not just specify the src directory as a package within the pyproject.toml file (under [project] or for poetry users [tool.poetry]?
If we have to set up a worfklow to build and test the code every time we push, i do not think this will work. Am I missing something?
Postman is evil software
Ответитьi like this thank you
ОтветитьWaiting for your detailed video on uv🥳
ОтветитьHi, have You already tried devcontainers under vscode for fastapi development? if yes and by any miracle you found out how to configure this for a basic fastapi+database instance on vscode, could You make a tutorial on this?
ОтветитьDevcontainer pls!!
ОтветитьMy recommendation: dev-containers. Absolute godsent!
ОтветитьI have 172 Extensions installed right now. Down from ~250. A bunch of them are junk, but I've found some useful extension in my searching. Better comments + TODO Highlight + Todo Tree all pair nicely for searching a codebase for all the things that never got done.
I like njpwerner.autodocstring, alefragnani.Bookmarks, kamikillerto.vscode-colorize, pranaygp.vscode-css-peek, Everyone should know eamodio.gitlens, nhoizey.gremlins <- lifesaver, oderwat.indent-rainbow, johnpapa.vscode-peacock is nice for when you're too lazy to color code projects yourself, pnp.polacode for the socials, chrmarti.regex if you write a lot of regex, WakaTime.vscode-wakatime, If you're getting deep into it lehni.vscode-fix-checksums is nice when microsoft starts complaining about the horrible things you've done.
God so many of the extensions are just extended language support...
LOL!!! I am 13 min. into the video and everything so far is nonsense. For learning and even first pretty darn large projects this is a drag on learning....too many parts and pieces in the air, that take away concentrations needed for learning or even just basic problem solving. Text editor and interpreter i is fast. The only dodad that seems worth it is git but even that is a pain. 'Hey lets learn this other programing language to learn this programing language. It's endless if you even step on foot in that direction. IMO
Ответитьthanksssssss😃
ОтветитьNice Setup instructions.
ОтветитьAs alsways a great video - dev containers do look cool - I have played a little with them but... Should make dev test and build enviroments even more pridictable and repeatable
ОтветитьThe video is awesome, but is pointing on, Python is missing a more general build tool like Rust has. The vscode config is a bad place for a project structure.
ОтветитьThe video is very usefull. Thank you! I just want to share an issue i had with using content from your git repo. It includes the setting explorer.excludeGitIgnore": true. When you list .env and .log files in .gitignore, they become invisible in the vscode explorer
ОтветитьI am from China and my English listening is not good. Can you please upload subtitles? I like you very much
Ответитьif you do a uv video, pls pls cover actual project management, e.g., how to update dependencies (direct vs indirect). Everyone conveniently skips this part. Adding/removing is trivial. Another source of confusion is directory setup (src vs flat layout) such that vscode can correctly pick up pkgs and tests
ОтветитьMy boss at work wants us all to use VS Code to align on tooling or some nonsense. Luckily it has a Neovim extension. The only problem I have is I cant stand the red and yellow lines coming up as I type, but I want to keep the helpful autocomplete and auto docs. I cant figure out how to have one or the other. The glorious feature of Neovim is no lint highlights while typing in insert mode, while normal mode shows me.
ОтветитьI am not sure you need _init_ in the src folder if src is in your python path, unless you plan to do from src import, but the you would have to add the project root to path.
ОтветитьIt would be awesome if you covered how vscode settings work when you're using WSL in Windows; there appears to be a setting tab between "user" and "workspace" which covers the WSL "remote". (The default setup for using VSCode with WSL is "Windows version of VSCode connected to a Remove within the WSL environment".)
ОтветитьYou are very good at what you do, sir.
Ответитьwtf is line length 88 :D
ОтветитьAm I the only one who's very happy now to see that a pro software engineer like Arjan also puts his vscode's sidebar at left? I mean I wonder why it's not the default setting in vscode! Before watching this awesome video, I felt like a weirdo among other engineers just for using such a unique IDE configuration! What a relief!
Anyways, all of these vscode tips are golden and this tutorial is worth watching a thousand times. Thanks al lot bro.
Hi @ArjanCodes, I'm using VScodium (a free and completely opensource variant of VSCode, which does'nt have the non-free MS specific bits, nor the telemetry stuff). In that version, it seems that the setting "python.analysis.extraPaths" is not supported (it remains dimmed out in my workspace settings.json file, indicating it is not recognised). As for the extensions, I'm using the classic Python and Python debugger MS extensions, plus the Black formatter, isort and Flake8 extensions from MS (ms-python). Additionally, because I'm using Linux and Bash, I also have ShellCheck, and for code analysis, I've installed the SonarLint (from SonarQube) to keep code smells and complexity in check. Thanks for sharing your knowledge! Cheers!
ОтветитьThere’s a nice extension called peacock for managing title bar colors for identifying project..
ОтветитьI struggled a long time actually to get python management correct in windows and make vscode use your virtual environment correctly, and also had issues with pyenv previously installed on one system using uv. It is especially annoying if your python project is a subfolder of a bigger project, I have not found better solutions yet than to open the subfolder as new project. Should not be a problem for anything that uses only one main python deployment in the root folder. But generally uv has taken python into the direction of finally working out of the box, even if not at the level yet as I experience it in rust with cargo. I also really like the project manager plugin (by alessandro fragnani) in vscode, which also works well together with workspace setting files.
ОтветитьEverything works like a charm, but i can't get "Run Python File" in VsCode to work and derect the modules inside /src when expecting to evaluate if _name_ == "__main__", is there a missing config entry for this in VsCode?
ОтветитьGIVE ME SYNTHWAVE84 COLOR SCHEME OR GIVE ME DEATH
Ответитьwhy wouldn't you just install the project's package into the venv instead of using a vscode specific setting?
ОтветитьGreat video. Started using uv myself recently, and can highly recommend.
ОтветитьHELL YEAH!!!! i was about to burn my pc!
ОтветитьYou can fix it once and for all with using devcontainers. Just set it up correctly and all your team members work in the same environment. "works on my machine" is simply gone this way. And even better, the CI (e.g. GitHub Actions) can use the same environment and also Codespaces just work. This is, how I do my Python development since a few month. I also heard, that the support for devcontainers on Windows is getting better and better (not a surprise, since VSCode and devcontainers come from Microsfot itself).
PS: At work we use this already in almost any GitHub Repository, e.g. our infrastructure repository that contains ansible playbooks, roles,... The devcontainer simply provides the correct python and ansible versions and all other tools needed to administrate our servers, VMs,... And guess what, "works on my machine" simply vanished. When new team members join, it is a matter of minutes to get them to speed instead of having a large README, what and where to install stuff...
Is there a way to save the folder settings into some kind of template so when I work on multiple Python projects, I can use this template as a starting point?
Ответить