forked from tomerfiliba/plumbum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
159 lines (146 loc) · 4.05 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = [
"hatchling",
"hatch-vcs",
]
build-backend = "hatchling.build"
[project]
name = "plumbum"
description = "Plumbum: shell combinators library"
readme = "README.rst"
author = { name="Tomer Filiba", email="tomerfiliba@gmail.com" }
license = { file="LICENSE" }
requires-python = ">=3.6"
dynamic = ["version"]
dependencies = [
"pywin32; platform_system=='Windows' and platform_python_implementation!='PyPy'",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Build Tools",
"Topic :: System :: Systems Administration",
]
keywords = [
"path",
"local",
"remote",
"ssh",
"shell",
"pipe",
"popen",
"process",
"execution",
"color",
"cli",
]
[project.optional-dependencies]
dev = [
"paramiko",
"psutil",
"pytest>=6.0",
"pytest-cov",
"pytest-mock",
"pytest-timeout",
]
docs = [
"sphinx>=4.0.0",
"sphinx-rtd-theme>=1.0.0",
]
ssh = [
"paramiko",
]
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "plumbum/version.py"
[tool.mypy]
files = ["plumbum"]
python_version = "3.6"
warn_unused_configs = true
warn_unused_ignores = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "truthy-bool"]
disallow_any_generics = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_incomplete_defs = true
check_untyped_defs = false
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_return_any = false
no_implicit_reexport = true
strict_equality = true
[[tool.mypy.overrides]]
module = ["IPython.*", "pywintypes.*", "win32con.*", "win32file.*", "PIL.*", "plumbum.cmd.*", "ipywidgets.*", "traitlets.*", "plumbum.version"]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--cov-config=setup.cfg", "--strict-markers", "--strict-config"]
norecursedirs = ["examples", "experiments"]
filterwarnings = [
"always"
]
log_cli_level = "info"
required_plugins = ["pytest-timeout", "pytest-mock"]
timeout = 300
optional_tests = """
ssh: requires self ssh access to run
sudo: requires sudo access to run
"""
[tool.isort]
profile = "black"
[tool.pylint]
master.py-version = "3.6"
master.jobs = "0"
master.load-plugins = ["pylint.extensions.no_self_use"]
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
messages_control.enable = [
"useless-suppression",
]
messages_control.disable = [
"arguments-differ", # TODO: investigate
"attribute-defined-outside-init", # TODO: investigate
"broad-except", # TODO: investigate
"consider-using-with", # TODO: should be handled
"cyclic-import",
"duplicate-code", # TODO: check
"fixme",
"import-error",
"import-outside-toplevel", # TODO: see if this can be limited to certain imports
"invalid-name",
"line-too-long",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-member",
#"non-parent-init-called", # TODO: should be looked at
"protected-access",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-function-args",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"unidiomatic-typecheck", # TODO: might be able to remove
"unnecessary-lambda-assignment", # TODO: 4 instances
"unused-import", # identical to flake8 but has typing false positives
"eval-used", # Needed for Python <3.10 annotations
]