Skip to content

Commit

Permalink
Add pyproject.toml and top-level init. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffidwilde authored Oct 23, 2023
1 parent 2c189fc commit feccf48
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[project]
name = "centhesus"
description = "A package for synthesising the 2021 Census from public data"
authors = [
{name = "Henry Wilde"},
{name = "Data Science Campus", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.7"
license = {text = "MIT License"}
dependencies = [
"numpy",
"pandas",
"private-pgm@git+https://github.com/ryan112358/private-pgm",
]
dynamic = ["version"]

[build-system]
requires = ["setuptools>=62"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = {attr = "centhesus.__version__"}

[project.optional-dependencies]
test = [
"hypothesis",
"pytest",
"pytest-cov",
"pytest-randomly",
]
lint = [
"black>=22.6.0,<23",
"ruff>=0.1.1",
]
dev = [
"centhesus[test,lint]",
"pytest-sugar",
]

[project.urls]
homepage = "https://github.com/datasciencecampus/centhesus"

[tool.black]
line-length = 79

[tool.coverage.report]
omit = ["src/**/__init__.py"]

[tool.ruff]
extend-select = ["D", "I", "W"]
ignore = ["D105", "D107", "D202"]
line-length = 79

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

[tool.ruff.pydocstyle]
convention = "numpy"
5 changes: 5 additions & 0 deletions src/centhesus/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Synthesising the 2021 England and Wales Census with public data."""

__version__ = "0.0.1"

__all__ = ["__version__"]

0 comments on commit feccf48

Please sign in to comment.