Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: uv sync --extra develop

- name: Run ty
run: uv run ty check sigpyproc/
run: uv run ty check

test:
name: Tests & Coverage
Expand All @@ -69,7 +69,7 @@ jobs:
run: uv sync --extra tests

- name: Run pytest
run: uv run pytest --cov=sigpyproc --cov-report=xml -v
run: uv run pytest --cov=src --cov-report=xml -v

- name: Upload coverage to Codecov
# only upload once — ubuntu + latest python avoids duplicate reports
Expand Down
29 changes: 9 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@
requires = ["uv_build>=0.10.4,<0.11.0"]
build-backend = "uv_build"

[tool.uv.build-backend]
module-name = "sigpyproc"
module-root = ""

[project]
name = "sigpyproc"
version = "2.0.0"
description = "Python FRB/pulsar data toolbox"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Ewan Barr", email = "ewan.d.barr@gmail.com" }]
maintainers = [{ name = "Pravir Kumar", email = "pravirka@gmail.com" }]
authors = [
{ name = "Pravir Kumar", email = "pravirka@gmail.com" },
{ name = "Ewan Barr", email = "ewan.d.barr@gmail.com" },
]
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
Expand Down Expand Up @@ -76,15 +74,8 @@ spp_clean = "sigpyproc.apps.spp_clean:main"


[tool.ruff]
include = [
"pyproject.toml",
"sigpyproc/**/*.py",
"tests/**/*.py",
"docs/**/*.py",
]

exclude = ["sigpyproc/apps/spp_digifil.py"]

include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py", "docs/**/*.py"]
exclude = ["src/sigpyproc/apps/spp_digifil.py"]
line-length = 88
indent-width = 4
target-version = "py312"
Expand All @@ -104,17 +95,15 @@ ignore = ["COM812", "D1", "D301", "PLR2004", "G004"]
[tool.ruff.lint.pylint]
max-args = 15

[tool.ruff.lint.isort]
known-first-party = ["sigpyproc"]

[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ty.environment]
python-version = "3.12"

[tool.ty.src]
exclude = ["sigpyproc/apps/spp_digifil.py"]
include = ["src"]
exclude = ["tests", "src/sigpyproc/apps/spp_digifil.py"]

[tool.ty.rules]
not-iterable = "ignore" # For Numba prange
Expand All @@ -131,7 +120,7 @@ addopts = ["-ra", "-q"]
testpaths = ["tests"]

[tool.coverage.paths]
source = ["./sigpyproc/"]
source = ["src/"]

[tool.coverage.run]
omit = ["tests/*", "docs/*", "*__init__.py", "*_types.py"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.