-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
66 lines (59 loc) · 2.12 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
[project]
name = 'tarn'
dynamic = ['version', 'dependencies']
description = 'A generic framework for key-value storage'
readme = 'README.md'
requires-python = '>=3.7'
license = { file = 'LICENSE' }
keywords = ['storage', 'cache', 'invalidation']
authors = [
{ name = 'Max', email = '[email protected]' },
{ name = 'Talgat', email = '[email protected]' },
]
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
]
[project.urls]
'Homepage' = 'https://github.com/neuro-ml/tarn'
'Issues' = 'https://github.com/neuro-ml/tarn/issues'
'Source' = 'https://github.com/neuro-ml/tarn'
[build-system]
requires = ['setuptools>=43.0.0', 'wheel']
build-backend = 'setuptools.build_meta'
[tool.setuptools.packages.find]
include = ['tarn']
[tool.setuptools.dynamic]
version = { attr = 'tarn.__version__.__version__' }
dependencies = { file = 'requirements.txt' }
[tool.pytest.ini_options]
markers = [
'redis: requires a redis server',
'nginx: requires an nginx server',
'ssh: requires an ssh connection',
's3: requires a s3 client',
]
[tool.flake8]
# W503: line break before binary operator is actually considered best-practice
# E203: spaces around complex variables in slices are pep-right
# F401: unused imports in __init__.py-s
# I251: allow absolute imports in upper files
# B019: @lru_cache for static methods is fine
# B008: calling the function as default value is just part of the typer's interface
# C408: for identifier-like fields dict(x=y) is just more concise
ignore = ["W503", "E203", "B019", "B028", "C408"]
per-file-ignores = ["**/__init__.py:F401", "tests/*:I251"]
max-line-length = 120
banned-modules = "tarn.* = Use relative imports"
[tool.isort]
line_length = 120
profile = 'black'
combine_as_imports = true