Skip to content

Commit

Permalink
refactor: rename package from 'sbr' to 'route_rules'
Browse files Browse the repository at this point in the history
- Updates all imports, file paths, and references to use new package name
- Maintains existing functionality while improving naming clarity
- Updates documentation and configuration files to reflect new name
  • Loading branch information
liblaf committed Feb 1, 2025
1 parent 7ddb1e2 commit cd8bbda
Show file tree
Hide file tree
Showing 68 changed files with 1,261 additions and 806 deletions.
7 changes: 4 additions & 3 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
"emby",
"fakeip",
"geoip",
"getattr",
"gstatic",
"httpx",
"inet",
"hynek",
"ipynb",
"ipython",
"levelno",
"liblaf",
"linenums",
"misakaf",
"mkdocs",
"mkdocstrings",
"mypy",
Expand All @@ -34,19 +36,18 @@
"pypackages",
"pypi",
"pyplot",
"pyproject",
"pyrightconfig",
"pytest",
"pytype",
"pyvenv",
"pyvista",
"rcode",
"sarif",
"scrapy",
"sdist",
"stefanzweifel",
"trimesh",
"ubelt",
"unshallow",
"venv"
],
"ignorePaths": [
Expand Down
11 changes: 5 additions & 6 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/bash
watch_file uv.lock
if [[ ! -f .venv/bin/activate ]]; then
uv sync --all-extras
watch_file "pyproject.toml" "uv.toml" "uv.lock"
if [[ ! -f ".venv/bin/activate" ]]; then
uv sync --all-extras --all-groups
fi
sed --in-place "s/include-system-site-packages = false/include-system-site-packages = true/" .venv/pyvenv.cfg
# shellcheck disable=SC2016
sd '^(\s*)?(?P<key>include-system-site-packages)(\s*)?=(\s*)?(?<val>.*)$' '$key = true' .venv/pyvenv.cfg
# shellcheck disable=SC1091
source .venv/bin/activate
uv export --all-extras --no-dev --no-hashes --output-file requirements.lock
uv export --all-extras --no-hashes --output-file requirements-dev.lock
5 changes: 0 additions & 5 deletions .github/.mega-linter.yaml

This file was deleted.

13 changes: 11 additions & 2 deletions .github/copier/.copier-answers.python.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: bfed6ec
# This file is @generated by <https://github.com/liblaf/copier-python>.
# DO NOT EDIT!
# prettier-ignore
_commit: d1b439c
_src_path: gh:liblaf/copier-python
author: liblaf
email: [email protected]
license: MIT
name: route-rules
owner: liblaf
package_manager: uv
repo: route-rules
6 changes: 6 additions & 0 deletions .github/copier/.copier-answers.release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This file is @generated by <https://github.com/liblaf/copier-release>.
# DO NOT EDIT!
# prettier-ignore
_commit: 34694b2
_src_path: gh:liblaf/copier-release
release_type: python
6 changes: 0 additions & 6 deletions .github/copier/.copier-answers.share.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/copier/.copier-answers.shared.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!
# prettier-ignore
_commit: 25684d3
_src_path: gh:liblaf/copier-share
copyright_holder: liblaf
license: MIT
owner: liblaf
21 changes: 15 additions & 6 deletions .github/linters/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#:schema https://json.schemastore.org/ruff.json
# This file is @generated by <https://github.com/liblaf/copier-python>.
# DO NOT EDIT!

builtins = ["ic"]
fix = true
show-fixes = true
Expand Down Expand Up @@ -33,22 +36,26 @@ ignore = [
"S603",
"S607",
"T201",
"TCH001",
"TCH002",
"TCH003",
"TC001",
"TC002",
"TC003",
"TD002",
"TD003",
"TD004",
"TD005",
]
preview = true
select = ["ALL", "RUF022"]
select = ["ALL"]

[lint.flake8-annotations]
allow-star-arg-any = true

[lint.flake8-import-conventions.aliases]
"array_typing" = "at"
"array_typing.jax" = "atj"
"array_typing.numpy" = "atn"
"array_typing.torch" = "att"
"asyncio.subprocess" = "asp"
"boltons" = "bt"
"jax.numpy" = "jnp"
"jax.typing" = "jxt"
"matplotlib" = "mpl"
Expand All @@ -58,19 +65,21 @@ allow-star-arg-any = true
"open3d" = "o3d"
"pandas" = "pd"
"polars" = "pl"
"pydantic_settings" = "ps"
"pyvista" = "pv"
"seaborn" = "sns"
"subprocess" = "sp"
"taichi" = "ti"
"toolkit" = "tk"
"toolkit.array" = "at"
"toolkit.validation" = "tv"
"toolkit.array.jax" = "tj"
"toolkit.array.numpy" = "tn"
"toolkit.array.torch" = "tt"
"toolkit.typing" = "tp"
"toolkit.validation" = "tv"
"trimesh" = "tm"
"trimesh.transformations" = "tf"
"ubelt" = "ub"

[lint.flake8-type-checking]
runtime-evaluated-base-classes = [
Expand Down
3 changes: 3 additions & 0 deletions .github/linters/pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",

"enableTypeIgnoreComments": false,

"typeCheckingMode": "standard",

"reportArgumentType": "information",
Expand Down
1 change: 1 addition & 0 deletions .github/release-please/.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
92 changes: 92 additions & 0 deletions .github/release-please/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"$schema": "https://github.com/googleapis/release-please/raw/refs/heads/main/schemas/config.json",
"release-type": "python",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"changelog-sections": [
{
"type": "feat",
"section": "✨ Features"
},
{
"type": "feature",
"section": "✨ Features"
},
{
"type": "fix",
"scope": "deps",
"section": "⬆️ Dependencies"
},
{
"type": "fix",
"scope": "deps-dev",
"section": "⬆️ Dependencies"
},
{
"type": "build",
"scope": "deps",
"section": "⬆️ Dependencies"
},
{
"type": "build",
"scope": "deps-dev",
"section": "⬆️ Dependencies"
},
{
"type": "chore",
"scope": "deps",
"section": "⬆️ Dependencies"
},
{
"type": "chore",
"scope": "deps-dev",
"section": "⬆️ Dependencies"
},
{
"type": "fix",
"section": "🐛 Bug Fixes"
},
{
"type": "perf",
"section": "⚡ Performance Improvements"
},
{
"type": "revert",
"section": "⏪ Reverts"
},
{
"type": "docs",
"section": "📝 Documentation"
},
{
"type": "style",
"section": "💄 Styles"
},
{
"type": "chore",
"section": "🎫 Chores",
"hidden": true
},
{
"type": "refactor",
"section": "♻ Code Refactoring"
},
{
"type": "test",
"section": "✅ Tests"
},
{
"type": "build",
"section": "👷 Build System"
},
{
"type": "ci",
"section": "🔧 Continuous Integration"
}
],
"include-component-in-tag": false,
"initial-version": "0.0.0",
"packages": {
".": {}
}
}
Loading

0 comments on commit cd8bbda

Please sign in to comment.