-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
105 lines (93 loc) · 2.43 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
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
[project]
name = "cloudnet-submit"
authors = [
{ name="Niko Leskinen", email="[email protected]" },
]
description = "Cloudnet data submission tool"
dynamic = ["version"]
requires-python = ">=3.8"
readme = "README.md"
license = { file="LICENSE" }
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
]
dependencies = [
"requests >= 2.28.1",
"toml >= 0.10.2",
]
[project.urls]
Homepage = "https://github.com/actris-cloudnet/cloudnet-submit"
Repository = "https://github.com/actris-cloudnet/cloudnet-submit"
Changelog = "https://github.com/actris-cloudnet/cloudnet-submit/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/actris-cloudnet/cloudnet-submit/issues"
[project.optional-dependencies]
dev = [
"mypy",
"pytest",
"pytest-cov",
"black",
"flake8",
"pylint",
"autoflake",
"isort",
"pre-commit",
"types-requests",
"types-toml",
]
# Not supported on Python <= 3.10
release = [
"release-version"
]
[project.scripts]
cloudnet-submit = "cloudnet_submit.main:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = {attr = "cloudnet_submit.version.__version__"}
[tool.pytest.ini_options]
addopts = "--cov=cloudnet_submit --cov-report html"
testpaths = [
"tests",
]
[tool.mypy]
check_untyped_defs = true
disallow_untyped_defs = false
disallow_any_unimported = true
no_implicit_optional = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true
[tool.black]
line-length = 88
target-version = ['py38']
preview = true
[tool.isort]
profile= "black"
line_length = 88
[tool.pylint]
ignore-patterns = "test_.*\\.py,release"
ignore-paths = "^tests/.*"
good-names = ["i", "j", "k", "f",]
max-line-length = 88
disable = [
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"too-few-public-methods",
"too-many-arguments"
]
[tool.release-version]
filename = "src/cloudnet_submit/version.py"
pattern = "__version__ = \"(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)\""
changelog = "CHANGELOG.md"