Summary and Schedule
This workshop introduces the concepts of styling, linting, and formatting Python code for readability and collaboration. This content is for Python developers who want to write professional looking code that can be easily maintained and contributed to by others.
Learning Objectives
After attending this workshop, participants will be able to:
- Write code that adheres to the Python style guide.
- Check Python code for errors before running the code.
- Format Python code for readability and maintenance.
- Use the ruff tool to check (lint) and format Python code.
- Use lint and formatter features in your editor or IDE for productive development.
Prerequisites for this workshop include a basic understanding of how to use the terminal in macOS, Linux, or Windows. Familiarity with the uv tool for installing Python packages and command line tools. And of course a basic understanding of the Python programming language.
Setup Instructions | Download files required for the lesson | |
Duration: 00h 00m | 1. Professional Writing | |
Duration: 00h 07m | 2. Python Style Guide | |
Duration: 00h 14m | 3. Linting Python Code | |
Duration: 00h 21m | 4. Formatting Python Code | |
Duration: 00h 28m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
Installing uv
The only requirement for this workshop is the uv tool. Detailed installation instructions are given in the uv documentation but the main macOS, Linux, and Windows installation commands are presented below.
Install uv on macOS and Linux with:
Install uv on Windows with:
You may need to restart your terminal to ensure that uv was
installed. Check the installation by displaying the version number using
the --version
option as shown below. If the command
displays the uv version number then the installation was successful.
OUTPUT
uv 0.8.4 (e176e1714 2025-07-30)