I came across pre-commit from pre-commit, and it’s packed with great features and ideas.
A framework for managing and maintaining multi-language pre-commit hooks.
GitHub stars posts
I came across pre-commit from pre-commit, and it’s packed with great features and ideas.
A framework for managing and maintaining multi-language pre-commit hooks.
I really like having global cli command installed with pipx. Since textual 0.2.x (the css release) is out I want to be able to pop into textual devtools easily from anywhere.
You can pipx install textual.
pipx install textual
But if you try to run any textual cli commands you will run into a ModuleNotFoundError, because you need to install the optional dev dependencies.
Traceback (most recent call last): File "/home/u_walkews/.local/bin/textual", line 5, in <module> from textual.cli.cli import run File "/home/u_walkews/.local/pipx/venvs/textual/lib/python3.10/site-packages/textual/cli/cli.py", line 4, in <module> import click ModuleNotFoundError: No module named 'click'
In order to install optional dependencies with pipx you need to first install the library, then inject in the optional dependencies using the square bracket syntax.
I am working through the textual tutorial, and I want to put it in a proper cli that I can pip install and run the command without textual run --dev app.py. This is a fine pattern, but I also want this to work when I don’t have a file to run.
I set up a new project running hatch new, and added the following entrypoint, giving me a tutorial cli command to run.
... [project.scripts] tutorial = 'textual_tutorial.tui:tui'
https://waylonwalker.com/hatch-new-cli/
If you are using setup.py, you can set up entrypoints in the setup command.
...
The work on PrismLauncher by PrismLauncher.
A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once (Fork of MultiMC)
I’m really excited about learn-cloudformation, an amazing project by widdix. It’s worth exploring!
Learn how to use Infrastructure as Code on AWS with the help of CloudFormation.
For far too long I have had to fidget with v4l2oloopback after reboot. I’ve had this happen on ubuntu 18.04, 22.04, and arch.
After a reboot the start virtual camera button won’t work, It appears and is clickable, but never turns on. Until I run this command.
Upon first running an The easy easiest way is to leverage a package called If you want to use the cli pro I ran into an issue where I was unable to ask localstack for its status. I would run the command and it would tell me that it didn’t have permission to read files from my own home directory. Let’s fix it I would run this to ask for the status. And get this error It dawned on me that the first time I ran localstack was straight docker, not the python cli. When docker runs it typically runs as root unless the Dockerfile sets up a user and group for it. ... Markata now allows you to create jinja extensions that will be loaded right in with nothing more than a The entry for 0.5.0.dev2 from markata’s changelog In my adventure to learn django, I want to be able to setup REST api’s to feed into dynamic front end sites. Potentially sites running react under the hood. To get started lets open up a Now we need to declare Next I will create all the files that I need to get the api running. ... Markata now uses hatch as its build backend, and version bumping tool. Markata 0.5.0 is now out, and it’s huge. Even though it’s the backend of this blog I don’t actually have that many posts directly about it. I’ve used it a bit for blog fuel in generic ways, like talking about pluggy and diskcache, but very little have I... ... lkwq007 has done a fantastic job with stablediffusion-infinity. Highly recommend taking a look. Outpainting with Stable Diffusion on an infinite canvas Check out toumorokoshi and their project deepmerge. A deep merging tool for Python core data structures My next step into django made me realize that I do not have access to the admin panel, turns out that I need to create a cuper user first. Right away when trying to setup the superuser I ran into this issue Back to the tutorial tells me that I need to run migrations to setup some tables for the yes I am still running remote on from my chromebook. ...sudo modprobe v4l2loopback video_nr=10 card_label="OBS Video Source" exclusive_caps=1
aws cli command using localstack you might end up with the following error.Unable to locate credentials. You can configure credentials by running "aws configure". Easy way #
awscli-local.pipx install awscli-local Leveraging the awscli #
localstack status PermissionError: [Errno 13] Permission denied: '/home/waylon/.cache/localstack/image_metadata' What happened #
pip install.
todo app that I created with django-admin startproject todo.pip install djangorestframework Install APP #
rest_framwork as an INSTALLED_APP.INSTALLED_APPS = [ ... "rest_framework", ... ] create the api app #
setup.py, and setup.cfg are completely gone.django.db.utils.OperationalError: no such table: auth_user INSTALLED_APPS, django.contrib.admin being one of them.