並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 15 件 / 15件

新着順 人気順

ruffの検索結果1 - 15 件 / 15件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

ruffに関するエントリは15件あります。 pythonプログラミングPython などが関連タグです。 人気エントリには 『【Rye + uv + Ruff】Docker で VS Code の Dev Container 上に快適な Python 環境を構築する』などがあります。
  • 【Rye + uv + Ruff】Docker で VS Code の Dev Container 上に快適な Python 環境を構築する

    0. はじめに 株式会社ディー・エヌ・エーに入社し,MLOps エンジニアをやっている @a5chin です. 本記事では,図 1 の様に VS Code の Dev Container 上に爆速で快適な Python 環境を構築することを目指します. 図 1: Dev Container 上で開発をすると Ruff による自動フォーマット[1]と pre-commit が走る 本記事の内容は全て上記リポジトリで簡単に試すことができるので,ぜひ clone して試して頂けたらと思います↑ Dockerfile 内で,Rye, uv, そして Ruff をインストールする手順を記述することで開発環境を標準化し,異なる環境間での一貫性を担保することができます. 0.1. 事前準備 本記事で作成したリポジトリを動かすためには,Docker Desktop と VS Code のダウンロード,VS

      【Rye + uv + Ruff】Docker で VS Code の Dev Container 上に快適な Python 環境を構築する
    • 新しい静的コード解析ツール「Ruff」をご紹介 | gihyo.jp

      福田(@JunyaFff)です。今月の「Python Monthly Topics」は、最近私が個人的に気になっている静的コード解析ツールRuffについて紹介します。 どんなプログラミング言語でも、静的コード解析ツール(リンター)やフォーマッターは非常に便利です。Pythonでコードを書く場合、皆さんはどんなツールを使っているでしょうか?Flake8やBlack、isortなどが人気で、世界中で多くのPythonエンジニアに利用されています。 Ruffは2022年8月にリリースされた比較的新しい、Pythonのリンター兼フォーマッターです。Ruffはリリースからまだ半年足らずしか経っておりませんが、多くの著名なライブラリで採用[1]され、毎日のようにアップデートされています。2023年3月時点でのRuffの使い方、そしてこれからの発展について、本記事で紹介します。 Ruffとは? ここでは

        新しい静的コード解析ツール「Ruff」をご紹介 | gihyo.jp
      • 🟢M-CHARI🚲💨💨 on Twitter: "さて、今日あった事を書くかな。 今日、上司と同行なのに待ち合わせ場所に来ない。 俺は電車。上司は社用車で来る予定。 電話をしても「電源が入っていないか電波が…」と繋がらない。 ほとほと困った。 そこで会社から電話が掛かってくる。… https://t.co/pfbe39Ruff"

        さて、今日あった事を書くかな。 今日、上司と同行なのに待ち合わせ場所に来ない。 俺は電車。上司は社用車で来る予定。 電話をしても「電源が入っていないか電波が…」と繋がらない。 ほとほと困った。 そこで会社から電話が掛かってくる。… https://t.co/pfbe39Ruff

          🟢M-CHARI🚲💨💨 on Twitter: "さて、今日あった事を書くかな。 今日、上司と同行なのに待ち合わせ場所に来ない。 俺は電車。上司は社用車で来る予定。 電話をしても「電源が入っていないか電波が…」と繋がらない。 ほとほと困った。 そこで会社から電話が掛かってくる。… https://t.co/pfbe39Ruff"
        • GitHub - astral-sh/ruff: An extremely fast Python linter and code formatter, written in Rust.

          Docs | Playground An extremely fast Python linter and code formatter, written in Rust. Linting the CPython codebase from scratch. ⚡️ 10-100x faster than existing linters (like Flake8) and formatters (like Black) 🐍 Installable via pip 🛠️ pyproject.toml support 🤝 Python 3.12 compatibility ⚖️ Drop-in parity with Flake8, isort, and Black 📦 Built-in caching, to avoid re-analyzing unchanged files 🔧

            GitHub - astral-sh/ruff: An extremely fast Python linter and code formatter, written in Rust.
          • Ruff v0.1.0

            As a reminder: Ruff is an extremely fast Python linter, written in Rust. Ruff can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, pyupgrade, and more, all while executing tens or hundreds of times faster than any individual tool. Ruff is used in production by tens of thousands of open source projects and major enterprises. In the last year, we've been working to expand Ruff'

              Ruff v0.1.0
            • Pythonの Ruff (linter) でコード整形もできるようになりました - Qiita

              要約: Flake8 + Black + isort はもうすべて Ruff だけで置き換えられる。 PythonのLinterとして、すでに Ruff を使われている方は多いと思います。Ruffは Rust で実装された高速なPython用Linterで、従来よく使われていた Flake8 に比べて数十倍短い時間で処理が終わります。 その圧倒的な性能によって成功が約束されている(?)ためか、Ruff の知名度がまだ低いころから GitHub Actions公式のPythonチュートリアルは即座に Flake8 を Ruff に置き換えています。 そして、2023年10月末にリリースされた v0.1.2 あたりから、ついにLintだけでなく、コードフォーマット(コード整形)の機能も正式に搭載されました。公式のブログ記事はこちら: Pythonのコード整形といえば今まで Black が主流で

                Pythonの Ruff (linter) でコード整形もできるようになりました - Qiita
              • PythonのLinter & Formatter(Flake8 + isort + Black)をRuffに置き換えたら爆速でした - KAKEHASHI Tech Blog

                こんにちは、カケハシで Musubi 開発チームのバックエンドエンジニアをしている関です。 Musubi 開発では、 Python の Linter と Formatter に Flake8、isort、Black を使用しておりました。しかし Rust で書かれた Ruff という高性能なツールが出たということで、置き換えてみたら爆速になった(25倍以上速くなった)ので、Ruff について記事を書かせていただきます。 今回は Ruff を導入した経緯や実運用に至るまでの工程を紹介したいと思いますので、最後まで読んでいただけると嬉しいです。 Ruffとは Ruff は、2022年8月にリリースされた Rust 言語で書かれた Python の Linter 兼 Formatter です。数多くのフレームワークやライブラリで採用1されています。 Python での開発には複数のツールチェーン

                  PythonのLinter & Formatter(Flake8 + isort + Black)をRuffに置き換えたら爆速でした - KAKEHASHI Tech Blog
                • Ruff

                  Ruff# Docs | Playground An extremely fast Python linter and code formatter, written in Rust. Linting the CPython codebase from scratch. ⚡️ 10-100x faster than existing linters (like Flake8) and formatters (like Black) 🐍 Installable via pip 🛠️ pyproject.toml support 🤝 Python 3.12 compatibility ⚖️ Drop-in parity with Flake8, isort, and Black 📦 Built-in caching, to avoid re-analyzing unchanged fi

                  • Ruff v0.4.0: a hand-written recursive descent parser for Python

                    Time in milliseconds to lint and format popular repositories. Lower is better. A hand-written parser also opens the door to future optimizations and improvements, especially in error recovery. Read on for discussion of the major changes, or take a look at the changelog. A hand-written parser # Parsers form the foundational layer of any static analysis tool, transforming raw source code into Abstra

                      Ruff v0.4.0: a hand-written recursive descent parser for Python
                    • Announcing Astral, the company behind Ruff

                      TL;DR: I’ve started a company, Astral, to continue building high-performance developer tools for the Python ecosystem — to keep building Ruff, and to build more Ruff-like things. We’ve raised $4m in seed funding led by Accel, with participation from Caffeinated Capital, Guillermo Rauch (Vercel), Solomon Hykes (Docker), David Cramer (Sentry), and others. I built Ruff to test a theory: that Python t

                        Announcing Astral, the company behind Ruff
                      • Pythonの静的解析ツール"Ruff"を導入した話とおすすめの導入方法 - Qiita

                        概要 最近、Pythonの静的コード解析ツールであるRuffの話題を目にするので、社内ツールにRuffを適用してみました。 その際にハマったことや、おすすめの設定/手順について記載します。 動作環境 ruff v0.255.0 Ruffとは? 以下の記事が参考になります。 社内ツールにRuffを導入 社内ツールにRuffを導入しました。 Ruffを導入する前の状態 Ruffを導入する前は、以下のツールを利用していました。 フォーマッター black(ベースとあるフォーマッター) isort(import文のソート) autoflake(unused importを削除するため) リンター mypy(型チェック) flake8(簡易的な静的解析) pylint(詳しい静的解析) Ruffを導入した後の状態 Ruffを導入した後の設定ファイルです。 導入後のコミット(いろんな修正が混ざっていま

                          Pythonの静的解析ツール"Ruff"を導入した話とおすすめの導入方法 - Qiita
                        • PythonのRuff LinterをVSCodeで使う

                          Ruffはrust製の高速なPython用Linterです。 README上部に記載の通り既存のPython Linterに比べてはるかに高速であると謳っています。 PylintやFlake8, banditなどのlinterは拡張機能を入れなくてもVSCodeのsettings.jsonに記述すれば使用できるようになります。[1] RuffをVSCodeと統合するには公式のVSCode拡張をインストールします。 またlint指摘だけではなく実行時に"--fix"オプションが指定されるとコードの自動修正まで行ってくれます。 ※ 2024/03/06追記 editor.codeActionsOnSaveの各設定項目の値がtrue/falseからexplicit/always/neverの3パターンに変わりました 値 説明

                            PythonのRuff LinterをVSCodeで使う
                          • PythonプロジェクトでRuffをPre-commitに設定してコード品質を上げてみる | DevelopersIO

                            はじめに データアナリティクス事業本部のkobayashiです。 Pythonコードでコード品質を上げるためはソースコードを整形するformatterのBlack、import文をソートするisort、ソースコードを解析してくれるLinterのflake8が定番の静的解析ツールかと思います。新規にPythonプロジェクトを始めるに当たりblack+isort+falke8と同等の機能を持つRuffを導入してみたのでその内容をまとめます。 astral-sh/ruff: An extremely fast Python linter and code formatter, written in Rust. Ruffとは Ruffとは、2022年にリリースされた比較的新しい静的解析ツールで、Rustで書かれています。同等の機能を持つ他のツールよりも高速に動作することが特徴です。さらに、一つのツ

                              PythonプロジェクトでRuffをPre-commitに設定してコード品質を上げてみる | DevelopersIO
                            • Ruff: a fast Python linter [LWN.net]

                              Benefits for LWN subscribersThe primary benefit from subscribing to LWN is helping to keep us publishing, but, beyond that, subscribers get immediate access to all site content and access to a number of extra site features. Please sign up today! Linters are tools that analyze a program's source code to detect various problems such as syntax errors, programming mistakes, style violations, and more.

                              • The Ruff Formatter: An extremely fast, Black-compatible Python formatter

                                TL;DR: The Ruff formatter is an extremely fast Python formatter, written in Rust. It’s over 30x faster than Black and 100x faster than YAPF, formatting large-scale Python projects in milliseconds — all while achieving >99.9% Black compatibility. A little over a year ago, I made the first commit to Ruff, an extremely fast Python linter, written in Rust. Since then, Ruff has grown to millions of dow

                                  The Ruff Formatter: An extremely fast, Black-compatible Python formatter
                                1

                                新着記事