forked from python-cachier/cachier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (70 loc) · 1.67 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
[metadata]
license_file = "LICENSE"
description-file = "README.md"
[build-system]
requires = ["setuptools", "wheel"]
[tool.pytest.ini_options]
testpaths = ["cachier", "tests"]
norecursedirs=["dist", "build"]
addopts = [
"--color=yes",
"--cov=cachier",
"--cov-report=term",
"--cov-report=xml:cov.xml",
"-r a",
"-v",
"-s",
]
markers = [
"mongo: test the MongoDB core",
"memory: test the memory core",
"pickle: test the pickle core",
]
#[tool.black]
## https://github.com/psf/black
#line-length = 120
#exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)"
#[tool.docformatter]
#recursive = true
## some docstring start with r"""
#wrap-summaries = 119
#wrap-descriptions = 120
#blank = true
[tool.ruff]
target-version = "py38"
line-length = 120
# Enable Pyflakes `E` and `F` codes by default.
select = [
"E",
"W", # see: https://pypi.org/project/pycodestyle
"F", # see: https://pypi.org/project/pyflakes
# "I", #see: https://pypi.org/project/isort/
# "D", # see: https://pypi.org/project/pydocstyle
# "N", # see: https://pypi.org/project/pep8-naming
# "S", # see: https://pypi.org/project/flake8-bandit
]
ignore = [
"E203",
"C901",
]
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".ruff_cache",
"__pypackages__",
"_build",
"build",
"dist",
"versioneer.py",
]
ignore-init-module-imports = true
unfixable = ["F401"]
#[tool.ruff.pydocstyle]
## Use Google-style docstrings.
#convention = "google"
#[tool.ruff.pycodestyle]
#ignore-overlong-task-comments = true
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10