Compare commits

...

31 commits

Author SHA1 Message Date
9e24f7cb85 Update version to v2025.07.11 2025-07-11 23:05:37 +10:00
699f808951 packaging: Just depend on ruby instead of ruby3.1
- Let debian bookworm and trixie both work.
- Other distros are using ruby.
2025-07-11 23:03:17 +10:00
327852af40 tools: Let rubocop do autocorrect patches 2025-06-27 23:18:17 +10:00
267a100b09 tools: Add patch command to "git diff"
- May as well let the changes be easily removed.
2025-06-27 23:02:57 +10:00
906b0510bb Add patch_command to the tool summary 2025-06-24 22:10:46 +10:00
a8f3261ab8 tools: Fix isort
- Isort's has patches containing absolute paths that don't apply.
- Let isort apply the patch itself.
- The patch_command can either do the patch or return a patch.
2025-06-24 18:33:01 +10:00
ac7c7010df Update version to v2025.06.21 2025-06-21 14:43:57 +10:00
754143b395 Add a patch command
- Make it easy to apply the patches some tools produce.
2025-06-21 14:41:06 +10:00
99ed8efc43 Fix incorrect extension when listing tools 2025-06-14 11:29:15 +10:00
403e056802 Update version to v2025.06.14 2025-06-14 09:06:23 +10:00
ff1f2c8760 coding style: Can use the Popen context manager to close and wait 2025-06-10 18:52:54 +10:00
ce224275e9 coding style: Extract the paging code into its own context manager 2025-06-10 16:57:44 +10:00
4c68e226bf coding style: Redirect stdout to simplify multiple prints 2025-06-10 13:39:24 +10:00
9962068019 Page the output when listing all tools. 2025-06-10 13:22:30 +10:00
a78f53740a tools: Document tools.toml
- So that it can be understood in isolation by ai.
2025-06-09 22:39:07 +10:00
2b5b7f7fe9 tools: Drop fragile golden tests that work on x86 but not arm 2025-06-09 18:18:52 +10:00
410666e0b0 tools: Get tools tests passing
- 7zz is now 7z
- Update golden files for different shade of grey
2025-06-09 18:12:47 +10:00
1a31aa838e packaging: Python tools use the system python not venv python 2025-06-09 17:50:57 +10:00
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
6ec4f958ff Update version to v2025.06.09 2025-06-09 15:53:06 +10:00
4341df0114 tools: Add some tools suggested by gemini ai 2025-06-09 15:52:06 +10:00
5ba4f6bb81 Update version to v2025.06.07 2025-06-07 22:02:35 +10:00
35b3ac22ec Update README
- Can install with pipx or uv.
2025-06-07 22:01:21 +10:00
03c2644ac4 packaging: Make pyproject.toml work with pip 2025-06-07 21:52:06 +10:00
968d2b8443 Fix README formatting 2025-06-04 23:00:11 +10:00
31985cc551 Now using uv instead of pipx
- Update the installation instructions in the readme.
- Change the install script to use uv.
2025-06-04 22:54:51 +10:00
7827aae0ae tools: With uv the system python's version isn't necessarily 3.11 2025-06-04 18:47:01 +10:00
3913a49537 tools: Remove pydocstyle which has been superceeded by ruff 2025-06-04 18:38:09 +10:00
b5031417dc Make python tools work better under uv
- uv's has its own python, and standard python tools are installed
  in the system python.
2025-06-04 18:36:24 +10:00
5448eced5a Update version to v2025.06.04 2025-06-04 16:00:26 +10:00
0effc3da49 Specify the build-system in pyproject.toml
- Needed so that "uv tool install" can work with a git url.
- pipx seemed to work without this.
- Also need to ensure that tools.toml is installed as package-data.
2025-06-04 15:57:40 +10:00
18 changed files with 180 additions and 94 deletions

View file

@ -2,23 +2,26 @@
## Summary
Eris maintains an up-to-date set of reports for every file in a codebase.
Eris maintains an up to date set of reports for every file in a codebase.
## Installation
#### Debian / Ubuntu / Fedora / Arch / Alpine
Install eris with pipx, then install all the tools eris uses:
Eris can be installed by pipx or [uv](https://docs.astral.sh/uv/getting-started/installation/).
To install with pipx:
pipx install git+https://gitlab.com/ahamilton/eris@v2025.07.11
or to install with uv:
uv tool install git+https://gitlab.com/ahamilton/eris@v2025.07.11
Then use eris to install all the tools it uses:
pipx install --system-site-packages git+https://gitlab.com/ahamilton/eris@v2025.06.03#subdirectory=eris
eris --install-all-tools
Or install from source: (includes tools)
git clone https://gitlab.com/ahamilton/eris
cd eris
./install
Then to run:
eris
@ -26,21 +29,23 @@ Then to run:
## Tools
File types(100) | Tools(57)
File types(103) | Tools(63)
----------:| -----
.* | [contents](http://pygments.org/) • [metadata](https://github.com/ahamilton/eris) • [git_diff](https://git-scm.com/docs/git-diff) • [git_blame](https://git-scm.com/docs/git-blame) • [git_log](https://git-scm.com/docs/git-log)
.py | [python_syntax](https://en.wikipedia.org/wiki/Python_syntax_and_semantics) • [python_unittests](https://docs.python.org/3/library/unittest.html) • [pytest](https://docs.pytest.org/en/latest/) • [pydoc](https://docs.python.org/3/library/pydoc.html) • [mypy](http://mypy-lang.org/) • [python_coverage](https://coverage.readthedocs.io/) • [pycodestyle](http://pycodestyle.pycqa.org/en/latest/) • [pydocstyle](http://www.pydocstyle.org/en/2.1.1/usage.html) • [pyflakes](https://pypi.org/project/pyflakes/) • [pylint](https://www.pylint.org/) • [python_gut](https://github.com/ahamilton/eris) • [python_mccabe](https://pypi.org/project/mccabe/) • [bandit](https://pypi.org/project/bandit/)
.py | [python_syntax](https://en.wikipedia.org/wiki/Python_syntax_and_semantics) • [python_unittests](https://docs.python.org/3/library/unittest.html) • [pytest](https://docs.pytest.org/en/latest/) • [pydoc](https://docs.python.org/3/library/pydoc.html) • [mypy](http://mypy-lang.org/) • [python_coverage](https://coverage.readthedocs.io/) • [pycodestyle](http://pycodestyle.pycqa.org/en/latest/) • [pyflakes](https://pypi.org/project/pyflakes/) • [pylint](https://www.pylint.org/) • [python_gut](https://github.com/ahamilton/eris) • [python_mccabe](https://pypi.org/project/mccabe/) • [bandit](https://pypi.org/project/bandit/) • [black](https://github.com/psf/black) • [isort](https://pycqa.github.io/isort/)
.pl .pm .t | [perl_syntax](https://en.wikipedia.org/wiki/Perl) • [perldoc](http://perldoc.perl.org/)
.p6 .pm6 | [perl6_syntax](https://rakudo.org/)
.pod .pod6 | [perldoc](http://perldoc.perl.org/)
.c .h | [c_syntax_gcc](https://gcc.gnu.org/) • [cppcheck](http://sourceforge.net/p/cppcheck/wiki/Home/)
.cc .cpp .hpp | [cpp_syntax_gcc](https://gcc.gnu.org/) • [cppcheck](http://sourceforge.net/p/cppcheck/wiki/Home/)
.rb | [ruby_syntax](http://www.ruby-lang.org/)
.rb | [ruby_syntax](http://www.ruby-lang.org/) • [rubocop](https://rubocop.org/)
.rs | [rustfmt](https://github.com/rust-lang/rustfmt) • [clippy](https://github.com/rust-lang/rust-clippy)
.lua | [lua_syntax](http://www.lua.org) • [lua_check](https://github.com/mpeterv/luacheck)
.js | [js_syntax](http://nodejs.org/)
.js .ts | [js_syntax](http://nodejs.org/) • [typescript_check](https://www.typescriptlang.org/)
.php | [php8_syntax](https://en.wikipedia.org/wiki/PHP)
.go | [go_vet](https://github.com/golang/go) • [godoc](https://github.com/golang/go)
.bash .sh .dash .ksh | [shellcheck](https://www.shellcheck.net/)
.wat | [wat_syntax_check](https://github.com/WebAssembly/wabt)
.wasm | [wasm_validate](https://github.com/WebAssembly/wabt) • [wasm_objdump](https://github.com/WebAssembly/wabt)
.pdf | [pdf2txt](https://github.com/pdfminer/pdfminer.six)
.html .htm | [html_syntax](https://www.html-tidy.org/) • [html2text](http://www.mbayer.de/html2text/) • [elinks](http://elinks.cz/)

View file

@ -1,3 +1 @@
__version__ = "v2025.06.03"
__version__ = "v2025.07.11"

View file

@ -88,6 +88,7 @@ KEYS_DOC = """Keys:
R - Refresh all reports of the current tool.
f - Resize the focused pane to the full screen. (toggle)
o - Open the current file with xdg-open.
p - Patch the current file. (When viewing a patch from a tool)
"""
@ -786,6 +787,15 @@ class Screen:
in_green(f" at line {line_num}")])
subprocess.Popen(f"{self.editor_command} +{line_num} {path}", shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
def patch_file(self):
result = self._summary.get_selection()
if hasattr(result.tool, "patch_command") and result.tool.patch_command is not None:
path = result.path
path_colored = lscolors.path_colored(path)
self._log.log_message([in_green("Patching file: "), path_colored])
subprocess.run(f"{result.tool.patch_command} {path} | patch -p0", shell=True,
capture_output=True)
subprocess.run(["touch", path])
def toggle_status_style(self):
self._summary.toggle_status_style(self._log)
@ -915,7 +925,7 @@ class Screen:
tools.STATUS_TO_TERMSTR[widget.status] + divider + "line " + str(y+1))
_STATUS_BAR = highlight_chars(" *help *quit *t*a*b:focus *turn *log *edit *next *sort"
" *refresh *fullscreen *open", Log._GREEN_STYLE)
" *refresh *fullscreen *open *patch", Log._GREEN_STYLE)
@functools.cache
def _get_partial_bar_chars(self, bar_transparency):
@ -963,9 +973,9 @@ class Screen:
terminal.RIGHT: cursor_right, terminal.PAGE_DOWN: cursor_page_down,
terminal.PAGE_UP: cursor_page_up, "s": toggle_order, terminal.HOME: cursor_home,
terminal.END: cursor_end, "n": move_to_next_issue, "N": move_to_next_issue_of_tool,
"e": edit_file, "q": quit_, terminal.ESC: quit_, terminal.CTRL_C: quit_,
"r": refresh, "R": refresh_tool, "\t": toggle_focus, "f": toggle_fullscreen,
"o": xdg_open}
"e": edit_file, "p": patch_file, "q": quit_, terminal.ESC: quit_,
terminal.CTRL_C: quit_, "r": refresh, "R": refresh_tool, "\t": toggle_focus,
"f": toggle_fullscreen, "o": xdg_open}
def setup_inotify(root_path, loop, on_filesystem_event, exclude_filter):
@ -1109,23 +1119,36 @@ def manage_cache(root_path):
gitignore_file.write("*")
@contextlib.contextmanager
def print_to_pager(pager_command=["less", "-RFEX"]):
try:
with subprocess.Popen(pager_command, stdin=subprocess.PIPE, text=True) as pager_process:
with contextlib.redirect_stdout(pager_process.stdin):
yield
except FileNotFoundError:
yield
def print_tool_info():
extensions_for_tool = {}
for extensions, tools_ in tools.TOOLS_FOR_EXTENSIONS:
for extension in extensions:
for tool in tools_:
extensions_for_tool.setdefault(tool, {extension}).add(extension)
for tool in sorted(tools.tools_all(), key=lambda t: t.__name__):
print(termstr.TermStr(tool.__name__, is_bold=True) if tools.is_tool_available(tool)
else termstr.TermStr(tool.__name__, fg_color=termstr.Color.red) + " (not available)")
if hasattr(tool, "command"):
print(f"command: {tool.command} foo.{extensions[0]}")
else:
print("function:", "eris.tools." + tool.__name__)
print("url:", tool.url)
extensions = list(extensions_for_tool.get(tool, {"*"}))
print("extensions:", ", ".join(extensions))
print()
with print_to_pager():
for tool in sorted(tools.tools_all(), key=lambda t: t.__name__):
print(termstr.TermStr(tool.__name__, is_bold=True) if tools.is_tool_available(tool)
else termstr.TermStr(tool.__name__, fg_color=termstr.Color.red) + " (not available)")
extensions = list(extensions_for_tool.get(tool, {"*"}))
if hasattr(tool, "command"):
print(f"command: {tool.command} foo.{extensions[0]}")
else:
print("function:", "eris.tools." + tool.__name__)
if hasattr(tool, "patch_command") and tool.patch_command is not None:
print(f"patch command: {tool.patch_command} foo.{extensions[0]}")
print("url:", tool.url)
print("extensions:", ", ".join(extensions))
print("")
def install_all_tools():
@ -1134,8 +1157,7 @@ def install_all_tools():
install_command = ["apt", "-y", "install"] # debian / ubuntu
if "ID=fedora\n" in os_release_lines:
tools_.remove("lua-check")
renames = {"lua5.3": "lua", "python3-bandit": "bandit", "ruby3.1": "ruby",
"xz-utils": "xz"}
renames = {"lua5.3": "lua", "python3-bandit": "bandit", "xz-utils": "xz"}
tools_ = [renames.get(tool, tool) for tool in tools_]
install_command = ["dnf", "-y", "install"]
elif "ID=arch\n" in os_release_lines:
@ -1143,8 +1165,8 @@ def install_all_tools():
tools_.remove("python3-pdfminer") # pdf2txt is not in arch
tools_.remove("perl-doc") # perldoc is in perl but not in the path
tools_.remove("7zip")
renames = {"genisoimage": "cdrkit", "lua5.3": "lua", "ruby3.1": "ruby", "xz-utils": "xz",
"g++": "gcc", "golang-go": "go", "lua-check": "luacheck", "php-cli": "php",
renames = {"genisoimage": "cdrkit", "lua5.3": "lua", "xz-utils": "xz", "g++": "gcc",
"golang-go": "go", "lua-check": "luacheck", "php-cli": "php",
"pylint": "python-pylint", "python3-bandit": "bandit", "python3-mypy": "mypy"}
tools_ = [renames.get(tool, tool) for tool in tools_]
tools_ = ["python-" + tool[len("python3-"):] if tool.startswith("python3-") else tool
@ -1153,8 +1175,8 @@ def install_all_tools():
elif "ID=alpine\n" in os_release_lines:
tools_.remove("python3-bandit")
tools_.remove("wabt")
renames = {"genisoimage": "cdrkit", "lua5.3": "lua", "ruby3.1": "ruby", "xz-utils": "xz",
"g++": "gcc", "golang-go": "go", "lua-check": "luacheck", "php-cli": "php",
renames = {"genisoimage": "cdrkit", "lua5.3": "lua", "xz-utils": "xz", "g++": "gcc",
"golang-go": "go", "lua-check": "luacheck", "php-cli": "php",
"pylint": "py3-pylint", "tidy": "tidyhtml"}
tools_ = [renames.get(tool, tool) for tool in tools_]
tools_ = ["py3-" + tool[len("python3-"):] if tool.startswith("python3-") else tool

View file

@ -35,8 +35,7 @@ import tomllib
import eris
PYTHON_VERSION = "3.11"
PYTHON_EXECUTABLE = "python" + PYTHON_VERSION
PYTHON_EXECUTABLE = "/usr/bin/python3"
CACHE_PATH = ".eris"
@ -438,7 +437,7 @@ def git_log(path):
def make_tool_function(dependencies, command, url=None, error_status=None,
has_color=False, timeout=None):
has_color=False, timeout=None, patch_command=None):
if url is None:
url = dependencies[0]
command_parts = command.split()
@ -449,6 +448,7 @@ def make_tool_function(dependencies, command, url=None, error_status=None,
def func(path):
return _run_command(command_parts + [path], error_status, has_color, timeout)
func.command = command
func.patch_command = patch_command
return func
@ -654,13 +654,16 @@ def splitext(path):
return root, ext
def python_has_module(python_path, module_name):
one_liner = ("import importlib, sys; "
f"sys.exit(importlib.util.find_spec('{module_name}') is not None)")
return bool(subprocess.call([python_path, "-c", one_liner]))
@functools.cache
def is_tool_available(tool):
if (hasattr(tool, "command") and tool.command.startswith(f"{PYTHON_EXECUTABLE} -m ")):
try:
return importlib.util.find_spec(tool.command.split()[2]) is not None
except ModuleNotFoundError:
return False
return python_has_module(PYTHON_EXECUTABLE, tool.command.split()[2])
try:
return all(shutil.which(executable) for executable in tool.executables)
except AttributeError:

View file

@ -1,21 +1,24 @@
# tools_for_extensions is a mapping that defines which tools are run on files of
# certain types. The tools are defined below.
tools_for_extensions = [
[["py"], ["python_syntax", "python_unittests", "pytest", "pydoc", "mypy",
"python_coverage", "pycodestyle", "pydocstyle", "pyflakes",
"pylint", "python_gut", "python_mccabe", "bandit"]],
"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"]],
[["rb"], ["ruby_syntax", "rubocop"]],
[["rs"], ["rustfmt", "clippy"]],
[["lua"], ["lua_syntax", "lua_check"]],
[["js"], ["js_syntax"]],
[["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"]],
@ -41,11 +44,22 @@ tools_for_extensions = [
[["iso"], ["isoinfo"]],
]
# Now define all the tools.
#
# Each section defines a tool by these attributes:
# dependencies: A list of debian packages that need to be installed for the tool to run.
# url: Where the tool is documented.
# command: The shell command to run the tool. All tools must produce a text report given a
# file in the codebase. The file's path is added to the end of the command.
# All reports are ideally in color. All tools should return an error code of 0 iff
# there are no issues with the file.
# has_color: Is true if the command's output is in color.
# timeout: Some commands have a timeout if they can't be trusted to finish in a reasonable time.
[python_syntax]
dependencies = []
url = "https://en.wikipedia.org/wiki/Python_syntax_and_semantics"
command = "python3.11 -m py_compile"
command = "python3 -m py_compile"
[pydoc]
dependencies = []
@ -58,31 +72,40 @@ tools_for_extensions = [
[pycodestyle]
dependencies = ["python3-pycodestyle"]
url = "http://pycodestyle.pycqa.org/en/latest/"
command = "python3.11 -m pycodestyle --max-line-length=100"
[pydocstyle]
dependencies = ["python3-pydocstyle"]
url = "http://www.pydocstyle.org/en/2.1.1/usage.html"
command = "python3.11 -m pydocstyle --ignore=D1,D213"
command = "/usr/bin/python3 -m pycodestyle --max-line-length=100"
[pyflakes]
dependencies = ["python3-pyflakes"]
url = "https://pypi.org/project/pyflakes/"
command = "python3.11 -m pyflakes"
command = "pyflakes3"
[pylint]
dependencies = ["pylint"]
url = "https://www.pylint.org/"
command = "python3.11 -m pylint -f colorized --errors-only"
command = "pylint -f colorized --errors-only"
has_color = true
[bandit]
dependencies = ["python3-bandit"]
url = "https://pypi.org/project/bandit/"
command = "python3.11 -m bandit.cli.main -f screen"
command = "bandit -f screen"
has_color = true
timeout = 60
[black]
dependencies = ["black"]
url = "https://github.com/psf/black"
command = "black --check --diff --color"
patch_command = "black --diff"
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"
patch_command = "/usr/bin/python3 -m isort --overwrite-in-place"
has_color = true
[perl_syntax]
dependencies = ["perl"]
url = "https://en.wikipedia.org/wiki/Perl"
@ -105,6 +128,7 @@ tools_for_extensions = [
dependencies = ["git"]
url = "https://git-scm.com/docs/git-diff"
command = "git diff --exit-code"
patch_command = "git checkout"
has_color = true
[git_blame]
@ -147,7 +171,7 @@ tools_for_extensions = [
[7z]
dependencies = ["7zip"]
url = "http://p7zip.sourceforge.net/"
command = "7zz l"
command = "7z l"
[unxz]
dependencies = ["xz-utils"]
@ -224,10 +248,29 @@ tools_for_extensions = [
command = "cppcheck --error-exitcode=1"
[ruby_syntax]
dependencies = ["ruby3.1"]
dependencies = ["ruby"]
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"
patch_command = "rubocop --autocorrect"
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"
@ -238,6 +281,12 @@ tools_for_extensions = [
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"
@ -249,6 +298,11 @@ tools_for_extensions = [
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"
@ -262,7 +316,7 @@ tools_for_extensions = [
[yamllint]
dependencies = ["yamllint"]
url = "https://github.com/adrienverge/yamllint"
command = "python3.11 -m yamllint -f colored"
command = "yamllint -f colored"
has_color = true
[mediainfo]

View file

@ -15,7 +15,7 @@ import fill3.terminal as terminal
import termstr
__version__ = "v2025.06.03"
__version__ = "v2025.07.11"
##########################

View file

@ -2,7 +2,7 @@ tool.uv.package = true
[project]
name = "fill3"
version = "v2025.06.03"
version = "v2025.07.11"
description = "Fill3 provides basic widgets for a tui."
authors = [
{ name = "Andrew Hamilton", email = "and_hamilton@yahoo.com" },

View file

@ -5,5 +5,5 @@ set -e
set -x
pipx install --system-site-packages "$@" .
uv tool install "$@" .
eris --install-all-tools

View file

@ -15,7 +15,7 @@ import lscolors
import termstr
__version__ = "v2025.06.03"
__version__ = "v2025.07.11"
FILE_KEY = "fi"

View file

@ -7,7 +7,7 @@ allow-direct-references = true
[project]
name = "lscolors"
version = "v2025.06.03"
version = "v2025.07.11"
description = "Give coloring for file types as in the ls command."
authors = [
{ name = "Andrew Hamilton", email = "and_hamilton@yahoo.com" },

View file

@ -18,23 +18,26 @@ def main():
## Summary
Eris maintains an up-to-date set of reports for every file in a codebase.
Eris maintains an up to date set of reports for every file in a codebase.
## Installation
#### Debian / Ubuntu / Fedora / Arch / Alpine
Install eris with pipx, then install all the tools eris uses:
Eris can be installed by pipx or [uv](https://docs.astral.sh/uv/getting-started/installation/).
To install with pipx:
pipx install git+https://gitlab.com/ahamilton/eris@v2025.07.11
or to install with uv:
uv tool install git+https://gitlab.com/ahamilton/eris@v2025.07.11
Then use eris to install all the tools it uses:
pipx install --system-site-packages git+https://gitlab.com/ahamilton/eris@v2025.06.03#subdirectory=eris
eris --install-all-tools
Or install from source: (includes tools)
git clone https://gitlab.com/ahamilton/eris
cd eris
./install
Then to run:
eris

View file

@ -2,7 +2,7 @@ tool.uv.package = true
[project]
name = "eris"
version = "v2025.06.03"
version = "v2025.07.11"
description = "Eris maintains an up-to-date set of reports for every file in a codebase."
readme = "README.md"
authors = [
@ -11,13 +11,13 @@ authors = [
requires-python = ">=3.11"
dependencies = [
"docopt-ng==0.9.0",
"fill3",
"lscolors",
"fill3 @ git+https://gitlab.com/ahamilton/eris@v2025.07.11#subdirectory=fill3",
"lscolors @ git+https://gitlab.com/ahamilton/eris@v2025.07.11#subdirectory=lscolors",
"pexpect==4.9.0",
"pillow==11.2.1",
"pygments==2.19.1",
"pyinotify-elephant-fork==0.0.1",
"termstr",
"termstr @ git+https://gitlab.com/ahamilton/eris@v2025.07.11#subdirectory=termstr",
]
[tool.uv.sources]
@ -37,5 +37,12 @@ pydoc_color = "eris.pydoc_color:main"
[project.urls]
homepage = "https://github.com/ahamilton/eris"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages=["eris"]
[tool.setuptools.package-data]
"eris" = ["tools.toml"]

View file

@ -2,7 +2,7 @@ tool.uv.package = true
[project]
name = "termstr"
version = "v2025.06.03"
version = "v2025.07.11"
description = "Termstr provides strings with extra terminal styling."
authors = [
{ name = "Andrew Hamilton", email = "and_hamilton@yahoo.com" },

View file

@ -10,7 +10,7 @@ import weakref
import cwcwidth
__version__ = "v2025.06.03"
__version__ = "v2025.07.11"
ESC = "\x1b"

View file

@ -1,4 +1,4 @@
 
 
def hi(): 
def hi(): 
 print("hi")

View file

@ -1,3 +1,3 @@
 
 
def hi():
def hi():

View file

@ -107,12 +107,6 @@ class ToolsTestCase(unittest.TestCase):
def test_c_syntax_gcc(self):
self._test_tool(tools.c_syntax_gcc, [("hello.c", tools.Status.ok)])
def test_objdump_headers(self):
self._test_tool(tools.objdump_headers, [("rotatingtree.o", tools.Status.ok)])
def test_objdump_disassemble(self):
self._test_tool(tools.objdump_disassemble, [("rotatingtree.o", tools.Status.problem)])
def test_readelf(self):
self._test_tool(tools.readelf, [("rotatingtree.o", tools.Status.ok)])

8
uv.lock generated
View file

@ -27,7 +27,7 @@ wheels = [
[[package]]
name = "eris"
version = "2025.6.3"
version = "2025.7.11"
source = { editable = "." }
dependencies = [
{ name = "docopt-ng" },
@ -54,7 +54,7 @@ requires-dist = [
[[package]]
name = "fill3"
version = "2025.6.3"
version = "2025.7.11"
source = { editable = "fill3" }
dependencies = [
{ name = "termstr" },
@ -65,7 +65,7 @@ requires-dist = [{ name = "termstr", editable = "termstr" }]
[[package]]
name = "lscolors"
version = "2025.6.3"
version = "2025.7.11"
source = { editable = "lscolors" }
dependencies = [
{ name = "termstr" },
@ -171,7 +171,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/d6/b4/b44fccc7040b01449
[[package]]
name = "termstr"
version = "2025.6.3"
version = "2025.7.11"
source = { editable = "termstr" }
dependencies = [
{ name = "cwcwidth" },