-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
136 lines (117 loc) · 2.75 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "DiffLume"
description = "TUI app for viewing deltas between text files"
version = "0.6.0"
license = "MIT"
authors = [
"yakimka"
]
readme = "README.md"
repository = "https://github.com/yakimka/DiffLume"
keywords = [
"diff",
"tui",
"text",
"textual",
"terminal",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
[tool.poetry.scripts]
difflume = "difflume.main:main"
[tool.poetry.dependencies]
python = "^3.10"
textual = ">=0.35.1,<0.42.0"
httpx = ">=0.24.1,<0.28.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.5"
pre-commit = "^3.4.0"
pytest = ">=7.4,<9.0"
pytest-asyncio = ">=0.21.1,<0.24.0"
pytest-cov = ">=4.1,<6.0"
pytest-deadfixtures = "^2.2.1"
pytest-httpserver = "^1.0.8"
pytest-randomly = "^3.12"
pytest-textual-snapshot = "^0.4.0"
[tool.isort]
# isort configuration:
# https://github.com/timothycrosley/isort/wiki/isort-Settings
profile = "black"
include_trailing_comma = true
use_parentheses = true
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
line_length = "88"
[tool.black]
line-length = "88"
[tool.pytest.ini_options]
# Directories that are not visited by pytest collector:
norecursedirs = [
"*.egg",
".eggs",
"dist",
"build",
"docs",
".tox",
".git",
"__pycache__",
".cache",
".venv",
"venv",
]
# Strict `@xfail` by default:
xfail_strict = true
asyncio_mode = "auto"
# Extra options:
addopts = [
# don't add --cov because it breaks pycharm debugger
# just add it manaually when needed to cmd args
"--strict-markers",
"--strict-config",
"--tb=short",
"--cov-report=term-missing",
"--cov-report=xml",
# "--cov-fail-under=100",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
precision = 2
exclude_lines = [
"if TYPE_CHECKING:",
]
[tool.mypy]
files = ["."]
exclude = ["tests/"]
##
# mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html
allow_redefinition = false
check_untyped_defs = true
disallow_any_explicit = false
disallow_any_generics = false
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
local_partial_types = true
no_implicit_optional = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true