forked from TencentBlueKing/bk-user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (78 loc) · 1.74 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
[tool.poetry]
name = "蓝鲸用户管理"
version = "2.3.3"
description = "project description file for ci"
authors = ["TencentBlueKing <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
apigw-manager = "^1.0.3"
[tool.poetry.dev-dependencies]
# black
black = "^22.3.0"
# isort
isort = "^5.9.2"
# flake8
pyproject-flake8 = "0.0.1-alpha.2"
flake8-comprehensions = "3.5.0"
# pytest
pytest = "^6.2.4"
pytest-django = "^3.9.0"
pytest-cov = "^2.8.1"
# mypy
mypy = "^v0.910"
types-requests = "^2.25.0"
types-dataclasses = "^0.1.5"
types-pytz = "^2021.1.0"
types-pyyaml = "^5.4.3"
types-pymysql = "^1.0.0"
types-redis = "^3.5.4"
types-toml = "^0.1.3"
types-cachetools = "^4.2.4"
[tool.black]
line-length = 119
skip-string-normalization = 'true'
exclude = '''
/(
| .+/migrations
| .+/sdk
| .+/node_modules
| .+/build
)/
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = 'true'
force_grid_wrap = 0
use_parentheses = 'true'
line_length = 119
skip_glob = ["*/migrations/**", "*/sdk/**", "*/node_modules/**"]
known_local_folder =["bkuser_core", "bkuser_shell", "bkuser_global", "bkuser_sdk", "bklogin"]
[tool.flake8]
ignore = "C901,E203,W503"
max-line-length = 119
max-complexity = 8
format = "pylint"
show_source = "true"
statistics = "true"
count = "true"
exclude = "*migrations*,*.pyc,.git,__pycache__,*/node_modules/*,*/templates_module*,*/bin/*,*/config/*,*sdk*,*build*"
[tool.mypy]
ignore_missing_imports = true
follow_imports="skip"
show_error_codes = true
strict_optional=true
pretty=true
exclude = '''(?x)(
instrumentor\.py$
| otel\.py$
| src/build/.*\.py$
)'''
[[tool.mypy.overrides]]
module = [
"*.migrations.*",
"*.config.*",
"bkuser_sdk.*",
"*.bkuser_sdk.*",
"*.build.*",
]
ignore_errors = true