From f8aac58a6aa906d1ff996433e60b3fa9e452acab Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 26 Oct 2023 15:19:05 -0700 Subject: [PATCH] docs: Update Ruff badge and links. Signed-off-by: Anders Kaseorg --- README.md | 2 +- docs/contributing/code-style.md | 2 +- docs/testing/linters.md | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 361666f443..001499d23d 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Come find us on the [development community chat](https://zulip.com/development-c [![GitHub Actions build status](https://github.com/zulip/zulip/actions/workflows/zulip-ci.yml/badge.svg)](https://github.com/zulip/zulip/actions/workflows/zulip-ci.yml?query=branch%3Amain) [![coverage status](https://img.shields.io/codecov/c/github/zulip/zulip/main.svg)](https://codecov.io/gh/zulip/zulip) [![Mypy coverage](https://img.shields.io/badge/mypy-100%25-green.svg)][mypy-coverage] -[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff) +[![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) [![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![GitHub release](https://img.shields.io/github/release/zulip/zulip.svg)](https://github.com/zulip/zulip/releases/latest) diff --git a/docs/contributing/code-style.md b/docs/contributing/code-style.md index af0a3cd939..6177ba98a7 100644 --- a/docs/contributing/code-style.md +++ b/docs/contributing/code-style.md @@ -61,7 +61,7 @@ lint checks in parallel, including: - JavaScript ([ESLint](https://eslint.org/), [Prettier](https://prettier.io/)) - Python ([mypy](http://mypy-lang.org/), - [ruff](https://github.com/charliermarsh/ruff), + [ruff](https://github.com/astral-sh/ruff), [Black](https://github.com/psf/black), [isort](https://pycqa.github.io/isort/)) - templates diff --git a/docs/testing/linters.md b/docs/testing/linters.md index fc6c392040..737d2619f4 100644 --- a/docs/testing/linters.md +++ b/docs/testing/linters.md @@ -30,7 +30,7 @@ below will direct you to the official documentation for these projects. - [Prettier](https://prettier.io/) - [Puppet](https://puppet.com/) (puppet provides its own mechanism for validating manifests) -- [ruff](https://github.com/charliermarsh/ruff) +- [ruff](https://github.com/astral-sh/ruff) - [stylelint](https://github.com/stylelint/stylelint) Zulip also uses some home-grown code to perform tasks like validating diff --git a/pyproject.toml b/pyproject.toml index 2f1adfeee2..9b0c549b69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,7 +99,7 @@ init_typed = true warn_required_dynamic_aliases = true [tool.ruff] -# See https://github.com/charliermarsh/ruff#rules for error code definitions. +# See https://github.com/astral-sh/ruff#rules for error code definitions. select = [ "ANN", # annotations "B", # bugbear