File tree Expand file tree Collapse file tree 8 files changed +28
-30
lines changed
Expand file tree Collapse file tree 8 files changed +28
-30
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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
33install :
44 uv sync --all-extras --dev
1111 uv run ruff format .
1212
1313lint :
14- uv run pyright src/ moelib tests
14+ uv run pyright src/ expr_simplifier tests
1515 uv run ruff check .
1616
1717fmt-docs :
Original file line number Diff line number Diff line change 11[project ]
2- name = " moelib "
2+ name = " expr-simplifier "
33version = " 0.1.0"
44description = " "
55readme = " 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 ]
3434dev-dependencies = [
@@ -40,7 +40,7 @@ dev-dependencies = [
4040]
4141
4242[tool .pyright ]
43- include = [" src/moelib " , " tests" ]
43+ include = [" src/expr_simplifier " , " tests" ]
4444pythonVersion = " 3.9"
4545typeCheckingMode = " strict"
4646
@@ -74,7 +74,7 @@ ignore = [
7474
7575[tool .ruff .lint .isort ]
7676required-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" ]
File renamed without changes.
Original file line number Diff line number Diff line change 22
33import argparse
44
5- from moelib import __version__
5+ from expr_simplifier import __version__
66
77
88def main () -> None :
File renamed without changes.
Original file line number Diff line number Diff line change 55# This can be replaced with tomllib if you are using Python 3.11+
66import tomli as tomllib
77
8- from moelib import __version__
8+ from expr_simplifier import __version__
99
1010with Path ("pyproject.toml" ).open ("rb" ) as f :
1111 project_info = tomllib .load (f )
You canβt perform that action at this time.
0 commit comments