-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (73 loc) · 2.07 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
[project]
name = "tellus-traveler"
version = "0.3.0"
description = "Client for Tellus Traveler API"
authors = [
{ name = "Takahiro Miyoshi", email = "[email protected]" },
]
dependencies = ["requests>=2.31.0"]
readme = "README.md"
requires-python = ">= 3.10"
license = "MIT"
[project.urls]
Documentation = "https://tellus-traveler.readthedocs.io"
Repository = "https://github.com/sankichi92/tellus-traveler-python.git"
Changelog = "https://github.com/sankichi92/tellus-traveler-python/blob/main/CHANGELOG.md"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.1.4",
"pyright>=1.1.325",
"types-requests>=2.31.0.2",
"pytest>=7.4.1",
"responses>=0.23.3",
"mkdocs>=1.5.2",
"mkdocstrings[python]>=0.23.0",
"mkdocs-material>=9.2.8",
"ipykernel>=6.25.2",
"mkdocs-jupyter>=0.24.2",
"python-dotenv>=1.0.0",
"geopandas>=0.13.2",
"matplotlib>=3.7.2",
"folium>=0.14.0",
"mapclassify>=2.6.0",
"rioxarray>=0.15.0",
]
[tool.rye.scripts]
test = "pytest"
lint = { chain = ["lint:ruff:format", "lint:ruff:check", "lint:pyright"] }
"lint:ruff:format" = "ruff format . --check"
"lint:ruff:check" = "ruff check ."
"lint:pyright" = "pyright"
fix = { chain = ["fix:ruff:format", "fix:ruff:check"] }
"fix:ruff:format" = "ruff format ."
"fix:ruff:check" = "ruff check . --fix"
doc = "mkdocs serve"
"doc:build" = "mkdocs build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
extend-include = ["*.ipynb"]
extend-select = [
"I", # isort
"D", # pydocstyle
"B", # flake8-bugbear
"PT", # flake8-pytest-style
]
ignore = [
"D417", # https://beta.ruff.rs/docs/settings/#pydocstyle
]
[tool.ruff.extend-per-file-ignores]
"*.ipynb" = [
"D100", # Missing docstring in public module
"E402", # Module level import not at top of file
"B018", # Found useless expression. Either assign it to a variable or remove it.
]
"tests/*" = ["D"] # ignore pydocstyle in tests
[tool.ruff.pydocstyle]
convention = "google"
[tool.pyright]
strict = ["src"]