pyfltr: Python Formatter, Linter, and Tester Runner.
Project description
pyfltr: Python Formatters, Linters, and Testers Runner.
Pythonの各種ツールを呼び出すスクリプト。
対象ツール
- pyupgrade
- isort
- black
- pflake8
- mypy
- pylint
- pytest
使い方
通常
usage: pyfltr [targets ...]
全ツールを実行する。
CIなど用
usage: pyfltr --check [targets ...]
全ツールを実行する。isortとblackは--check
付き。
特定のコマンドのみ実行
usage: pyfltr --commands=pyupgrade,isort,black,pflake8,mypy,pylint,pytest [targets ...]
カンマ区切りで実行するものだけ指定する。
設定(pyproject.toml)
挙動を変更したい場合は設定する。(以下は既定値)
[tool.pyfltr]
pyupgrade_args = ["pyupgrade"]
pyupgrade_check_args = []
pyupgrade_globs = ["*.py", "**/*.py"]
isort_args = ["isort"]
isort_check_args = ["--check"]
isort_globs = ["*.py", "**/*.py"]
black_args = ["black"]
black_check_args = ["--check"]
black_globs = ["*.py", "**/*.py"]
pflake8_args = ["pflake8"]
pflake8_check_args = []
pflake8_globs = ["*.py", "**/*.py"]
mypy_args = ["mypy"]
mypy_check_args = []
mypy_globs = ["*.py", "**/*.py"]
pylint_args = ["pylint"]
pylint_check_args = []
pylint_globs = ["*.py", "**/*.py"]
pytest_args = ["pytest"]
pytest_check_args = []
pytest_globs = ["*_test.py", "**/*_test.py"]
exclude = []
- {command}_args : コマンドライン
- {command}_check_args : --check時の追加のコマンドライン
- {command}_globs : 対象のファイル名パターン
- exclude : 除外するファイル名パターン
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-0.1.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
pyfltr-0.1.0-py3-none-any.whl
(5.2 kB
view hashes)