Skip to content

zenion/python-modern-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-modern-example

An opinionated example for modern Python projects using best-in-class tooling.

Although this is not mean't to be used as a template directly, it is probably an okay starting point for greenfield projects.

Features

  • 📦 uv for blazingly fast package management and virtual environments and python version management
  • Ruff for comprehensive linting and formatting, configured with:
    • Google-style docstring enforcement
    • Type annotation checking
    • Security checks via Bandit rules
    • Import sorting
    • And more!
  • 🔍 Pyright in strict mode for robust static type checking
  • 🏃 Pre-configured VS Code development environment extension recommendations for the tools
  • 🔧 Task runner with Just for streamlined development

Getting Started

  1. Clone this repository:
    git clone https://github.com/zenion/python-modern-example.git
    cd python-modern-example
  2. Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh
  3. Install Just: uv tool install rust-just

Development

Available Commands

Use the following commands via just:

  • just check - Run all checks and test (lint-check, format-check, type-check, and tests)
  • just lint-check - Run Ruff linting check
  • just lint-fix - Fix linting issues with Ruff
  • just format-check - Check code formatting with Ruff
  • just format - Format code with Ruff
  • just type-check - Run Pyright type checking
  • just test - Run tests

VS Code Integration

This template includes recommended VS Code extensions for the best development experience:

  • Python language support and debugging
  • Ruff for linting and formatting
  • Pyright/Pylance for type checking
  • Additional helpful extensions for TOML, YAML, and more

Project Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published