forked from mariushelf/shelved_cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
86 lines (75 loc) · 2.32 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
[tool.poetry]
name = "shelved_cache"
version = "0.3.1"
description = "Persistent cache for Python cachetools."
authors = ["Marius Helf <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/mariushelf/shelved_cache"
repository = "https://github.com/mariushelf/shelved_cache"
documentation = "https://github.com/mariushelf/shelved_cache"
classifiers = [
"Development Status :: 4 - Beta",
"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 :: Implementation :: PyPy"
]
# Workaround for https://github.com/python-poetry/poetry/issues/9293
[[tool.poetry.source]]
name = "pypi-public"
url = "https://pypi.org/simple/"
[tool.poetry.dependencies]
python = "^3.7.0,<4"
cachetools = "^4.2.2|^5.0.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^2.8.0"
tox = "^4.4.5"
twine = "^4.0.0"
pytest = "^7.1.1"
pytest-asyncio = "^0.20.3"
pytest-cov = "^4.0.0"
[tool.isort]
profile = "black"
multi_line_output = 3
[build-system]
requires = ["poetry-core>=1.4"]
build-backend = "poetry.core.masonry.api"
# pytest configuration
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules --doctest-continue-on-failure -rA --cov=shelved_cache --cov-report term --cov-report xml:coverage.xml --junitxml=report.xml"
testpaths = [
"tests",
"shelved_cache",
]
[tool.ruff]
select = [
# "ANN", # flake8-annotations
"E", # flake8
"F", # flake8
"I", # isort
# "D", # pydocstyle
"S", # flake8-bandit
"NPY", # numpy-specific rules
"RUF", # ruff specific rules
]
ignore = [
"E501",
"E712",
"ANN101", # Missing type annotation for `self` in method
"ANN202", # Missing return type annotation for private function
"ANN204", # Missing return type annotation for special function
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
# pydocstyle
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D106", # Missing docstring in public nested class
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**" = ["S", "ANN"]
[tool.ruff.pydocstyle]
convention = "numpy"