-
Notifications
You must be signed in to change notification settings - Fork 99
/
pyproject.toml
152 lines (133 loc) · 3.09 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.1"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poetry]
name = "py360convert"
version = "0.0.0" # Do not change, let poetry-dynamic-versioning handle it.
homepage = "https://github.com/sunset1995/py360convert"
repository = "https://github.com/sunset1995/py360convert"
license = "MIT"
description='Convertion between cubemap and equirectangular and also to perspective planar.'
authors = ["Cheng Sun", "Brian Pugh"]
readme = "README.md"
packages = [{include = "py360convert"}]
[tool.poetry.build]
generate-setup-file = false
[tool.poetry.scripts]
convert360 = "py360convert.__main__:main"
[tool.poetry.dependencies]
# Be as loose as possible if writing a library.
python = "^3.9"
numpy = [
{version = ">=1.20.0", python = "<3.13"},
{version = ">=2.1.0", python = ">=3.13"},
]
scipy = [
{version = ">=1.2.0", python = "<3.13"},
{version = ">=1.14.0", python = ">=3.13"},
]
pillow = ">=6.0.0"
[tool.poetry.group.dev.dependencies]
pre_commit = ">=2.16.0"
pytest = ">=7.1.2"
pytest-mock = ">=3.7.0"
[tool.pyright]
venvPath = "."
venv = ".venv"
extraPaths = ["tests/"]
[tool.ruff]
target-version = 'py39'
exclude = [
"migrations",
"__pycache__",
"manage.py",
"settings.py",
"env",
".env",
"venv",
".venv",
]
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # Error
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"S", # bandit
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # Warning
"YTT", # flake8-2020
]
ignore = [
"B905", # zip strict=True; remove once python <3.10 support is dropped.
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D401",
"E402",
"E501",
"F401",
"N806",
"SIM108", # Use ternary operator
"PGH003", # Use specific rule codes when ignoring type issues
"TRY003", # Avoid specifying messages outside exception class; overly strict, especially for ValueError
]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
"chr",
"typer.Argument",
"typer.Option",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"S101", # use of "assert"
"S102", # use of "exec"
"S106", # possible hardcoded password.
"PGH001", # use of "eval"
]
[tool.ruff.lint.pep8-naming]
staticmethod-decorators = [
"pydantic.validator",
"pydantic.root_validator",
]
[tool.codespell]
skip = 'poetry.lock,'
[tool.creosote]
venvs=[".venv"]
paths=["py360convert"]
deps-file="pyproject.toml"
sections=["tool.poetry.dependencies"]
exclude-deps =[
"typing-extensions",
]