eris/eris/tools.toml
Andrew Hamilton ad74f48679 tools: Fix python isort
- isort is not in the path
- Run in the system python with /usr/bin/python3 -m isort
2025-06-09 17:08:07 +10:00

314 lines
8.2 KiB
TOML

tools_for_extensions = [
[["py"], ["python_syntax", "python_unittests", "pytest", "pydoc", "mypy",
"python_coverage", "pycodestyle", "pyflakes",
"pylint", "python_gut", "python_mccabe", "bandit", "black", "isort"]],
# [["pyc"], ["pydisasm"]],
[["pl", "pm", "t"], ["perl_syntax", "perldoc"]],
[["p6", "pm6"], ["perl6_syntax"]],
[["pod", "pod6"], ["perldoc"]],
[["c", "h"], ["c_syntax_gcc", "cppcheck"]],
[["cc", "cpp", "hpp"], ["cpp_syntax_gcc", "cppcheck"]],
[["rb"], ["ruby_syntax", "rubocop"]],
[["rs"], ["rustfmt", "clippy"]],
[["lua"], ["lua_syntax", "lua_check"]],
[["js", "ts"], ["js_syntax", "typescript_check"]],
[["php"], ["php8_syntax"]],
[["go"], ["go_vet", "godoc"]],
[["bash", "sh", "dash", "ksh"], ["shellcheck"]],
[["wat"], ["wat_syntax_check"]],
[["wasm"], ["wasm_validate", "wasm_objdump"]],
[["pdf"], ["pdf2txt"]],
[["html", "htm"], ["html_syntax", "html2text", "elinks"]],
[["yaml", "yml"], ["yamllint"]],
[["md", "epub", "docx", "odt", "rst"], ["pandoc"]],
[["zip", "jar", "apk", "egg", "whl"], ["zipinfo"]],
[["tar.gz", "tgz"],["tar_gz"]],
[["tar.bz2"], ["tar_bz2"]],
[["7z"], ["7z"]],
[["xz"], ["unxz"]],
[["a"], ["ar", "nm"]],
[["o"], ["objdump_headers", "objdump_disassemble", "readelf"]],
[["so"], ["nm"]],
[["deb"], ["dpkg_contents", "dpkg_info"]],
[["rpm"], ["rpm"]],
[["png", "jpg", "jpeg", "gif", "bmp", "tif", "tiff", "tga", "ico", "xpm"], ["mediainfo", "pil"]],
[["svg", "svgz"], ["cairosvg"]],
[["mkv", "mka", "mks", "ogg", "ogm", "avi", "wav", "mpeg", "mpg", "vob",
"mp4", "mpgv", "mpv", "m1v", "m2v", "mp2", "mp3", "asf", "wma", "wmv",
"qt", "mov", "rm", "rmvb", "ra", "ifo", "ac3", "dts", "aac", "flac",
"aiff", "aifc", "au", "iff", "flv", "srt", "ssa", "ass", "sami"],
["mediainfo"]],
[["iso"], ["isoinfo"]],
]
[python_syntax]
dependencies = []
url = "https://en.wikipedia.org/wiki/Python_syntax_and_semantics"
command = "python3 -m py_compile"
[pydoc]
dependencies = []
url = "https://docs.python.org/3/library/pydoc.html"
command = "pydoc_color"
error_status = "not_applicable"
has_color = true
timeout = 60
[pycodestyle]
dependencies = ["python3-pycodestyle"]
url = "http://pycodestyle.pycqa.org/en/latest/"
command = "/usr/bin/python3 -m pycodestyle --max-line-length=100"
[pyflakes]
dependencies = ["python3-pyflakes"]
url = "https://pypi.org/project/pyflakes/"
command = "pyflakes3"
[pylint]
dependencies = ["pylint"]
url = "https://www.pylint.org/"
command = "pylint -f colorized --errors-only"
has_color = true
[bandit]
dependencies = ["python3-bandit"]
url = "https://pypi.org/project/bandit/"
command = "bandit -f screen"
has_color = true
timeout = 60
[black]
dependencies = ["black"]
url = "https://github.com/psf/black"
command = "black --check --diff --color"
has_color = true
[isort]
dependencies = ["python3-isort", "python3-colorama"]
url = "https://pycqa.github.io/isort/"
command = "/usr/bin/python3 -m isort --check-only --diff --color"
has_color = true
[perl_syntax]
dependencies = ["perl"]
url = "https://en.wikipedia.org/wiki/Perl"
command = "perl -c"
[perl6_syntax]
dependencies = ["rakudo"]
url = "https://rakudo.org/"
command = "perl6 -c"
has_color = true
[perldoc]
dependencies = ["perl-doc"]
url = "http://perldoc.perl.org/"
command = "perldoc -oterm"
error_status = "not_applicable"
has_color = true
[git_diff]
dependencies = ["git"]
url = "https://git-scm.com/docs/git-diff"
command = "git diff --exit-code"
has_color = true
[git_blame]
dependencies = ["git"]
url = "https://git-scm.com/docs/git-blame"
command = "git blame --show-stats --date=short --color-lines --color-by-age"
error_status = "not_applicable"
has_color = true
[objdump_headers]
dependencies = ["binutils"]
url = "https://en.wikipedia.org/wiki/Objdump"
command = "objdump --all-headers"
[objdump_disassemble]
dependencies = ["binutils"]
url = "https://en.wikipedia.org/wiki/Objdump"
command = "objdump --disassemble --reloc --dynamic-reloc"
[readelf]
dependencies = ["binutils"]
url = "https://en.wikipedia.org/wiki/Objdump"
command = "readelf --all"
[zipinfo]
dependencies = ["unzip"]
url = "http://www.info-zip.org/UnZip.html"
command = "zipinfo"
[tar_gz]
dependencies = ["tar"]
url = "http://www.gnu.org/software/tar/manual/tar.html"
command = "tar ztvf"
[tar_bz2]
dependencies = ["tar"]
url = "http://www.gnu.org/software/tar/manual/tar.html"
command = "tar jtvf"
[7z]
dependencies = ["7zip"]
url = "http://p7zip.sourceforge.net/"
command = "7zz l"
[unxz]
dependencies = ["xz-utils"]
url = "https://tukaani.org/xz/"
command = "unxz --list"
[dpkg_contents]
dependencies = ["dpkg"]
url = "https://wiki.debian.org/Teams/Dpkg"
command = "dpkg --contents"
[dpkg_info]
dependencies = ["dpkg"]
url = "https://wiki.debian.org/Teams/Dpkg"
command = "dpkg --info"
[rpm]
dependencies = ["rpm"]
url = "http://rpm.org/"
command = "rpm --query --list"
[ar]
dependencies = ["binutils"]
url = "https://en.wikipedia.org/wiki/Ar_(Unix)"
command = "ar t"
[nm]
dependencies = ["binutils"]
url = "https://linux.die.net/man/1/nm"
command = "nm --demangle"
[pdf2txt]
dependencies = ["python3-pdfminer"]
url = "https://github.com/pdfminer/pdfminer.six"
command = "pdf2txt"
[html2text]
dependencies = ["html2text"]
url = "http://www.mbayer.de/html2text/"
command = "html2text"
[elinks]
dependencies = ["elinks"]
url = "http://elinks.cz/"
command = "elinks -dump-color-mode 1 -dump -no-numbering -no-references"
has_color = true
[c_syntax_gcc]
dependencies = ["gcc", "g++"]
url = "https://gcc.gnu.org/"
command = "gcc -fsyntax-only -fdiagnostics-color=always"
has_color = true
[cpp_syntax_gcc]
dependencies = ["gcc", "g++"]
url = "https://gcc.gnu.org/"
command = "gcc -fsyntax-only -fdiagnostics-color=always"
has_color = true
[php8_syntax]
dependencies = ["php-cli"]
url = "https://en.wikipedia.org/wiki/PHP"
command = "php --syntax-check"
[shellcheck]
dependencies = ["shellcheck"]
url = "https://www.shellcheck.net/"
command = "shellcheck --color=always"
has_color = true
[cppcheck]
dependencies = ["cppcheck"]
url = "http://sourceforge.net/p/cppcheck/wiki/Home/"
command = "cppcheck --error-exitcode=1"
[ruby_syntax]
dependencies = ["ruby3.1"]
url = "http://www.ruby-lang.org/"
command = "ruby -c"
[rubocop]
dependencies = ["rubocop"]
url = "https://rubocop.org/"
command = "rubocop --color --fail-level autocorrect --display-style-guide"
has_color = true
[rustfmt]
dependencies = ["rustfmt"]
url = "https://github.com/rust-lang/rustfmt"
command = "cargo fmt --check -- --color always"
has_color = true
[clippy]
dependencies = ["rust-clippy"]
url = "https://github.com/rust-lang/rust-clippy"
command = "rustc -Awarnings -Dclippy::all"
has_color = true
[lua_syntax]
dependencies = ["lua5.3"]
url = "http://www.lua.org"
command = "luac -p"
[js_syntax]
dependencies = ["nodejs"]
url = "http://nodejs.org/"
command = "node --check"
[typescript_check]
dependencies = ["node-typescript"]
url = "https://www.typescriptlang.org/"
command = "tsc --pretty --noEmit"
has_color = true
[lua_check]
dependencies = ["lua-check"]
url = "https://github.com/mpeterv/luacheck"
command = "luacheck"
has_color = true
[go_vet]
dependencies = ["golang-go"]
url = "https://github.com/golang/go"
command = "go vet"
[wat_syntax_check]
dependencies = ["wabt"]
url = "https://github.com/WebAssembly/wabt"
command = "wat2wasm --check-only"
[wasm_validate]
dependencies = ["wabt"]
url = "https://github.com/WebAssembly/wabt"
command = "wasm-validate"
[wasm_objdump]
dependencies = ["wabt"]
url = "https://github.com/WebAssembly/wabt"
command = "wasm-objdump --disassemble"
[yamllint]
dependencies = ["yamllint"]
url = "https://github.com/adrienverge/yamllint"
command = "yamllint -f colored"
has_color = true
[mediainfo]
dependencies = ["mediainfo"]
url = "https://mediaarea.net/MediaInfo"
command = "mediainfo"
[isoinfo]
dependencies = ["genisoimage"]
url = "https://manpages.debian.org/jessie/genisoimage/isoinfo.1.en.html"
command = "isoinfo -l -i"