- Ruff (extremely fast linter written in rust + configured to use isort and flake8-bandit)
- Ruff Formatter (extremely fast opinionated formatter)
- Mypy (type checking + strict config)
Lint pre-commit (see Setup: pre-commit)
-
Dependabot for pip and github actions
- .github/dependabot.yaml
-
Auto-update pre-commit
- .github/workflows/auto-update-pre-commit.yaml
-
Tooling
- pyproject.toml
-
Logging (see Usage: logging with logging.ini)
- logging.ini
-
Global Editor Rules
- .editorconfig
pip install pre-commit
pre-commit install
import logging
from logging.config import fileConfig
from pathlib import Path
Path("logs").mkdir(exist_ok=True)
fileConfig("logging.ini")
logging.info("Works as expected.")