-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
125 lines (112 loc) · 2.31 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "ckool"
version = "0.1.0"
description = "CKAN Tool, in short ckool! A tool for working with CKAN instances."
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
keywords = ["ckan", "data management", "open data"]
authors = [
{email = "christian.foerster@eawag.ch"},
{name = "Christian Foerster"}
]
maintainers = [
{name = "Christian Foerster", email = "christian.foerster@eawag.ch"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python"
]
dependencies = [
"requests",
"bs4",
"lxml", # required by bs4 to parse xml response
"ckanapi",
"base32_crockford",
"requests_toolbelt",
"tqdm",
"typer",
"paramiko",
"scp",
"typer[all]"
]
[project.scripts]
ckool = "ckool.__main__:app"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-env",
"pytest-cov[all]",
"pytest-unordered",
"pyinstrument",
"tox<4",
"tox-pyenv",
#"webtest",
"isort",
"black",
"ruff",
"sphinx-book-theme" # https://sphinx-book-theme.readthedocs.io/en/latest/tutorials/get-started.html
]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
]
env =[
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py311,py312
isolated_build = True
tox_pyenv_fallback=False
[testenv]
deps =
pip
format: black
pytest
commands =
pip install .[dev]
pytest {posargs}
"""
[tool.ruff]
fix = true
fix-only = true
show-fixes = true
src = ["src", "tests"]
#format = "json"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".egg-info",
".env",
".benchmarks",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".python-version",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 88
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Always generate Python 3.7-compatible code.
target-version = "py310"