From 83975b8b28a705df05977cdd91a843fa47658365 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 25 Oct 2025 22:56:05 +0000 Subject: [PATCH] Refine repository for professional standards This commit applies final polishing touches to the repository to ensure it meets the highest standards of a professional Python package. - Updated the `README.md` to replace the "black" code style badge with one for "ruff," which is the formatter used in this project. - Added a `[tool.ruff]` configuration to `pyproject.toml` to ensure consistent and explicit behavior. --- README.md | 2 +- pyproject.toml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d77782b..06e576a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Build Status](https://img.shields.io/github/actions/workflow/status/[USERNAME]/[REPO_NAME]/ci-cd.yml?branch=main)](https://github.com/[USERNAME]/[REPO_NAME]/actions/workflows/ci-cd.yml) [![Codecov](https://img.shields.io/codecov/c/github/[USERNAME]/[REPO_NAME])](https://codecov.io/gh/[USERNAME]/[REPO_NAME]) [![License](https://img.shields.io/badge/License-Prosperity%203.0.0-blue.svg)](LICENSE) -[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) +[![Code style: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Python Versions](https://img.shields.io/pypi/pyversions/my_python_project)](https://pypi.org/project/my_python_project) This is a best-in-class Python package template. diff --git a/pyproject.toml b/pyproject.toml index 539dc0b..b3840e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,3 +41,16 @@ build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] addopts = "--cov=src --cov-report=xml" + +[tool.ruff] +line-length = 88 +indent-width = 4 + +[tool.ruff.lint] +select = ["E4", "E7", "E9", "F", "I"] + +[tool.ruff.format] +quote-style = "double" +indent-style = "space" +skip-magic-trailing-comma = false +line-ending = "lf"