diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0f726627a5..6d0bda1142 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -408,7 +408,7 @@ jobs: twine upload --skip-existing * - name: "Update pre-commit mirror" run: | - curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.RUFF_PRE_COMMIT_PAT }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/charliermarsh/ruff-pre-commit/dispatches --data '{"event_type": "pypi_release"}' + curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.RUFF_PRE_COMMIT_PAT }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/astral-sh/ruff-pre-commit/dispatches --data '{"event_type": "pypi_release"}' - uses: actions/download-artifact@v3 with: name: binaries diff --git a/README.md b/README.md index 4b6a47b060..ae69cb3e48 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ An extremely fast Python linter, written in Rust. - 📏 Over [500 built-in rules](https://beta.ruff.rs/docs/rules/) - ⚖️ [Near-parity](https://beta.ruff.rs/docs/faq/#how-does-ruff-compare-to-flake8) with the built-in Flake8 rule set - 🔌 Native re-implementations of dozens of Flake8 plugins, like flake8-bugbear -- ⌨️ First-party editor integrations for [VS Code](https://github.com/charliermarsh/ruff-vscode) and [more](https://github.com/charliermarsh/ruff-lsp) +- ⌨️ First-party editor integrations for [VS Code](https://github.com/astral-sh/ruff-vscode) and [more](https://github.com/astral-sh/ruff-lsp) - 🌎 Monorepo-friendly, with [hierarchical and cascading configuration](https://beta.ruff.rs/docs/configuration/#pyprojecttoml-discovery) Ruff aims to be orders of magnitude faster than alternative tools while integrating more @@ -135,15 +135,15 @@ ruff check path/to/code/to/file.py # Lint `file.py` Ruff can also be used as a [pre-commit](https://pre-commit.com) hook: ```yaml -- repo: https://github.com/charliermarsh/ruff-pre-commit +- repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: 'v0.0.269' hooks: - id: ruff ``` -Ruff can also be used as a [VS Code extension](https://github.com/charliermarsh/ruff-vscode) or -alongside any other editor through the [Ruff LSP](https://github.com/charliermarsh/ruff-lsp). +Ruff can also be used as a [VS Code extension](https://github.com/astral-sh/ruff-vscode) or +alongside any other editor through the [Ruff LSP](https://github.com/astral-sh/ruff-lsp). Ruff can also be used as a [GitHub Action](https://github.com/features/actions) via [`ruff-action`](https://github.com/chartboost/ruff-action): diff --git a/crates/ruff/src/settings/options.rs b/crates/ruff/src/settings/options.rs index 7e7c0bb423..6cad16d2b9 100644 --- a/crates/ruff/src/settings/options.rs +++ b/crates/ruff/src/settings/options.rs @@ -253,7 +253,7 @@ pub struct Options { /// respect these exclusions unequivocally. /// /// This is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all - /// changed files to the [`ruff-pre-commit`](https://github.com/charliermarsh/ruff-pre-commit) + /// changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) /// plugin, regardless of whether they're marked as excluded by Ruff's own /// settings. pub force_exclude: Option, diff --git a/docs/editor-integrations.md b/docs/editor-integrations.md index 245c8474cd..6264f45c9c 100644 --- a/docs/editor-integrations.md +++ b/docs/editor-integrations.md @@ -10,12 +10,12 @@ which supports autofix actions, import sorting, and more. ## Language Server Protocol (Official) Ruff supports the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) -via the [`ruff-lsp`](https://github.com/charliermarsh/ruff-lsp) Python package, available on +via the [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) Python package, available on [PyPI](https://pypi.org/project/ruff-lsp/). -[`ruff-lsp`](https://github.com/charliermarsh/ruff-lsp) enables Ruff to be used with any editor that -supports the Language Server Protocol, including [Neovim](https://github.com/charliermarsh/ruff-lsp#example-neovim), -[Sublime Text](https://github.com/charliermarsh/ruff-lsp#example-sublime-text), Emacs, and more. +[`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) enables Ruff to be used with any editor that +supports the Language Server Protocol, including [Neovim](https://github.com/astral-sh/ruff-lsp#example-neovim), +[Sublime Text](https://github.com/astral-sh/ruff-lsp#example-sublime-text), Emacs, and more. For example, to use `ruff-lsp` with Neovim, install `ruff-lsp` from PyPI along with [`nvim-lspconfig`](https://github.com/neovim/nvim-lspconfig). Then, add something like the following @@ -80,7 +80,7 @@ Upon successful installation, you should see Ruff's diagnostics surfaced directl ![Code Actions available in Neovim](https://user-images.githubusercontent.com/1309177/208278707-25fa37e4-079d-4597-ad35-b95dba066960.png) -To use `ruff-lsp` with other editors, including Sublime Text and Helix, see the [`ruff-lsp` documentation](https://github.com/charliermarsh/ruff-lsp#installation-and-usage). +To use `ruff-lsp` with other editors, including Sublime Text and Helix, see the [`ruff-lsp` documentation](https://github.com/astral-sh/ruff-lsp#installation-and-usage). ## Language Server Protocol (Unofficial) @@ -122,10 +122,10 @@ require'lspconfig'.pylsp.setup { ## Vim & Neovim -Ruff can be integrated into any editor that supports the Language Server Protocol via [`ruff-lsp`](https://github.com/charliermarsh/ruff-lsp) +Ruff can be integrated into any editor that supports the Language Server Protocol via [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp) (see: [Language Server Protocol](#language-server-protocol-official)), including Vim and Neovim. -It's recommended that you use [`ruff-lsp`](https://github.com/charliermarsh/ruff-lsp), the +It's recommended that you use [`ruff-lsp`](https://github.com/astral-sh/ruff-lsp), the officially supported LSP server for Ruff. To use `ruff-lsp` with Neovim, install `ruff-lsp` from PyPI along with [`nvim-lspconfig`](https://github.com/neovim/nvim-lspconfig). Then, add something like the following to your `init.lua`: diff --git a/docs/tutorial.md b/docs/tutorial.md index 87c535f53a..e78f2344e0 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -240,7 +240,7 @@ This tutorial has focused on Ruff's command-line interface, but Ruff can also be [pre-commit](https://pre-commit.com) hook: ```yaml -- repo: https://github.com/charliermarsh/ruff-pre-commit +- repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: 'v0.0.269' hooks: @@ -251,7 +251,7 @@ See [_Usage_](usage.md) for more. ## Editor Integrations -Ruff can also be used as a [VS Code extension](https://github.com/charliermarsh/ruff-vscode) or -alongside any other editor through the [Ruff LSP](https://github.com/charliermarsh/ruff-lsp). +Ruff can also be used as a [VS Code extension](https://github.com/astral-sh/ruff-vscode) or +alongside any other editor through the [Ruff LSP](https://github.com/astral-sh/ruff-lsp). See [_Editor Integrations_](editor-integrations.md). diff --git a/docs/usage.md b/docs/usage.md index 7a6d98cbed..0cf157ea78 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -20,7 +20,7 @@ ruff check path/to/code/ --watch Ruff can also be used as a [pre-commit](https://pre-commit.com) hook: ```yaml -- repo: https://github.com/charliermarsh/ruff-pre-commit +- repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: 'v0.0.269' hooks: @@ -30,7 +30,7 @@ Ruff can also be used as a [pre-commit](https://pre-commit.com) hook: Or, to enable autofix: ```yaml -- repo: https://github.com/charliermarsh/ruff-pre-commit +- repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: 'v0.0.269' hooks: @@ -45,8 +45,8 @@ reformatting. ## VS Code -Ruff can also be used as a [VS Code extension](https://github.com/charliermarsh/ruff-vscode) or -alongside any other editor through the [Ruff LSP](https://github.com/charliermarsh/ruff-lsp). +Ruff can also be used as a [VS Code extension](https://github.com/astral-sh/ruff-vscode) or +alongside any other editor through the [Ruff LSP](https://github.com/astral-sh/ruff-lsp). ## GitHub Action diff --git a/ruff.schema.json b/ruff.schema.json index 9b05164ff0..ae7af604e0 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -309,7 +309,7 @@ ] }, "force-exclude": { - "description": "Whether to enforce `exclude` and `extend-exclude` patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/charliermarsh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.", + "description": "Whether to enforce `exclude` and `extend-exclude` patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.", "type": [ "boolean", "null"