-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
96 lines (87 loc) · 2.24 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "numpy_turtle"
version = "0.3"
description = "Turtle graphics with NumPy"
authors = [{name = "Joren Hammudoglu", email = "[email protected]"}]
license = "MIT"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
requires-python = ">=3.11"
dependencies = [
"numpy >=1.25",
"scikit-image >=0.20",
]
[dependency-groups]
dev = [
"basedpyright >=1.23.2",
"pytest >=8.3.4",
"ruff >=0.9.0",
]
[tool.basedpyright]
include = ["numpy_turtle", "examples", "tests"]
ignore = [".venv"]
venv = ".venv"
venvPath = "."
stubPath = "."
pythonVersion = "3.11"
pythonPlatform = "All"
reportExplicitAny = false
reportUnusedCallResult = false
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config"]
filterwarnings = ["error"]
log_cli_level = "INFO"
minversion = "8.0"
testpaths = ["tests"]
xfail_strict = true
[tool.ruff]
force-exclude = true
extend-exclude = ["docs/gallery"] # TODO
indent-width = 4
line-length = 88
show-fixes = true
src = ["numpy_turtle", "examples", "tests"]
[tool.ruff.format]
docstring-code-format = true
indent-style = "space"
line-ending = "lf"
preview = true
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"DOC", # pydoclint
"FBT", # flake8-boolean-trap
"CPY", # flake8-copyright
"EM", # flake8-errmsg
"TD", # flake8-todos
"FIX", # flake8-fixme
# pydocstyle
"D104", # undocumented-public-package
"D100", # undocumented-public-module
"D200", # fits-on-one-line
"D205", # blank-line-after-summary
"D212", # multi-line-summary-first-line
# flake8-bandit
"S101", # assert
# pylint
"PLC0415", # import-outside-top-level
"PLR2004", # magic-value-comparison
# tryceratops
"TRY003", # raise-vanilla-args
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"