forked from tomerfiliba/plumbum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (97 loc) · 2.69 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
[build-system]
requires = [
"setuptools>=42",
"wheel",
"setuptools_scm[toml]>=3.4.3"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "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.check-manifest]
ignore = [
".*",
"docs/**",
"examples/*",
"experiments/*",
"conda.recipe/*",
"CONTRIBUTING.rst",
]
[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
]