-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
107 lines (93 loc) · 2.52 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.docformatter]
in-place = true
recursive = true
wrap-summaries = 88
wrap-descriptions = 81
[tool.flake8]
max-line-length = 120
[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.poetry]
name = "dev-tools"
version = "0.8.0"
description = ""
authors = ["BRE <bre@luminartech.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.8"
pre-commit = ">=3.5.0"
[tool.poetry.group.dev.dependencies]
pytest = ">=7"
pytest-cov = ">=4"
pyfakefs = ">=5"
ruamel-yaml = ">=0.18.6"
[tool.poetry.scripts]
check-jira-reference-in-todo = "dev_tools.check_jira_reference_in_todo:main"
check-number-of-lines-count = "dev_tools.check_number_of_lines_count:main"
check-ownership = "dev_tools.check_ownership:main"
check-shellscript-set-options = "dev_tools.check_shellscript_set_options:main"
check-useless-exclude-paths-hooks = "dev_tools.check_useless_exclude_paths_hooks:main"
configure-vscode-for-bazel = "dev_tools.configure_vscode_for_bazel:main"
generate-hook-docs = "dev_tools.generate_hook_docs:main"
whoowns = "dev_tools.find_owner:main"
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint.MASTER]
# Add files or directories to the blacklist. They should be base names, not paths.
ignore = ["venv"]
[tool.pylint."MESSAGES CONTROL"]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence = ""
disable = [
"missing-function-docstring",
"import-error" # disabled since pre-commit runs pylint in a separate venv
]
[tool.pytest.ini_options]
addopts = "--cov-report term-missing --cov=dev_tools -vv"
testpaths = [
"tests"
]
[tool.ruff]
fix = true
unsafe-fixes = true
target-version = "py38"
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A00",
"ANN001",
"COM812",
"D",
"E501", # Line length is the task of the formatter
"FA100",
"ISC001", # Conflicts with formatter
"S101",
"S603",
"T201"
]
[tool.vulture]
min_confidence = 100
ignore_decorators = ["@pytest.fixture"]
exclude = [
"*test_*.py" # vulture doesn't understand pytest fixtures
]