-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5157fb
commit 2d3a023
Showing
9 changed files
with
622 additions
and
341 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,216 +2,27 @@ | |
requires = ["poetry-core>=1.8.0", "wheel",] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
|
||
[tool.coverage.run] | ||
branch = true | ||
relative_files = true | ||
omit = [ | ||
".tox/*", | ||
"tests/*", | ||
] | ||
|
||
|
||
[tool.poetry] | ||
name = "project-name" | ||
name = "lambda-calc" | ||
version = "0.1.0" | ||
description = "A template Poetry project structure." | ||
description = "Path Length Lambda Helper Functions." | ||
|
||
packages = [ | ||
{ include = "project_name", from = "src" }, | ||
{ include = "lambda_calc", from = "src" } | ||
] | ||
|
||
authors = ["Lari Liuhamo <[email protected]>",] | ||
maintainers = ["Lari Liuhamo <[email protected]>",] | ||
authors = ["Honglu He <[email protected]>",] | ||
maintainers = ["Honglu He <[email protected]>",] | ||
|
||
include = ["CHANGELOG.md", "LICENSE", "py.typed",] | ||
license = "BSD-3-Clause" | ||
readme = "README.md" | ||
|
||
homepage = "" | ||
repository = "" | ||
documentation = "" | ||
|
||
keywords = [ | ||
"python3", | ||
] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Typing :: Typed", | ||
] | ||
repository = "https://github.com/hehonglu123/lambda_calc" | ||
|
||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8.1" | ||
numpy = "^1.24.4" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
mypy = "^1.10.0" | ||
|
||
|
||
[tool.poetry.group.linters] | ||
optional = true | ||
|
||
|
||
[tool.poetry.group.linters.dependencies] | ||
ruff = "^0.4.4" | ||
|
||
|
||
[tool.poetry.group.tests] | ||
optional = true | ||
|
||
|
||
[tool.poetry.group.tests.dependencies] | ||
pytest = "^8.2.0" | ||
pytest-cov = "^5.0.0" | ||
tox = "^4.15.0" | ||
tox-gh-actions = "^3.2.0" | ||
|
||
|
||
[tool.poetry.urls] | ||
"Tracker" = "" | ||
"Changelog" = "" | ||
|
||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
addopts = """ | ||
--doctest-modules \ | ||
--cov=./ \ | ||
--cov-append \ | ||
--cov-report html:tests/reports/coverage-html \ | ||
--cov-report xml:tests/reports/coverage.xml \ | ||
--ignore=docs/ | ||
""" | ||
testpaths = [ | ||
"tests", | ||
] | ||
|
||
|
||
[tool.ruff] | ||
select = [ | ||
"A", # Builtins | ||
"ANN", # Annotations | ||
"ARG", # Unused arguments | ||
"B", # Bugbear | ||
"BLE", # Blind except | ||
"C4", # Comprehensions | ||
"C90", # mccabe | ||
"COM", # Commas | ||
"D1", # Undocumented public elements | ||
"D2", # Docstring conventions | ||
"D3", # Triple double quotes | ||
"D4", # Docstring text format | ||
"DTZ", # Datetimes | ||
"EM", # Error messages | ||
"ERA", # Commented-out code | ||
"EXE", # Executable | ||
"F", # Pyflakes | ||
"FA", # __future__ annotations | ||
"FLY", # F-strings | ||
# "FURB", # Refurb | ||
"G", # Logging format | ||
"I", # Isort | ||
"ICN", # Import conventions | ||
"INP", # Disallow PEP-420 (Implicit namespace packages) | ||
"INT", # gettext | ||
"ISC", # Implicit str concat | ||
# "LOG", # Logging | ||
"N", # PEP-8 Naming | ||
"NPY", # Numpy | ||
"PERF", # Unnecessary performance costs | ||
"PGH", # Pygrep hooks | ||
"PIE", # Unnecessary code | ||
"PL", # Pylint | ||
"PT", # Pytest | ||
"PTH", # Use Pathlib | ||
"PYI", # Stub files | ||
"Q", # Quotes | ||
"RET", # Return | ||
"RUF", # Ruff | ||
"RSE", # Raise | ||
"S", # Bandit | ||
"SIM", # Code simplification | ||
"SLF", # Private member access | ||
"SLOT", # __slots__ | ||
"T10", # Debugger | ||
"T20", # Print | ||
"TCH", # Type checking | ||
"TID", # Tidy imports | ||
"TRY", # Exception handling | ||
"UP", # Pyupgrade | ||
"W", # Warnings | ||
"YTT", # sys.version | ||
] | ||
ignore = [ | ||
"D203", # One blank line before class docstring | ||
"D212", # Multi-line summary first line | ||
"PLR0913", # Too many arguments | ||
"Q000", # Single quotes found but double quotes preferred | ||
] | ||
ignore-init-module-imports = true | ||
line-length = 120 | ||
# preview = true | ||
show-fixes = true | ||
src = ["src",] | ||
target-version = "py38" | ||
|
||
|
||
[tool.ruff.flake8-quotes] | ||
docstring-quotes = "double" | ||
multiline-quotes = "double" | ||
|
||
|
||
[tool.ruff.mccabe] | ||
# Unlike Flake8, default to a complexity level of 10. | ||
max-complexity = 10 | ||
|
||
|
||
[tool.ruff.per-file-ignores] | ||
# https://beta.ruff.rs/docs/rules/ | ||
"__init__.py" = ["F401","F403","F405",] | ||
"tests/*" = ["ANN", "ARG", "INP001", "S101",] | ||
|
||
|
||
[tool.ruff.pylint] | ||
max-args = 15 | ||
max-branches = 20 | ||
max-returns = 10 | ||
max-statements = 80 | ||
|
||
|
||
[tool.ruff.flake8-tidy-imports] | ||
ban-relative-imports = "all" | ||
|
||
|
||
[tool.tox] | ||
legacy_tox_ini = """ | ||
[tox] | ||
envlist = py38, py39, py310, py311, pypy3 | ||
skip_missing_interpreters = true | ||
[gh-actions] | ||
python = | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
pypy-3.10: pypy3 | ||
[testenv] | ||
passenv = GITHUB_* | ||
allowlist_externals = poetry | ||
#commands = | ||
# poetry run pytest | ||
# poetry run coverage report | ||
""" | ||
python = ">=3.8,<3.12" | ||
numpy = "<2.0.0" | ||
general_robotics_toolbox = "^0.7.2" | ||
scipy = "^1.9.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"""Stuff 'n' things.""" | ||
from .lambda_calc import * |
Oops, something went wrong.