Configure Nox and basic Poetry support

- Use new structure for code blocks in README
This commit is contained in:
Vadim Nifadev
2024-10-24 07:53:10 +03:00
parent 6abea7bb3e
commit f25156107b
6 changed files with 225 additions and 37 deletions

13
noxfile.py Normal file
View File

@@ -0,0 +1,13 @@
from typing import TYPE_CHECKING
import nox
if TYPE_CHECKING:
from nox.sessions import Session
python_versions = ["3.9", "3.10", "3.11", "3.12", "3.13"]
@nox.session(python=python_versions, reuse_venv=True)
def tests(session: "Session") -> None:
_ = session.run("python", "snippets/2_tricky_strings.py")