[pyproject] adding rlxnix, ruff, doc

This commit is contained in:
wendtalexander 2025-10-07 16:08:17 +02:00
parent 7c9323311c
commit 5c35f5c7d3

View File

@ -9,8 +9,65 @@ dependencies = [
"neo>=0.14.2", "neo>=0.14.2",
"nixio>=1.5.4", "nixio>=1.5.4",
"rich>=14.1.0", "rich>=14.1.0",
"rlxnix",
"scipy>=1.16.2", "scipy>=1.16.2",
"typer>=0.19.2", "typer>=0.19.2",
] ]
[project.scripts] [project.scripts]
oephys2nix = "oephys2nix.main:app" oephys2nix = "oephys2nix.main:app"
[project.optional-dependencies]
docs = [
"quartodoc>=0.11.1",
]
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
"W", # pycodestyle
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"ANN", # flake8-annotations
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"EM", # flake8-error-msg
"EXE", # flake8-executable
"ICN", # flake8-import-conventions
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"PD", # pandas-vet
"PL", # pylint
"TRY", # tryceratops
"NPY", # numpy-specific
"I", # isort
"C90", # complexity (McCabe)
"N", # pep8-naming
"D", # pydocstyle
]
ignore = [
"COM812", # missing trailing comma
"TD002", # missing todo author
"TD003", # missing todo link
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.uv.sources]
rlxnix = { git = "https://github.com/wendtalexander/relacsed_nix.git", branch = "open-ephys" }