-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
147 lines (130 loc) · 3.5 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
[project]
name = "local-migrator"
description = "Package for simplify data structures migrations"
readme = "README.rst"
requires-python = ">=3.8"
license = {text = "MIT"}
keywords = ["migration", "persistance"]
authors = [
{email = "[email protected]"},
{name = "Grzegorz Bokota"}
]
maintainers = []
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"packaging",
]
dynamic = [
"version",
]
[project.optional-dependencies]
test = [
"pytest > 7.0.0",
"pydantic",
"numpy",
"napari",
]
cbor = [
"cbor2"
]
[project.entry-points.pytest11]
local_migrator = "local_migrator._testsupport"
[project.urls]
Homepage = "https://github.com/Czaki/local_migrator"
Documentation = "https://local-migrator.readthedocs.io/en/latest/"
Repository = "https://github.com/Czaki/local_migrator"
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools>=61.0.0", "wheel>=0.37.0", "setuptools_scm[toml]>=6.4"] # PEP 508 specifications.
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ""
testpaths = [
"src/tests",
]
[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
exclude = ["tests"] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools_scm]
write_to = "src/local_migrator/version.py"
[tool.black]
line-length = 120
target-version = ['py36']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
| package/PartSeg/version.py
)
'''
[tool.ruff]
line-length = 120
exclude = ["examples/call_simple_threshold.py"]
target-version = "py38"
fix = true
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", "W", # pycodestyle
"C90", # mccabe
"I", # isort
"UP", # pyupgrade
"A", # flake8-builtins
"YTT", # flake8-2020
"S", # flake8-bandit
# "BLE", # flake8-blind-except
"B", # lake8-bugbear
"A", #flake8-builtins
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"PGH", # pygrep-hooks
"PLC", "PLE", "PLR", "PLW", # pylint
"NPY", # NumPy-specific rules
"RUF", # Ruff-specific rules
]
ignore = ["A003"]
[tool.ruff.lint.isort]
known-first-party=['local_migrator']
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 15
[tool.ruff.lint.per-file-ignores]
"docs/conf.py" = ["A001"]
"src/tests/**" = ["ARG", "PLC1901", "S101", "PLR2004"]
"examples/**" = ["S101"]