Skip to main content

Python Formatters, Linters, and Testers Runner.

Project description

pyfltr: Python Formatters, Linters, and Testers Runner

CI PyPI version

Python / Rust / .NET / TypeScript・JavaScript / ドキュメントなど多言語プロジェクトの formatter・linter・testerを単一コマンドで並列実行するCLIツール。 (要Python 3.11以上)

特徴

  • formatter・linter・testerをまとめて呼び出す
  • 複数ツールの並列実行による総実行時間の短縮
  • コーディングエージェント向けJSON Lines出力(--output-format=jsonl
  • 設定の集約: pyproject.tomlに寄せた統一設定
  • 除外指定(exclude)の書式差をツール間で吸収
  • MCPサーバー(pyfltr mcp
  • シェル補完スクリプト生成

インストール

pip install pyfltr
# uv を使う場合
uv add --dev pyfltr

uvxでの実行も可能。

uvx pyfltr --help

Python系ツール(ruff / mypy / pylint / pyright / ty / pytest / uv-sort)を利用する場合は、extrasで追加依存を導入する。

pip install 'pyfltr[python]'

Python / JavaScript / Rust / .NETの各言語カテゴリに属するツールはすべて既定で無効(opt-in)である。 preset = "latest" + 言語カテゴリキー(python / javascript / rust / dotnet)のtrue指定だけで、 当該言語の推奨ツール一式が有効化される。 プリセット非収録のツール(tyなど)を追加したい場合のみ個別に{command} = trueを指定する。 詳細は設定項目を参照。

コーディングエージェント向け運用

コーディングエージェントから利用する経路は2種類ある。

直接呼び出し(シェルコマンドが実行できる環境):

# JSONL形式で全チェックを実行し、結果をエージェントが読み込む
uvx pyfltr run-for-agent

# 直前runで失敗したツール・ファイルだけ再実行
uvx pyfltr run-for-agent --only-failed

run-for-agentpyfltr run --output-format=jsonlのエイリアス。 JSONL出力の末尾summary行で全体像を把握でき、必要に応じてdiagnostic行を参照することでトークン消費を抑えられる。

MCP経由(コーディングエージェントのMCPクライアント経由):

# コーディングエージェントへの登録例(コマンド形式)
claude mcp add pyfltr -- uvx pyfltr mcp

または設定ファイルに直接記載する方法:

{
  "mcpServers": {
    "pyfltr": {
      "command": "uvx",
      "args": ["pyfltr", "mcp"]
    }
  }
}

MCPツールrun_for_agentpathscommandsfail_fastを指定して実行できる。

ドキュメント

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfltr-3.5.1.tar.gz (405.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfltr-3.5.1-py3-none-any.whl (152.2 kB view details)

Uploaded Python 3

File details

Details for the file pyfltr-3.5.1.tar.gz.

File metadata

  • Download URL: pyfltr-3.5.1.tar.gz
  • Upload date:
  • Size: 405.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyfltr-3.5.1.tar.gz
Algorithm Hash digest
SHA256 2129cf45cd6f7ef7e6d2194d4605d4f3dec7f4b3e34bc10ab4a7209414631394
MD5 ecd8d649c04cb4dc8c8f474ac99d5ceb
BLAKE2b-256 ac34fef736f2291968c5eba1adb19cb7a13badc9462b26c5dd45004b9636abb7

See more details on using hashes here.

File details

Details for the file pyfltr-3.5.1-py3-none-any.whl.

File metadata

  • Download URL: pyfltr-3.5.1-py3-none-any.whl
  • Upload date:
  • Size: 152.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyfltr-3.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e026b6ee0ca0fa02f6d85231555dfb3f1acb7efe727e14865d039115b9bf451b
MD5 8d734a21ff3127fd3673c1fed5cfdea0
BLAKE2b-256 a5e930a97f263818235512d5cc20a05aa23612c3102a9f91b4581f937b9fed41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page