forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
43 lines (37 loc) · 1.04 KB
/
pyproject.toml
File metadata and controls
43 lines (37 loc) · 1.04 KB
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
# Local pre-commit hook config
[project]
name = "sonic-mgmt-pre-commit-hooks"
version = "1.0.1+pre_commit"
description = "Some hooks for pre-commit in sonic-mgmt repo."
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
requires-python = ">=3.7"
dependencies = ["tomli>=2.0.1;python_version<'4.0'"]
[project.urls]
Homepage = "https://github.com/sonic-net/sonic-mgmt"
[tool.setuptools]
package-dir = {"" = ".hooks"}
[tool.setuptools.packages.find]
where = [".hooks"]
[project.scripts]
check-conditional-mark-sort = 'pre_commit_hooks.check_conditional_mark_sort:main'
[tool.black]
line-length = 120
include = '^tests/common2/.*\.py$'
extend-exclude = '''
(
\.git
| \.mypy_cache
| \.pytest_cache
| \.venv
| .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
| spytest/
)
'''
[tool.mypy]
ignore_missing_imports = true
strict = true