-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
127 lines (104 loc) · 2.56 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
[tool.poetry]
name = "voronoi_generator"
version = "0.1.0"
description = "A tool for generating Voronoi diagrams."
authors = ["Danny Wood <[email protected]>"]
license = "MIT license"
readme = "README.md"
packages = [{include = "voronoi_generator"}]
[tool.poetry.dependencies]
python = "^3.10"
numpy = "^1.26.4"
scipy = "^1.13.0"
matplotlib = "^3.8.4"
pillow = "^10.3.0"
scikit-learn = "^1.4.2"
pulp = "^2.8.0"
pydantic = "^2.7.1"
pyyaml = "^6.0.1"
scikit-image = "^0.23.2"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
licensecheck = "^2024.1.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "--cov=voronoi_generator --cov-report term-missing"
testpaths = [
"tests"
]
# mypy configuration
[tool.mypy]
show_error_codes = true
exclude = ["docs", "tests", "LICENSE"]
strict = true
namespace_packages = true
# black configuration
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)/
'''
[tool.ruff]
target-version = "py310"
# Match black. Note that this also checks comment line length, but black does not format comments.
line-length = 120
show-fixes = true
[tool.ruff.lint]
ignore-init-module-imports = true
select = [
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"Q", # flake8-quotes
"ISC", # flake8-implicit-str-concat
"F", # pyflakes
"D", # pydocstyle
"E", # pycodestyle error
"W", # pycodestyle warning
"N", # pep8-naming
"I", # isort
"PL", # pylint rules from categories "Convention", "Error", and "Warning"
"PLE", # ruff currently implements only a subset of pylint's rules
"PLW", # pylint warning
"PLR", # pylint refactor
"UP", # pyupgrade
"C", # Complexity (mccabe+) & comprehensions
]
ignore = [
"UP006", # See https://github.com/bokeh/bokeh/issues/13143
"UP007", # See https://github.com/bokeh/bokeh/pull/13144
]
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.ruff.lint.pylint]
max-args = 7
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 10.
max-complexity = 10
# typos configuration
[tool.typos.files]
extend-exclude=[".gitignore", "LICENSE", ".*",]
[tool.typos.default.extend-words]
center = "center"
minimize="minimize"
seed="seed"
[tool.typos.default]
locale="en-gb"
# Bandit configuration
[tool.bandit]
exclude_dirs = []
[tool.bandit.assert_used]
skips = ['*test.py', '*/test_*.py']