-
Notifications
You must be signed in to change notification settings - Fork 22
/
pyproject.toml
105 lines (96 loc) · 1.9 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
[project]
name = "opendataeditor"
dynamic = ["version"]
requires-python = ">=3.11"
dependencies = [
# Core
"fastapi==0.103.1",
"frictionless==5.18.0",
"gitignore-parser==0.1.6",
"openai==0.28.0",
"pydantic==2.3.0",
"python-multipart==0.0.6",
"sqlalchemy==2.0.20",
"tinydb==4.8.0",
"typer==0.12.0",
"typing_extensions==4.8.0",
"uvicorn==0.23.2",
# Gsheets
# "pygsheets==2.0.6",
# Excel
"openpyxl==3.1.2",
"xlrd==2.0.1",
"xlwt==1.3.0",
# JSON
"ijson==3.2.3",
"jsonlines==4.0.0",
# Parquet
"fastparquet==2023.8.0",
# CKAN
"frictionless-ckan-mapper==1.0.9",
# Github
"pygithub==1.59.1",
# Zenodo
"pyzenodo3==1.0.2",
# PyInstaller
"pyinstaller==6.8.0"
]
[tool.setuptools]
packages=["server"]
[tool.hatch.version]
path = "package.json"
pattern = '"version": "(?P<version>.*)"'
[tool.hatch.envs.default]
python = "3.11"
dependencies = [
"ruff",
"httpx",
"pytest",
"neovim",
"fsspec",
"pyright==1.1.317",
"ipython",
"watchfiles",
"pytest-vcr",
"pytest-mock",
"pytest-only",
"pytest-dotenv",
"pytest-timeout",
"pytest-lazy-fixtures",
]
[tool.hatch.envs.default.scripts]
build = [
"python -m build",
]
format = [
"ruff format server",
]
lint = [
"ruff check server",
]
start = [
"watchfiles 'python -m server {env:HOME}/.opendataeditor/tmp' server",
]
test = [
"hatch run lint",
"hatch run type",
"hatch run pytest",
]
type = [
"pyright server",
]
[tool.ruff]
line-length = 90
[tool.ruff.lint]
ignore = ["E501", "E731"]
select = ["I"]
[tool.ruff.lint.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"]