-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
159 lines (147 loc) · 3.89 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[[tool.poetry.source]]
name = "pypi-public"
url = "https://pypi.org/simple/"
[tool.poetry]
name = "cachemanager"
version = "0.1.1"
description = "A Python manager for the cache"
license = "GNU General Public License Version 3"
authors = [
"OmniPath Team <omnipathdb@gmail.com>"
]
packages = [
{ include = "cache_manager" }
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
repository = "https://github.com/saezlab/cache-manager"
homepage = "https://github.com/saezlab/cache-manager"
documentation = "https://cache-manager.readthedocs.io/"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
toml = "*"
pypath-common = { git = "https://github.com/saezlab/pypath-common.git", branch = "master" }
python-dateutil = "^2.9.0.post0"
platformdirs = "^4.2.2"
numpy = "^1.26.4"
[tool.poetry.dev-dependencies]
pytest = ">=6.0"
tox = ">=3.20.1"
pre-commit = ">=2.17.0"
bump2version = "*"
pytest-cov = "^5.0.0"
coverage = "^7.6.1"
codecov-cli = "^0.7.4"
sphinx = ">=5.0.0"
sphinx-last-updated-by-git = ">=0.3"
sphinx-autodoc-typehints = ">=1.18.0"
sphinxcontrib-fulltoc = ">=1.2.0"
sphinxcontrib-bibtex = "*"
sphinx-copybutton = "*"
myst-parser = "*"
myst-nb = "*"
jupyterlab = "*"
pydata-sphinx-theme = "*"
sphinx-remove-toctrees = "*"
jupyter-contrib-nbextensions = { git = "https://github.com/deeenes/jupyter_contrib_nbextensions.git", branch = "master" }
nbsphinx = { git = "https://github.com/deeenes/nbsphinx.git", branch = "timings" }
flake8-pyproject = { git = "https://github.com/john-hen/Flake8-pyproject.git" }
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/https://github.com/saezlab/cache-manager/issues"
[tool.black]
line-length = 80
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.isort]
from_first = true
line_length = 80
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true
known_num="numpy,pandas"
sections = "FUTURE,STDLIB,THIRDPARTY,NUM,FIRSTPARTY,LOCALFOLDER"
no_lines_before="LOCALFOLDER"
balanced_wrapping = true
force_grid_wrap = 0
length_sort = "1"
indent = " "
skip = []
[tool.flake8]
ignore = ["D200", "D202", "D401", "D105", "W503", "W504", "E731"]
per-file-ignores = [
"docs/src/conf.py:D100",
"tests/*:D100,D101,D102",
"*/__init__.py:F401"
]
max-line-length = 80
count = true
exclude = [
".git",
"__pycache__",
"build",
"docs/_build",
"dist"
]
[tool.yapf]
based_on_style = "facebook"
split_penalty_before_if_expr = 0
split_penalty_import_names = 0
split_penalty_comprehension = 0
split_penalty_for_added_line_split = 0
split_penalty_after_opening_bracket = 0
split_before_first_argument = true
split_before_named_assigns = true
split_complex_comprehension = true
[tool.rstcheck]
report_level = "INFO"
ignore_directives = [
"automodule",
"toctree",
]
ignore_roles = ["ref"]
ignore_messages = '(Unknown target name:.*|No (directive|role) entry for "(auto)?(class|method|property|function|func|mod|attr)" in module "docutils\.parsers\.rst\.languages\.en"\.)'
[tool.coverage.run]
source = ["cache_manager"]
omit = [
"**/test_*.py",
]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
xfail_strict = true
addopts = [
# "-Werror", # if 3rd party libs raise DeprecationWarnings, just use filterwarnings below
"--import-mode=importlib", # allow using test files with same name
]
filterwarnings = [
# "ignore:.*U.*mode is deprecated:DeprecationWarning",
]