Skip to content

Instantly share code, notes, and snippets.

@pydanny
Last active September 25, 2023 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pydanny/9012bd832cd6be77e109fed526efb81c to your computer and use it in GitHub Desktop.
Save pydanny/9012bd832cd6be77e109fed526efb81c to your computer and use it in GitHub Desktop.
# pip install -e '.[test]'
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "simplicity"
version = "0.7.0"
description = "A straightforward and opinionated cookiecutter template for building Python packages."
readme = "README.md"
authors = [
{name = "Daniel Roy Greenfeld", email = "daniel@feldroy.com"}
]
maintainers = [
{name = "Daniel Roy Greenfeld", email = "daniel@feldroy.com"}
]
classifiers = [
]
license = {text = "BSD"}
dependencies = [
"cookiecutter"
]
[project.optional-dependencies]
test = [
"black", # code auto-formatting
"coverage", # testing
"isort", # code auto-formatting
"mypy", # linting
"pytest", # testing
"ruff" # linting
]
[project.urls]
bugs = "https://github.com/pydanny/simplicity/issues"
changelog = "https://github.com/pydanny/simplicity/blob/master/CHANGELOG.md"
homepage = "https://github.com/pydanny/simplicity"
[tool.setuptools]
package-dir = {"" = "src"}
# Isort
# -----
[tool.isort]
line_length = 99
profile = "black"
default_section = "THIRDPARTY"
lines_after_imports = 2
# Mypy
# ----
[tool.mypy]
files = "."
# Use strict defaults
strict = true
warn_unreachable = true
warn_no_return = true
[[tool.mypy.overrides]]
# Don't require test functions to include types
module = "tests.*"
allow_untyped_defs = true
disable_error_code = "attr-defined"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment