-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
70 lines (64 loc) · 1.71 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
[tool.poetry]
name = "bk-crypto-python-sdk"
version = "2.0.1"
description = "bk-crypto-python-sdk is a lightweight cryptography toolkit for Python applications based on Cryptodome / tongsuopy and other encryption libraries."
authors = ["TencentBlueKing <[email protected]>"]
readme = "readme.md"
packages = [
{ include = "bkcrypto" },
]
[tool.poetry.dependencies]
python = ">=3.8,<3.13"
tongsuopy-crayon = "^1.0.2b5"
pycryptodomex = "^3.18.0"
dacite = "^1.8.1"
wrapt = "^1.15.0"
[tool.poetry.dev-dependencies]
ipython = { version = "^7.34.0", python = ">=3.7" }
pytest = { version = "^7.4.0", python = ">=3.7" }
pyproject-flake8 = "5.0.4.post1"
isort = "^5.5.4"
black = "22.3.0"
pre-commit = "^2.16.0"
codecov = "^2.1.13"
Django = "^3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.flake8]
# flake8 不支持 pyproject.toml:https://stackoverflow.com/questions/64482562/
# 平替 flake8
# - pflake8: https://github.com/csachs/pyproject-flake8
# - falke9: https://pypi.org/project/flake9/ (亲测无效)
python_requires = ">= 3.7.2"
ignore = "F405,W503,E203"
max-line-length = 120
max-complexity = 26
format = "pylint"
show_source = "false"
statistics = "true"
count = "true"
exclude = "migrations,*.pyc,.git,__pycache__,static,node_modules,templates,bin,config,scripts,script"
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
# 以上为项目需要忽略的其他目录
)/
'''
[tool.isort]
# refer: https://pycqa.github.io/isort/docs/configuration/options.html
profile = "black"
line_length = 120
skip_glob = ["*/migrations/*", "*/node_modules/*"]