This project is designed to help you get started with Python linters, specifically ruff
and pre-commit
.
Begin by setting up your development environment:
- Create a CodeSpace: Start by creating a GitHub CodeSpace for your project.
- Install Poetry:
- Run
pipx install poetry
in the terminal.
- Run
- Install Ruff:
- Run
pipx install ruff
in the terminal.
- Run
- Install Pre-Commit:
- Run
pipx install pre-commit
in the terminal.
- Run
Follow these steps to lint your Python code using ruff
:
- Prepare the File:
- Copy the template from
templates/times_nolinter.py
and rename it totimes.py
.
- Copy the template from
- Linting with Ruff:
- To lint your file, run
ruff check times.py
in the terminal. - For additional parameters and options, you can run
ruff check -h
.
- To lint your file, run
These instructions will guide you through using linters to improve the quality and consistency of your Python code.