Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
canergen committed Feb 20, 2024
1 parent 7138c0f commit f20719b
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"python.testing.pytestArgs": [
"tests"
"."
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
Expand Down
93 changes: 64 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
build-backend = "hatchling.build"
requires = ["hatchling"]

[tool.hatch.build.targets.wheel]
exclude = ["resources/*", "tests/*", "dataset/*"]

[tool.hatch.build.targets.sdist]
exclude = ["resources/*", "tests/*", "dataset/*"]

[project]
name = "PopV"
version = "0.4.2"
description = "Consensus prediction of cell type labels with popV"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.9, <3.12"
license = {file = "LICENSE"}
authors = [
{name = "Can Ergen"},
Expand All @@ -24,7 +18,18 @@ maintainers = [
urls.Documentation = "https://PopV.readthedocs.io/"
urls.Source = "https://github.com/YosefLab/PopV.git"
urls.Home-page = "https://github.com/YosefLab/PopV.git"

classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"anndata>0.8.0",
"pandas<2.0.0,>=1.4.0",
Expand All @@ -51,9 +56,8 @@ dev = [
"pre-commit",
"twine>=4.0.2"
]
[project.optional-dependencies]
cuml = [
"faiss-cpu",
"faiss-gpu",
"cudf-cu12",
"cuml-cu12",
"cugraph-cu12"
Expand All @@ -77,6 +81,9 @@ test = [
"coverage",
]

[tool.hatch.build.targets.wheel]
packages = ['popv']

[tool.coverage.run]
source = ["popv"]
omit = [
Expand All @@ -86,16 +93,39 @@ omit = [
[tool.pytest.ini_options]
testpaths = ["tests"]
xfail_strict = true
addopts = [
"--import-mode=importlib", # allow using test files with same name
]

[tool.black]
line-length = 120

[tool.ruff]
src = ["src"]
src = ["."]
line-length = 120
indent-width = 4
target-version = "py39"

# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]

[tool.ruff.lint]
select = [
"F", # Errors detected by Pyflakes
"E", # Error detected by Pycodestyle
Expand Down Expand Up @@ -137,22 +167,27 @@ ignore = [
"D213",
]

[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"

# Like Black, indent with spaces, rather than tabs.
indent-style = "space"

# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"

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

[tool.ruff.per-file-ignores]
"docs/*" = ["I"]
"docs/*" = ["I", "BLE001"]
"tests/*" = ["D"]
"*/__init__.py" = ["F401"]
"popv/__init__.py" = ["I"]

[tool.cruft]
skip = [
"tests",
"src/**/__init__.py",
"src/**/basic.py",
"docs/api.md",
"docs/changelog.md",
"docs/references.bib",
"docs/references.md",
"docs/notebooks/example.ipynb"
]
[tool.jupytext]
formats = "ipynb,md"

0 comments on commit f20719b

Please sign in to comment.