-
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.
Add pyproject.toml and top-level init. (#1)
- Loading branch information
1 parent
2c189fc
commit feccf48
Showing
2 changed files
with
64 additions
and
0 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
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" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Synthesising the 2021 England and Wales Census with public data.""" | ||
|
||
__version__ = "0.0.1" | ||
|
||
__all__ = ["__version__"] |