-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (111 loc) · 2.65 KB
/
pyproject.toml
File metadata and controls
121 lines (111 loc) · 2.65 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[build-system]
requires = [
"meson-python>=0.18.0",
"pybind11>=2.10.4",
"setuptools-scm>=8"
]
build-backend = "mesonpy"
[project]
name = "pyflyby"
dynamic = ["version"]
authors = [
{ name = "Karl Chen", email = "quarl@8166.clguba.z.quarl.org" },
]
description = "pyflyby - Python development productivity tools, in particular automatic import management"
license = "MIT"
license-files = ["LICENSE.txt"]
readme = "README.rst"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Interpreters",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
]
dependencies = [
"black",
"tomli; python_version<'3.11'",
"typing_extensions>=4.6; python_version<'3.12'",
'prompt_toolkit',
'platformdirs',
]
[project.urls]
Homepage = "https://pypi.org/project/pyflyby/"
Documentation = "https://deshaw.github.io/pyflyby/"
Source = "https://github.com/deshaw/pyflyby"
[project.scripts]
py = "pyflyby._py:py_main"
py3 = "pyflyby._py:py_main"
[project.optional-dependencies]
test = [
'numpy',
'beartype',
'build',
'coverage',
'flaky',
'hypothesis',
'ipykernel>=5.4.3',
'ipython',
'jupyter',
'jupyter_console>=6.2',
'notebook<6.1',
'pexpect>=3.3',
'pytest-cov',
'pytest-json-report',
'pytest>=9',
'requests',
]
[dependency-groups]
lint = [
'flake8',
'mypy',
'pyflakes',
]
docs = [
'sphinx',
'sphinx_rtd_theme',
'sphinx-autodoc-typehints',
]
[tool.mypy]
files = ["lib"]
#warn_incomplete_stub = false
warn_unused_configs = true
#ignore_missing_imports = true
follow_imports = "silent"
# disallow_untyped_defs = true
# ignore_errors = false
# ignore_missing_imports = false
# disallow_untyped_calls = true
# disallow_incomplete_defs = true
# check_untyped_defs = true
# disallow_untyped_decorators = true
warn_redundant_casts = true
exclude = '(?x)(_dbg\.py|_py\.py)'
[[tool.mypy.overrides]]
module = [
"pyflyby._interactive",
]
ignore_errors = true
[tool.pytest.ini_options]
# IGNORE_EXCEPTION_DETAIL prevents doctest from testing the exception message.
doctest_optionflags = "ALLOW_UNICODE ALLOW_BYTES IGNORE_EXCEPTION_DETAIL"
xfail_strict = true
addopts = [
"--strict-markers",
"--durations=10",
"-ra",
]
filterwarnings = [
"error::DeprecationWarning",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.setuptools_scm]
version_file = "lib/python/pyflyby/_version.py"
[tool.ruff]
exclude = ["etc/pyflyby"]
[tool.coverage.run]
patch = ["subprocess", "_exit"]