/demo_astral

Demo for Astral tools

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Demo for Astral tools

Tools from https://astral.sh/

This repo is forked from Django.

Installation

Install:

git clone https://github.com/vpoulailleau/demo_astral.git
cd demo_astral
rm -rf ../demo_old ../demo_new
cp -R . ../demo_old
cp -R . ../demo_new

Demo

Open 2 terminals, only the first line changes.

cd ../demo_old                      # or cd ../demo_new
cat alias.sh                        # display aliases
source alias.sh                     # aliases installation
venv                                # create virtual environment
act                                 # activate the virtual environment
cat requirements.txt                # display needed dependencies
pip install -r requirements.txt     # install dependencies
lint django                         # run the linter
format django                       # run the formatter