-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
130 lines (111 loc) · 2.69 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
[project]
name = "cityseer-qgis"
version = "0.1.0"
description = "QGIS plugin for cityseer-api"
authors = [
{name = "Gareth Simons", email = "[email protected]"},
]
dependencies = [
"pb-tool>=3.1.0",
"PyQt5>=5.15.7",
"cityseer==3.7.0",
"shapely>=2.0.1",
]
requires-python = ">=3.9,<3.11"
readme = "README.md"
license = {text = "AGPL-3.0"}
[project.optional-dependencies]
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[project.urls]
homepage = "https://github.com/benchmark-urbanism/cityseer-qgis"
documentation = "https://github.com/benchmark-urbanism/cityseer-qgis"
repository = "https://github.com/benchmark-urbanism/cityseer-qgis"
[tool]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"pytest>=7.2.0",
"pylint>=2.15.5",
"black>=22.10.0",
"isort>=5.10.1",
"jupyter-black>=0.3.1",
"coverage>=6.5.0",
"pyright>=1.1.278",
"qgis-stubs>=0.2.0.post1",
"pb-tool>=3.1.0",
"pyqt5-stubs>=5.15.6.0",
]
[tool.pdm.scripts]
docstyle = "pydocstyle --config=pyproject.toml"
formatting = { shell = "black --config=pyproject.toml ./ && isort --settings-file=pyproject.toml ./" }
typechecks = "pyright ."
linting = "pylint --rcfile=pyproject.toml ./src"
tests = "pytest ./tests"
coverage_run = "coverage run pytest"
coverage_report = { shell = "coverage report --show-missing --skip-empty && coverage lcov" }
[tool.black]
line-length = 120
color = true
[tool.pylint.master]
disable = [
"logging-fstring-interpolation",
]
jobs = 0
output-format = "colorized"
[tool.pylint.basic]
good-names = []
[tool.pylint.design]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.logging]
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
[tool.pyright]
include = ["cityseer"]
exclude = [
"**/node_modules",
"**/__pycache__",
"**/__pypackages__",
"build",
"demos",
"docs",
"**/temp/",
"tests/",
"dist",
".venv",
]
typeCheckingMode = "strict"
stubPath = "src/stubs"
useLibraryCodeForTypes = true
[tool.pydocstyle]
# http://www.pydocstyle.org/en/stable/error_codes.html
ignore = [
# "D100", # Missing docstring in public module
]
match = "(?!test_).*\\.py"
match_dir = "^(?!(__pypackages__|.venv|build|demos|docs|tests)).*"
[tool.isort]
profile = "black"
skip_gitignore = true
line_length = 120
atomic = true
filter_files = true
src_paths = ["src", "tests"]
[tool.pytest.ini_options]
console_output_style = "count"
log_cli = true
log_cli_level = "INFO"
testpaths = ["tests"]
# addopts = "--ignore=tests/test_performance.py"
[tool.coverage.run]
source = ["cityseer"]
branch = true
omit = [
"**/__init__.py",
]
[tool.coverage.report]
include = ["cityseer/**"]
omit = [
"**/__init__.py",
]