-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
75 lines (65 loc) · 1.69 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tool.poetry]
name = "trycast"
version = "0.6.1"
description = ""
authors = ["David Foster <david@dafoster.net>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/davidfstr/trycast"
repository = "https://github.com/davidfstr/trycast"
#documentation = "TODO"
classifiers = [ # https://pypi.org/classifiers/
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development"
]
[tool.poetry.dependencies]
# Python 3.7.4 is the minimum Python with typing.ForwardRef
python = "^3.7.4"
coverage = "*"
[tool.poetry.dev-dependencies]
mypy = "^0.931"
mypy_extensions = "*"
tox = "^3.23.1"
black = "==22.1.0"
isort = "^5.9.1"
flake8 = "^3.9.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# Type Checker: Mypy
#
# Config Syntax Reference:
# https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
[tool.mypy]
files = "trycast.py,tests.py"
mypy_path = "."
strict_optional = true
# Formatter: Isort
[tool.isort]
profile = "black"
atomic = true
line_length = 88
skip_glob = ["venv*", "test_data/forwardrefs_example_with_import_annotations.py"]
# Formatter: Black
[tool.black]
line_length = 88
# Tests
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37,py38,py39,py310
isolated_build = True
[testenv]
deps = mypy
commands =
python3 -m unittest
"""