forked from fsspec/universal_pathlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
100 lines (86 loc) · 1.9 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
[build-system]
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "upath/_version.py"
version_scheme = "post-release"
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
force-exclude = '''
(
^/upath/tests/pathlib/_test_support\.py
|^/upath/tests/pathlib/test_pathlib_.*\.py
)
'''
[tool.isort]
profile = "black"
known_first_party = ["upath"]
force_single_line = true
line_length = 88
[tool.pytest.ini_options]
addopts = "-ra -m 'not hdfs' -p no:pytest-mypy-plugins"
markers = [
"hdfs: mark test as hdfs",
"pathlib: mark cpython pathlib tests",
]
[tool.coverage.run]
branch = true
source = ["upath"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"raise AssertionError",
"@overload",
]
[tool.mypy]
# Error output
show_column_numbers = false
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
check_untyped_defs = false
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
files = ["upath"]
exclude = "^notebooks|^venv.*|tests.*|^noxfile.py"
[[tool.mypy.overrides]]
module = "fsspec.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "webdav4.*"
ignore_missing_imports = true
[tool.pylint.format]
max-line-length = 88
[tool.pylint.message_control]
enable = ["c-extension-no-member", "no-else-return"]
[tool.pylint.variables]
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"
ignored-argument-names = "_.*|^ignored_|^unused_|args|kwargs"
[tool.codespell]
ignore-words-list = " "
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"]