2022-09

2022-09-13 Hypermodern Python Toolbox by Adam Green

Ruff

Ruff is a Python linter — it’s alternative to Flake8.

Ruff will check code based on rules — it will not format code like Black and isort.

Ruff’s big thing is being written in Rust — this makes it fast. When used with Black to ensure consistent code style, Ruff covers much of the Flake8 rule set, along with other rules such as isort.

Organize data with pydantic

pydantic is a tool for organizing and validating data in Python — it’s an alternative to using dictionaries or dataclasses.

pydantic is part of Python’s typing revolution — pydantic’s ability to create custom types makes writing typed Python a joy.

Other news