forked from okfn/opendataeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (90 loc) · 1.84 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
[project]
name = "opendataeditor"
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
"fastapi==0.103.1",
"fastparquet==2023.8.0",
"frictionless-ckan-mapper==1.0.9",
"frictionless==5.16.0",
"gitignore-parser==0.1.6",
"ijson==3.2.3",
"jinja2==3.1.2",
"jsonlines==4.0.0",
"marko==2.0.0",
"openai==0.28.0",
"openpyxl==3.1.2",
"pandas==2.1.1",
"pydantic==2.3.0",
"pygithub==1.59.1",
"pyquery==2.0.0",
"python-multipart==0.0.6",
"pyzenodo3==1.0.2",
"sqlalchemy==2.0.20",
"tinydb==4.8.0",
"typer==0.9.0",
"typing_extensions==4.8.0",
"uvicorn==0.23.2",
"xlrd==2.0.1",
"xlwt==1.3.0",
]
[tool.setuptools]
packages=["server"]
[tool.hatch.version]
path = "package.json"
pattern = '"version": "(?P<version>.*)"'
[tool.hatch.envs.default]
dependencies = [
"ruff",
"httpx",
"pytest",
"neovim",
"fsspec",
"pyright==1.1.317",
"ipython",
"watchfiles",
"pytest-vcr",
"pytest-mock",
"pytest-only",
"pytest-dotenv",
"pytest-timeout",
"pytest-lazy-fixture",
]
[tool.hatch.envs.default.scripts]
build = [
"python -m build",
]
check = [
"pyright server",
]
format = [
"ruff server --fix",
"ruff format server",
]
lint = [
"ruff server",
"ruff format server --check",
]
start = [
"watchfiles 'python -m server {args:tmp/project}' server",
]
test = [
"hatch run lint",
"hatch run check",
"hatch run pytest",
]
[tool.ruff]
line-length = 90
[tool.ruff.lint]
ignore = ["E501", "E731"]
select = ["I"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.pytest.ini_options]
testpaths = ["server"]
env_files = [".env"]
markers = ["ci: integrational tests (select with '--ci')"]
[tool.pyright]
strict = ["server"]
include = ["server"]
ignore = ["**/__init__.py", "**/__spec__/**/*", "**/conftest.py"]