Skip to content

Commit b56386d

Browse files
committed
πŸŽ‰ chore: init expr_simplifier
1 parent a00aeed commit b56386d

File tree

8 files changed

+28
-30
lines changed

8 files changed

+28
-30
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
# Python lib starter
1+
# Expr Simplifier
22

3-
Just a template for quickly creating a python library.
3+
πŸ‹β€πŸŸ© A tool for simplifying Python expressions that don't contain side effects, mainly for generated code
44

55
<p align="center">
6-
<a href="https://python.org/" target="_blank"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/moelib?logo=python&style=flat-square"></a>
7-
<a href="https://pypi.org/project/moelib/" target="_blank"><img src="https://img.shields.io/pypi/v/moelib?style=flat-square" alt="pypi"></a>
8-
<a href="https://pypi.org/project/moelib/" target="_blank"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/moelib?style=flat-square"></a>
9-
<a href="LICENSE"><img alt="LICENSE" src="https://img.shields.io/github/license/ShigureLab/moelib?style=flat-square"></a>
6+
<a href="https://python.org/" target="_blank"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/expr-simplifier?logo=python&style=flat-square"></a>
7+
<a href="https://pypi.org/project/expr-simplifier/" target="_blank"><img src="https://img.shields.io/pypi/v/expr-simplifier?style=flat-square" alt="pypi"></a>
8+
<a href="https://pypi.org/project/expr-simplifier/" target="_blank"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/expr-simplifier?style=flat-square"></a>
9+
<a href="LICENSE"><img alt="LICENSE" src="https://img.shields.io/github/license/ShigureLab/expr-simplifier?style=flat-square"></a>
1010
<br/>
1111
<a href="https://github.com/astral-sh/uv"><img alt="uv" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json&style=flat-square"></a>
1212
<a href="https://github.com/astral-sh/ruff"><img alt="ruff" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&style=flat-square"></a>
1313
<a href="https://gitmoji.dev"><img alt="Gitmoji" src="https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67?style=flat-square"></a>
1414
</p>
15-
16-
Before the work starts, replace the `moelib` with the name of your library.

β€Žjustfileβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION := `uv run python -c "import sys; from moelib import __version__ as version; sys.stdout.write(version)"`
1+
VERSION := `uv run python -c "import sys; from expr_simplifier import __version__ as version; sys.stdout.write(version)"`
22

33
install:
44
uv sync --all-extras --dev
@@ -11,7 +11,7 @@ fmt:
1111
uv run ruff format .
1212

1313
lint:
14-
uv run pyright src/moelib tests
14+
uv run pyright src/expr_simplifier tests
1515
uv run ruff check .
1616

1717
fmt-docs:

β€Žpyproject.tomlβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "moelib"
2+
name = "expr-simplifier"
33
version = "0.1.0"
44
description = ""
55
readme = "README.md"
@@ -22,13 +22,13 @@ classifiers = [
2222
]
2323

2424
[project.urls]
25-
Homepage = "https://github.com/ShigureLab/moelib"
26-
Documentation = "https://github.com/ShigureLab/moelib"
27-
Repository = "https://github.com/ShigureLab/moelib"
28-
Issues = "https://github.com/ShigureLab/moelib/issues"
25+
Homepage = "https://github.com/ShigureLab/expr-simplifier"
26+
Documentation = "https://github.com/ShigureLab/expr-simplifier"
27+
Repository = "https://github.com/ShigureLab/expr-simplifier"
28+
Issues = "https://github.com/ShigureLab/expr-simplifier/issues"
2929

3030
[project.scripts]
31-
moelib = "moelib.__main__:main"
31+
expr_simplifier = "expr_simplifier.__main__:main"
3232

3333
[tool.uv]
3434
dev-dependencies = [
@@ -40,7 +40,7 @@ dev-dependencies = [
4040
]
4141

4242
[tool.pyright]
43-
include = ["src/moelib", "tests"]
43+
include = ["src/expr_simplifier", "tests"]
4444
pythonVersion = "3.9"
4545
typeCheckingMode = "strict"
4646

@@ -74,7 +74,7 @@ ignore = [
7474

7575
[tool.ruff.lint.isort]
7676
required-imports = ["from __future__ import annotations"]
77-
known-first-party = ["moelib"]
77+
known-first-party = ["expr_simplifier"]
7878

7979
[tool.ruff.lint.per-file-ignores]
8080
"setup.py" = ["I"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44

5-
from moelib import __version__
5+
from expr_simplifier import __version__
66

77

88
def main() -> None:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This can be replaced with tomllib if you are using Python 3.11+
66
import tomli as tomllib
77

8-
from moelib import __version__
8+
from expr_simplifier import __version__
99

1010
with Path("pyproject.toml").open("rb") as f:
1111
project_info = tomllib.load(f)

β€Žuv.lockβ€Ž

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)