Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
- name: Lint with ruff
run: |
~/.local/bin/uv run ruff check aiutil/ tests/
- name: Lint with pytype
run: |
~/.local/bin/uv run pytype ./
#- name: Lint with pytype
# run: |
# ~/.local/bin/uv run pytype ./
- name: Check code format
run: |
~/.local/bin/uv run ruff format --check .
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: release
on:
push:
tags:
- v*
release:
types: [published]
#push:
# tags: ["v*"]
jobs:
release:
name: Release
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
8 changes: 5 additions & 3 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{pkgs, ...}: {
channel = "stable-24.11";
packages = with pkgs; [
ncurses
util-linux
clang
file
bash-completion
gitui
Expand All @@ -25,14 +27,14 @@
"ms-python.debugpy"
];
workspace = {
#onCreate = {
#}
onStart = {
onCreate = {
icon = ''
curl -sSL https://raw.githubusercontent.com/legendu-net/icon/main/install_icon.sh | bash -s -- \
-d ~/.local/bin
'';
};
onStart = {
};
};
# Enable previews and customize configuration
previews = {};
Expand Down
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This is a Python pacakage that contains misc utils for AI/ML.
- `aiutil.cv`: some more tools (in addition to OpenCV) for image processing
- `aiutil.shell`: parse command-line output to a pandas DataFrame
- `aiutil.shebang`: auto correct SheBang of scripts
- `aiutil.poetry`: tools for making it even easier to manage Python project using Poetry
- `aiutil.pydev`: tools for making it even easier to manage Python project
- `aiutil.pdf`: easy and flexible extracting of PDF pages
- `aiutil.memory`: query and consume memory to a specified range
- `aiutil.notebook`: Jupyter/Lab notebook related tools
Expand Down
2 changes: 1 addition & 1 deletion aiutil/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _split_dir_1(
path.rename(desdir / path.name)


def find_images(root_dir: str | Path | list[str] | list[Path]) -> list[Path]:
def find_images(root_dir: str | Path | list[str | Path]) -> list[Path]:
"""Find all PNG images in a (sequence) of dir(s) or its/their subdirs.
:param root_dir: A (list) of dir(s).
Expand Down
Loading
Loading