forked from pdbpp/fancycompleter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
112 lines (99 loc) · 2.56 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
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
[build-system]
requires = ["setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "fancycompleter"
description = "colorful TAB completion for Python prompt"
readme = "README.md"
license = {text = "BSD"}
authors = [{name = "Antonio Cuni", email = "[email protected]"}]
maintainers = [{name = "bretello", email = "[email protected]"}]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Topic :: Utilities"
]
keywords = ["rlcompleter", "prompt", "color", "completion"]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"pyreadline3;platform_system=='Windows'",
"pyrepl @ git+https://github.com/bretello/[email protected] ; python_version < '3.13'"
]
[project.urls]
homepage = "https://github.com/bretello/fancycompleter"
issues = "https://github.com/bretello/fancycompleter/issues"
[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov"
]
dev = [
"ruff==0.9.2",
"mypy",
"fancycompleter[tests]"
]
[tool.setuptools]
packages = ["fancycompleter"]
[tool.setuptools_scm]
write_to = "fancycompleter/version.py"
[tool.ruff]
line-length = 88
target-version = "py39"
exclude = ["fancycompleter/version.py"]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I"
]
ignore = ["F401"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["B011"]
"setup.py" = ["E501"]
[tool.pytest.ini_options]
addopts = "--cov --cov-branch --no-cov-on-fail -ra --tb short -p pytester"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["fancycompleter", "tests"]
[tool.coverage.paths]
source = ["tests", "*/site-packages"]
[tool.mypy]
# Error output
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
check_untyped_defs = true
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
strict_equality = true
no_implicit_optional = true
warn_unused_configs = true
files = ["fancycompleter", "tests"]
[[tool.mypy.overrides]]
module = ["_pyrepl.*", "pyrepl.*", "pyreadline.*"]
ignore_missing_imports = true