Skip to content

Commit

Permalink
chore: init uv -- to be migrated
Browse files Browse the repository at this point in the history
  • Loading branch information
datnguye committed Sep 28, 2024
1 parent 540da02 commit 1ceabea
Show file tree
Hide file tree
Showing 2 changed files with 1,927 additions and 0 deletions.
79 changes: 79 additions & 0 deletions pyproject.toml-uv
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
[project]
name = "dbterd"
version = "0.0.0" # TODO: cannot set version using uv
description = "Generate the ERD-as-a-code from dbt artifacts"
authors = ["Dat Nguyen <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/datnguye/dbterd"
repository = "https://github.com/datnguye/dbterd"
keywords = ["flake8", "markdown", "lint"]
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
include = [
"LICENSE",
]
packages = [
{include = "dbterd"},
{include = "README.md"},
]
requires-python = ">=3.9"
dependencies = [
"click>=8.1.7",
"dbt-artifacts-parser>=0.7.0",
"requests>=2.32.3",
]

[tool.uv]
dev-dependencies = [
"dbt-core >=1.7.11",
"dbt-postgres >=1.7.11",
"pytest >=6.2.5",
"pytest-sugar >=0.9.6",
"black >=24.3.0",
"coverage[toml] >=6.5.0",
"poethepoet >=0.16.4",
"pre-commit >=2.20.0",
"flake8 >=6.0.0",
"isort >=5.12.0",
"autoflake >=2.0.1",
"mkdocs >=1.4.2",
"mkdocs-minify-plugin >=0.6.4",
"mkdocs-material >=9.1.5",
"mike >=1.1.2",
"pdoc >=14.4.0"
]

[tool.coverage.run]
omit = ["tests/*"]

# [tool.uv.tasks] # TODO: missing feature in uv
# git-hooks = { shell pre-commit install --install-hooks && pre-commit install --hook-type commit-msg" }
# format = [
# {cmd autoflake ."},
# {cmd black ."},
# {cmd isort ."},
# ]
# lint = [
# {cmd black --check ."},
# {cmd isort --check-only ."},
# {cmd flake8 ."},
# ]
# test = [
# {cmd pytest . -vv"},
# ]
# test-cov = [
# {cmd pytest --version"},
# {cmd coverage run -m pytest ."},
# {cmd coverage report --show-missing"},
# {cmd coverage xml"},
# ]
# build-doc-and-serve = [
# {cmd mkdocs build"},
# {cmd mkdocs serve"}
# ]
Loading

0 comments on commit 1ceabea

Please sign in to comment.