Commit cbb2215f authored by Jan Reimes's avatar Jan Reimes
Browse files

Add project configuration files

- LICENSE: MIT license
- ruff.toml: Linting and formatting rules
- ty.toml: Type checker configuration
- .config/mise/config.toml: Development tool management
parent 08a29848
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
[tools]
node = "latest"
bun = "latest"

[env]
GITLAB_HOST = "forge.3gpp.org"

[settings.npm]
package_manager = "bun"
+3 −0
Original line number Diff line number Diff line
@@ -33,3 +33,6 @@ Thumbs.db

# Local cache
.cache/

# Type checker
.ty/

LICENSE

0 → 100644
+21 −0
Original line number Diff line number Diff line
MIT License

Copyright (c) 2025 Jan Reimes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

ruff.toml

0 → 100644
+73 −0
Original line number Diff line number Diff line

unsafe-fixes = true
exclude = [".venv", ".config/skills"]
target-version = "py311"
line-length = 100
fix = true

[lint]
preview = true
explicit-preview-rules = true
select = [
    # Default rules
    "E",     # pycodestyle errors
    "F",     # Pyflakes
    "C4",    # flake8-comprehensions
    "C90",   # mccabe complex structure
    "D",     # pydocstyle
    "I",     # isort
    "PT",    # flake8-pytest-style
    "PL",    # Pylint
    "SIM",   # flake8-simplify
    "UP",    # pyupgrade
    "W",     # pycodestyle warnings
    "S",     # flake8-bandit
    "ANN",   # flake8-annotations
    "B",     # flake8-bugbear
]
extend-select = [
    "RUF022",  # unsorted-dunder-all
    "PLR6301", # no-self-use
    "PLC0415",
    "E402",    # module-import-not-at-top-of-file
]
ignore = [
    "B024",
    "B028",    # no-explicit-stacklevel
    "B904",
    "C901",    # complex-structure
    "D100",
    "D101",
    "D102",
    "D103",
    "D104",
    "D105",
    "D107",
    "D415",
    "D200",
    "D205",
    "D212",
    "E722",
    "ANN002",
    "ANN003",
    "ANN204",  # dynamically typed typed expressions
    "ANN401",
    "PLR0912",  # too-many-branches
    "PLR0913",
    "PLR2004", # magic value used in comparison
    "PT028",   # test function parameter has default argument
]

[lint.pylint]
max-locals = 20

[lint.per-file-ignores]
"tests/*.py" = ["S101", "S106", "PLR6301", "S603", "PLW1510"]
"tests/**/*.py" = ["S101", "S106", "PLR6301", "S603", "PLW1510"]

[lint.pydocstyle]
convention = "google"

[format]
docstring-code-format = true
docstring-code-line-length = 100

ty.toml

0 → 100644
+18 −0
Original line number Diff line number Diff line
# type checker rules - see https://docs.astral.sh/ty/reference/rules/

[environment]
python-version = "3.11"
python = "./.venv"

[src]
include = [
    "src",
    "tests",
]
exclude = [
    ".venv",
    ".config/skills",
]

[terminal]
error-on-warning = true