Skip to content

Commit 47e2e0d

Browse files
authored
Merge pull request #24 from tensorimgpipeline/23-rename-to-tipi
23 rename to tipi Fix also slip through Mypy and Ruff issues
2 parents fb1f384 + 77a2070 commit 47e2e0d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+592
-564
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/python
33
{
4-
"name": "PytorchPipeline",
4+
"name": "TensorImgPipeline",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
77
"features": {
@@ -10,7 +10,8 @@
1010
// Use 'postCreateCommand' to run commands after the container is created.
1111
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
1212
"remoteEnv": {
13-
"IS_IN_CONTAINER": "true"
13+
"IS_IN_CONTAINER": "true",
14+
"UV_LINK_MODE": "copy"
1415
},
1516
// Configure tool-specific properties.
1617
"customizations": {
@@ -28,8 +29,8 @@
2829
"python.testing.pytestArgs": ["tests"],
2930
"python.testing.unittestEnabled": false,
3031
"python.testing.pytestEnabled": true,
31-
"python.defaultInterpreterPath": "/workspaces/PytorchPipeline/.venv-container/bin/python",
32-
"python.testing.pytestPath": "/workspaces/PytorchPipeline/.venv-container/bin/pytest",
32+
"python.defaultInterpreterPath": "/workspaces/TensorImgPipeline/.venv-container/bin/python",
33+
"python.testing.pytestPath": "/workspaces/TensorImgPipeline/.venv-container/bin/pytest",
3334
"editor.formatOnSave": true,
3435
"editor.defaultFormatter": "charliermarsh.ruff",
3536
"[python]": {

.github/workflows/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ jobs:
4848

4949
- name: Check typing
5050
run: uv run mypy
51-
if: ${{ matrix.python-version == '3.11' || matrix.python-version == '3.12' }}
5251

53-
- name: Upload coverage reports to Codecov with GitHub Action on Python 3.11
52+
- name: Upload coverage reports to Codecov with GitHub Action on Python 3.13
5453
uses: codecov/codecov-action@v5
55-
if: ${{ matrix.python-version == '3.11' }}
54+
if: ${{ matrix.python-version == '3.13' }}
5655
with:
5756
token: ${{ secrets.CODECOV_TOKEN }}
58-
slug: MaKaNu/PytorchPipeline
57+
slug: tensorimgpipeline/TensorImgPipeline
5958

6059
check-docs:
6160
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ data/datasets/*
143143
data/models/*
144144
test_reports/*
145145
wandb/*
146-
PytorchImagePipeline.code-workspace
146+
TensorImgPipeline.code-workspace

.pre-commit-config.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
15
repos:
26
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: "v5.0.0"
7+
rev: "v6.0.0"
48
hooks:
59
- id: check-case-conflict
610
- id: check-merge-conflict
711
- id: check-toml
812
- id: check-yaml
13+
- id: check-json
14+
exclude: ^.devcontainer/devcontainer.json
15+
- id: pretty-format-json
16+
exclude: ^.devcontainer/devcontainer.json
17+
args: [--autofix, --no-sort-keys]
918
- id: end-of-file-fixer
1019
- id: trailing-whitespace
1120

1221
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: "v0.6.3"
22+
rev: "v0.14.8"
1423
hooks:
15-
- id: ruff
16-
args: [--exit-non-zero-on-fix]
24+
- id: ruff-check
25+
args: [ --exit-non-zero-on-fix ]
1726
- id: ruff-format
1827

19-
- repo: https://github.com/pre-commit/mirrors-prettier
20-
rev: "v3.0.3"
28+
- repo: https://github.com/compilerla/conventional-pre-commit
29+
rev: v4.3.0
2130
hooks:
22-
- id: prettier
31+
- id: conventional-pre-commit
32+
stages: [commit-msg]
33+
args: [--verbose, --strict]

CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to `PytorchPipeline`
1+
# Contributing to `TensorImgPipeline`
22

33
Contributions are welcome, and they are greatly appreciated!
44
Every little bit helps, and credit will always be given.
@@ -9,7 +9,7 @@ You can contribute in many ways:
99

1010
## Report Bugs
1111

12-
Report bugs at https://github.com/makanu/PytorchPipeline/issues
12+
Report bugs at https://github.com/tensorimgpipeline/TensorImgPipeline/issues
1313

1414
If you are reporting a bug, please include:
1515

@@ -29,11 +29,11 @@ Anything tagged with "enhancement" and "help wanted" is open to whoever wants to
2929

3030
## Write Documentation
3131

32-
PytorchPipeline could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such.
32+
TensorImgPipeline could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such.
3333

3434
## Submit Feedback
3535

36-
The best way to send feedback is to file an issue at https://github.com/makanu/PytorchPipeline/issues.
36+
The best way to send feedback is to file an issue at https://github.com/tensorimgpipeline/TensorImgPipeline/issues.
3737

3838
If you are proposing a new feature:
3939

@@ -44,22 +44,22 @@ If you are proposing a new feature:
4444

4545
# Get Started!
4646

47-
Ready to contribute? Here's how to set up `PytorchPipeline` for local development.
47+
Ready to contribute? Here's how to set up `TensorImgPipeline` for local development.
4848
Please note this documentation assumes you already have `uv` and `Git` installed and ready to go.
4949

50-
1. Fork the `PytorchPipeline` repo on GitHub.
50+
1. Fork the `TensorImgPipeline` repo on GitHub.
5151

5252
2. Clone your fork locally:
5353

5454
```bash
5555
cd <directory_in_which_repo_should_be_created>
56-
git clone [email protected]:YOUR_NAME/PytorchPipeline.git
56+
git clone [email protected]:YOUR_NAME/TensorImgPipeline.git
5757
```
5858

5959
3. Now we need to install the environment. Navigate into the directory
6060

6161
```bash
62-
cd PytorchPipeline
62+
cd TensorImgPipeline
6363
```
6464

6565
Then, install and activate the environment with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ ADD . /app
2121
# Sync the project
2222
RUN uv sync --frozen
2323

24-
CMD [ "python", "pytorchpipeline/foo.py"]
24+
CMD [ "python", "tipi/foo.py"]

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# PytorchImagePipeline
1+
# TensorImgPipeline
22

3-
[![Release](https://img.shields.io/github/v/release/makanu/PytorchPipeline)](https://img.shields.io/github/v/release/makanu/PytorchPipeline)
4-
[![Build status](https://img.shields.io/github/actions/workflow/status/makanu/PytorchPipeline/main.yml?branch=main)](https://github.com/makanu/PytorchPipeline/actions/workflows/main.yml?query=branch%3Amain)
5-
[![codecov](https://codecov.io/gh/makanu/PytorchPipeline/branch/main/graph/badge.svg)](https://codecov.io/gh/makanu/PytorchPipeline)
6-
[![Commit activity](https://img.shields.io/github/commit-activity/m/makanu/PytorchPipeline)](https://img.shields.io/github/commit-activity/m/makanu/PytorchPipeline)
7-
[![License](https://img.shields.io/github/license/makanu/PytorchPipeline)](https://img.shields.io/github/license/makanu/PytorchPipeline)
3+
![LOGO](docs/assets/logos/tipi_logo_text.v2.png)
84

9-
This is a repository for creating and running Pytorch Image Pipelines.
5+
[![Release](https://img.shields.io/github/v/release/tensorimgpipeline/TensorImgPipeline)](https://img.shields.io/github/v/release/tensorimgpipeline/TensorImgPipeline)
6+
[![Build status](https://img.shields.io/github/actions/workflow/status/tensorimgpipeline/TensorImgPipeline/main.yml?branch=main)](https://github.com/tensorimgpipeline/TensorImgPipeline/actions/workflows/main.yml?query=branch%3Amain)
7+
[![codecov](https://codecov.io/gh/tensorimgpipeline/TensorImgPipeline/branch/main/graph/badge.svg)](https://codecov.io/gh/tensorimgpipeline/TensorImgPipeline)
8+
[![Commit activity](https://img.shields.io/github/commit-activity/m/tensorimgpipeline/TensorImgPipeline)](https://img.shields.io/github/commit-activity/m/tensorimgpipeline/TensorImgPipeline)
9+
[![License](https://img.shields.io/github/license/tensorimgpipeline/TensorImgPipeline)](https://img.shields.io/github/license/tensorimgpipeline/TensorImgPipeline)
1010

11-
- **Github repository**: <https://github.com/makanu/PytorchImagePipeline/>
12-
- **Documentation** <https://makanu.github.io/PytorchImagePipeline/>
11+
This is a repository for creating and running Tensor Image Pipelines, short tipis.
12+
13+
- **Github repository**: <https://github.com/tensorimgpipeline/TensorImgPipeline/>
14+
- **Documentation** <https://tensorimgpipeline.github.io/TensorImgPipeline/>
1315

1416
## Development
1517

@@ -47,7 +49,7 @@ First, create a repository on GitHub with the same name as this project, and the
4749
git init -b main
4850
git add .
4951
git commit -m "init commit"
50-
git remote add origin [email protected]:makanu/PytorchPipeline.git
52+
git remote add origin [email protected]:tensorimgpipeline/TensorImgPipeline.git
5153
git push -u origin main
5254
```
5355

@@ -89,8 +91,8 @@ To enable the code coverage reports, see [here](https://fpgmaas.github.io/cookie
8991
## Releasing a new version
9092

9193
- Create an API Token on [PyPI](https://pypi.org/).
92-
- Add the API Token to your projects secrets with the name `PYPI_TOKEN` by visiting [this page](https://github.com/makanu/PytorchPipeline/settings/secrets/actions/new).
93-
- Create a [new release](https://github.com/makanu/PytorchPipeline/releases/new) on Github.
94+
- Add the API Token to your projects secrets with the name `PYPI_TOKEN` by visiting [this page](https://github.com/tensorimgpipeline/TensorImgPipeline/settings/secrets/actions/new).
95+
- Create a [new release](https://github.com/tensorimgpipeline/TensorImgPipeline/releases/new) on Github.
9496
- Create a new tag in the form `*.*.*`.
9597

9698
For more details, see [here](https://fpgmaas.github.io/cookiecutter-uv/features/cicd/#how-to-trigger-a-release).
File renamed without changes.

docs/assets/logos/tipi.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)