-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
84 lines (74 loc) · 1.86 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
[tool.poetry]
name = "gcspathlib"
version = "0.3.0"
description = ""
authors = ["Karl Kroening <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
isort = {extras = ["colors"], version = "^5.12.0"}
mock = "^5.1.0"
mypy = "^1.4.1"
pylint = "^2.17.4"
pytest = "^7.4.0"
pytest-faker = "^2.0.0"
pytest-only = "^2.0.0"
pytest-randomly = "^3.13.0"
pytest-xdist = "^3.3.1"
types-mock = "^5.0.0.7"
types-setuptools = "^68.0.0.1"
ipython = "^8.14.0"
factory-boy = "^3.3.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
include = '^/(gcspathlib|tests)/.*\.pyi?$'
skip-string-normalization = true
target_version = ['py311']
[tool.isort]
ensure_newline_before_comments = true
force_grid_wrap = 0
force_single_line = true
ignore_whitespace = true
include_trailing_comma = true
line_length = 88
multi_line_output = 3
no_sections = true
use_parentheses = true
[tool.mypy]
files = 'gcspathlib,tests'
mypy_path = 'stubs'
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = true
[[tool.mypy.overrides]]
allow_redefinition = true
module = "tests.*"
[[tool.mypy.overrides]]
module = "gcspathlib.*"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
strict_concatenate = true
strict_equality = true
warn_return_any = true
warn_unused_ignores = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = '''
--pdbcls=IPython.terminal.debugger:Pdb
-W "error::pytest.PytestUnhandledCoroutineWarning"
-W "error::pytest.PytestUnraisableExceptionWarning"
-W "error::RuntimeWarning"
'''
markers = []
testpaths = ["tests"]