-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
146 lines (131 loc) · 3.61 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
[build-system]
requires = [
"setuptools>=63.0.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "gather-vision-gov-au-plugin"
description = "A gather-vision plugin for obtaining data from Australian governments."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Environment :: Console",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Utilities",
]
dynamic = [
"version",
"dependencies",
"optional-dependencies",
]
[project.urls]
"Homepage" = "https://github.com/anotherbyte-net/gather-vision-gov-au-plugin"
"Changelog" = "https://github.com/anotherbyte-net/gather-vision-gov-au-plugin/blob/main/CHANGELOG.md"
"Source" = "https://github.com/anotherbyte-net/gather-vision-gov-au-plugin"
"Tracker" = "https://github.com/anotherbyte-net/gather-vision-gov-au-plugin/issues"
[project.entry-points."gather_vision.plugin"]
gov_au = "gather_vision_gov_au_plugin.plugin:PluginEntry"
[tool.setuptools.packages.find]
where = [
"src",
]
# include and exclude accept strings representing glob patterns.
include = [
"gather_vision_gov_au_plugin*",
]
[tool.setuptools.dynamic]
version = { file = [
"VERSION",
] }
dependencies = { file = [
"requirements.txt",
] }
[tool.setuptools.dynamic.optional-dependencies]
dev = { file = [
"requirements-dev.txt",
] }
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra --quiet"
pythonpath = [
"src",
]
testpaths = [
"tests",
]
[tool.coverage.run]
# "Specifying the source option enables coverage.py to report on unexecuted files,
# since it can search the source tree for files that haven’t been measured at all."
source = [
'src',
]
omit = [
'*/site-packages/*',
'tests/*',
]
[tool.coverage.report]
skip_empty = true
[tool.coverage.html]
directory = "coverage-html"
[tool.isort]
profile = "black"
src_paths = [
"src",
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py38,py39,py310,py311
[testenv]
recreate = true
deps =
-r requirements.txt
-r requirements-dev.txt
allowlist_externals =
echo
commands =
echo "::group::Outdated deps"
-pip list --outdated
echo "::endgroup::"
echo "::group::Test coverage"
python -X dev -m coverage run -m pytest --doctest-modules
echo "::endgroup::"
echo "::group::Coverage report"
-python -X dev -m coverage report
echo "::endgroup::"
echo "::group::Linter - mypy"
-python -X dev -m mypy src
echo "::endgroup::"
echo "::group::Linter - black"
-python -X dev -m black --check src
echo "::endgroup::"
echo "::group::Linter - pylint"
-python -X dev -m pylint src
echo "::endgroup::"
echo "::group::Linter - pydocstyle"
-python -X dev -m pydocstyle src
echo "::endgroup::"
echo "::group::Linter - flake8"
-python -X dev -m flake8 src --count --show-source --statistics --exit-zero
echo "::endgroup::"
echo "::group::Build"
python -m build --sdist --wheel --outdir dist/ .
echo "::endgroup::"
"""
[tool.pydocstyle]
convention = 'google'
[tool.mypy]
ignore_missing_imports = true