-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
112 lines (100 loc) · 2.97 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
108
109
110
111
112
[project]
name = 'fan-tools'
dynamic = ["version"]
description = 'Various python stuff: testing, aio helpers, etc'
readme = "README.md"
authors = [
{ name = 'cybergrind', email = '[email protected]' }
]
keywords = ['testing', 'asyncio']
dependencies = [
'pyyaml>=3.12',
'typing-extensions>=4.4'
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
]
[project.urls]
github = 'http://github.com/micro-fan/fan_tools'
[project.optional-dependencies]
doc_utils = [
'rest_framework_dyn_serializer~=1.3.1',
'docutils',
'djangorestframework~=3.12.0',
]
logging = ['safe-logger>=1.2.1', 'python-json-logger==0.1.7']
aio_utils = ['aiopg', 'psycopg2-binary']
monitoring = ['starlette']
s3_backup = ['boto3', 'fan_tools[logging]']
gcloud_backup = ['google-cloud-storage', 'fan_tools[logging]']
gitlab_monitoring = ['python-gitlab==1.0.2']
image_utils = ['Pillow']
otel = ['opentelemetry-instrumentation-django', 'opentelemetry-instrumentation-psycopg2']
jaeger = ['opentelemetry-exporter-jaeger-thrift']
[project.scripts]
fan_env_yaml = 'fan_tools.scripts.fan_env_yaml:main'
fan_ci_script = 'fan_tools.scripts.fan_ci_script:main'
fan_wait = 'fan_tools.scripts.fan_tools_wait:main'
run_filebeat = 'fan_tools.scripts.run_filebeat:main'
doc_serializer = 'fan_tools.doc_utils.fan_sphinx.dyn:main'
fan_s3_backup = 'fan_tools.backup.s3:main'
[tool.hatch.version]
path = "fan_tools/__init__.py"
[build-system]
requires = ['setuptools', 'wheel', 'hatchling']
build-backend = 'hatchling.build'
[tool.hatch.build]
exclude = ['.*']
[tool.hatch.commands]
prerelease = 'hatch build'
[tool.ruff]
line-length = 100
[tool.black]
line-length = 100
skip-string-normalization = true
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
combine_as_imports = true
default_section = 'THIRDPARTY'
force_alphabetical_sort_within_sections = true
force_grid_wrap = 0
include_trailing_comma = true
line_length = 100
lines_after_imports = 2
multi_line_output = 3
sections = ['FUTURE', 'STDLIB', 'THIRDPARTY', 'OWN', 'FIRSTPARTY', 'LOCALFOLDER']
known_first_party = ''
known_own = ['pytest_tipsi_testing', 'pytest_tipsi_django', 'fan_tools']
[tool.pyright]
# instead use comment in the file: # pyright: strict
# strict = ['fan_tools/python/decorators.py']