-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
154 lines (136 loc) · 4.4 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "bundling_score" # you'll be able to pip install this name
version = "0.1.4"
license = { file = "LICENSE" }
# Who is an author or a maintainer ? There's no official definition.
authors = [
{ name = "Ghislain de Labbey", email = "ghislain.de-labbey@college-de-france.fr" },
]
# maintainers = [{ name = "Ghislain de Labbey", email = "ghislain.de-labbey@college-de-france.fr" }]
description = "Compute bundling score"
readme = "README.md" # The long description is in this file
requires-python = ">=3.8" # best if only minimal version is specified
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"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",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]# list of valid classifiers: https://pypi.org/classifiers/
# At least put:
# - which version(s) of Python your package works on,
# - which operating systems your package will work on.
# - which license your package is available under,
# The project packages requirements
dependencies = [
"numpy",
"matplotlib",
"scikit-image>=0.19.3",
"scipy",
"read_roi",
"pandas",
"scikit-learn"]
# Optional installations
[project.optional-dependencies]
test = ["pytest >=6", "pytest-cov >=3"] # For the test environment
dev = [
"nox", # to run scripts and common tasks
"bundling_score[test]",
] # For actively developping the package
# For doc building only
docs = [
"Sphinx>=4.0",
"myst_parser>=0.13",
"sphinx-book-theme>=0.1.0",
"sphinx_copybutton",
"sphinx_autoapi",
]
# Optionally, if you have "entry points":
# [project.scripts]
# cli-script-name = "mypkg.mymodule:some_func"
# cli-script-name2 = "mypkg.mymodule:some_func2"
# [project.gui-scripts]
# cli-script-name = "mypkg.mymodule:some_func3"
# cli-script-name2 = "mypkg.mymodule:some_func4"
[project.urls]
Documentation = "https://bundling_score.readthedocs.io/"
Homepage = "https://gitlab.college-de-france.fr/gdelabbey/bundling_score"
"Bug Tracker" = "https://gitlab.college-de-france.fr/gdelabbey/bundling_score/issues"
Discussions = "https://gitlab.college-de-france.fr/gdelabbey/bundling_score/discussions"
Changelog = "https://gitlab.college-de-france.fr/gdelabbey/bundling_score/releases"
[tool.flake8]
extend-ignore = [
"E501", # Line too long
]
extend-select = [ # Extensions
]
exclude = [ # ignore these files
"tests/*",
"noxfile.py",
".venv/*",
"_skbuild/*",
"docs/*",
".nox/*",
]
max-complexity = 10
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
^/.nox/* # one per line
)
'''
[tool.isort]
profile = "black"
[tool.mypy]
files = "src"
python_version = "3.8"
warn_unused_configs = true
strict = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
[tool.check-manifest]
ignore = [
".github/**",
"docs/**",
"_skbuild/**",
".pre-commit-config.yaml",
".readthedocs.yml",
"src/*/*.so",
"noxfile.py",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
log_cli_level = "INFO"
testpaths = ["tests"]
[tool.coverage.run]
omit = []
[tool.codespell]
skip = '*.po,*.ts,cmake/*'
count = ''
quiet-level = 3
[tool.hatch.build.target.sdist.force-include]
"src/main.py" = "src/bunling_score/main.py"
[project.scripts]
bundling_score = "bundling_score.main:main"