blob: 894660dc8ea82f91b9d798b53762d2b354d18ce2 [file] [log] [blame]
Peter Pentchevb91fc932023-01-19 15:27:13 +02001# SPDX-FileCopyrightText: StorPool <support@storpool.com>
2# SPDX-License-Identifier: BSD-2-Clause
3
4[build-system]
5requires = ["setuptools >= 61", "wheel"]
6build-backend = "setuptools.build_meta"
7
8[project]
9name = "gifn_apply"
10version = "0.1.0"
11description = "Functional tests for the git-if-needed tool"
12readme = "python/README.md"
13requires-python = ">= 3.8"
14
15[[project.authors]]
16name = "StorPool"
17email = "support@storpool.com"
18
19[project.scripts]
20gifn_apply = "gifn_apply.__main__:main"
21
22[tool.setuptools]
23zip-safe = true
24package-dir = {"" = "python"}
25packages = ["gifn_apply"]
26
27[tool.black]
28line-length = 100
29
30[tool.mypy]
31strict = true
32python_version = "3.8"
33
34[tool.pylint]
35py-version = "3.8"
36load-plugins = [
37 "pylint.extensions.bad_builtin",
38 "pylint.extensions.broad_try_clause",
39 "pylint.extensions.check_elif",
40 "pylint.extensions.code_style",
41 "pylint.extensions.comparetozero",
42 "pylint.extensions.comparison_placement",
43 "pylint.extensions.confusing_elif",
44 "pylint.extensions.consider_refactoring_into_while_condition",
45 "pylint.extensions.consider_ternary_expression",
46 "pylint.extensions.dict_init_mutate",
47 "pylint.extensions.docparams",
48 "pylint.extensions.docstyle",
49 "pylint.extensions.dunder",
50 # "pylint.extensions.empty_comment", # the license text triggers this
51 "pylint.extensions.emptystring",
52 "pylint.extensions.eq_without_hash",
53 "pylint.extensions.for_any_all",
54 "pylint.extensions.magic_value",
55 "pylint.extensions.mccabe",
56 "pylint.extensions.no_self_use",
57 "pylint.extensions.overlapping_exceptions",
58 "pylint.extensions.private_import",
59 "pylint.extensions.redefined_loop_name",
60 "pylint.extensions.redefined_variable_type",
61 "pylint.extensions.set_membership",
62 "pylint.extensions.typing",
63 "pylint.extensions.while_used",
64]
65disable = [
66 # Clarity
67 "consider-using-assignment-expr",
68]
69
70[tool.test-stages]
71stages = ["ruff and not @manual", "@check and not @manual", "@tests and not @manual"]