-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migrate from hatch to uv (#14)
* Move dev-deps to uv.tool * Create uv lock file * Remove hatch cli config and update developer README * Update workflows * Update outdated pyproject.toml fields
- Loading branch information
Showing
5 changed files
with
347 additions
and
78 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
|
@@ -5,71 +5,35 @@ build-backend = "hatchling.build" | |
[project] | ||
name = "higlass-schema" | ||
description = "Pydantic models for HiGlass" | ||
authors = [ | ||
{ name = "Trevor Manz", email = "[email protected]" } | ||
] | ||
authors = [{ name = "Trevor Manz", email = "[email protected]" }] | ||
license = { text = "MIT" } | ||
readme = "README.md" | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: OS Independent", | ||
] | ||
url = { homepage = "https://github.com/higlass/higlass-schema" } | ||
requires-python = ">=3.8" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"pydantic>=1.10,<2.0", | ||
"rich>=13.3.3", | ||
] | ||
dependencies = ["pydantic>=1.10,<2.0", "rich>=13.0.0"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black", | ||
"pytest", | ||
"ruff", | ||
] | ||
[project.urls] | ||
homepage = "https://github.com/higlass/higlass-schema" | ||
|
||
[tool.uv] | ||
dev-dependencies = ["black", "pytest", "ruff"] | ||
|
||
[project.scripts] | ||
higlass-schema = "higlass_schema.cli:main" | ||
|
||
[tool.hatch.build] | ||
sources = ["src"] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.envs.default] | ||
features = ["dev"] | ||
|
||
[tool.hatch.envs.default.scripts] | ||
lint = [ | ||
"ruff {args:.}", | ||
"black --check --diff {args:.}", | ||
] | ||
fmt = [ | ||
"black {args:.}", | ||
"ruff --fix {args:.}", | ||
"lint", | ||
] | ||
test = "pytest ." | ||
|
||
# https://github.com/charliermarsh/ruff | ||
[tool.ruff] | ||
line-length = 88 | ||
target-version = "py38" | ||
src = ["src", "tests"] | ||
|
||
[tool.ruff.lint] | ||
extend-select = [ | ||
"E", # style errors | ||
"F", # flakes | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"RUF", # ruff-specific rules | ||
"E", # style errors | ||
"F", # flakes | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"RUF", # ruff-specific rules | ||
] |
Oops, something went wrong.