From 0f791d539e5d870919abb4ad2357c04c2c6b5c41 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 10 Nov 2023 09:55:41 +0100 Subject: moving python-file to src so I can add ruff-config and venv without cluttering the main folder --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 8082199..3cea926 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,18 @@ Perl version. I like this version <3 ### Python I don't really care for python, but here it is. It's pretty slow, but I don't really know Python. It should probably be faster. +To lint and format with `ruff`, `ruff` must first be installed. + +``` +$ cd src/python +$ python3 -m venv venv +$ source venv/bin/activate +$ pip install --upgrade pip +$ pip install ruff +$ ruff check makepass.py +$ ruff format makepass.py +``` + ### Rust Rust-version. It's fast! -- cgit v1.2.3