-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.cfg
174 lines (169 loc) · 4.25 KB
/
setup.cfg
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[metadata]
name = amsterdam-schema-tools
version = 6.1.2
url = https://github.com/amsterdam/schema-tools
license = Mozilla Public 2.0
author = Team Data Diensten, van het Dataplatform onder de Directie Digitale Voorzieningen (Gemeente Amsterdam)
author_email = [email protected]
description = Tools to work with Amsterdam Schema.
long_description = file: README.md
long_description_content_type = text/markdown
keywords =
jsonschema
schema
json
amsterdam
validation
code-generation
classifiers =
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Programming Language :: Python
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
[options]
package_dir =
= src
packages = find:
python_requires = >= 3.9
install_requires =
sqlalchemy >= 1.4, < 2.0
geoalchemy2
psycopg2
pg-grant
click
deepdiff
jsonlines
jsonschema[format] >= 3.2.0
shapely>=1.8.0
python-string-utils
python-dateutil
requests
jinja2
mappyfile
jsonpath-rw
orjson
more-ds
factory_boy
remote-pdb
more-itertools
tests_require=
pytest
pytest-cov
pytest-sqlalchemy
requests-mock
[options.packages.find]
where = src
[options.extras_require]
tests =
types-requests
types-click
types-python-dateutil
flake8
flake8-colors # ANSI colors highlight for Flake8
flake8-raise # Find improvements for raise statements
flake8-bandit # Security checks
flake8-bugbear # Assorted opinionated checks
flake8-builtins # Check for name collision with builtins
flake8-comprehensions # Write better list/set/dict comprehensions.
flake8-docstrings # Uses pydocstyle to check docstrings
flake8-implicit-str-concat #
flake8-print # Check for Print statements in python files
flake8-rst # Allows run flake8 on code snippets in docstrings or rst files
flake8-string-format # str.format checker
flake8-logging-format # Validate logging format strings
pytest
pytest-cov
pytest-django >= 4.7.0
pytest-sqlalchemy
django =
django >= 3.2
django-gisserver >= 1.2.7
django-environ
django-db-comments
factory_boy
dev =
build # PEP5127 package builder (recommended by PYPA)
twine # Submmitting package to PYPI
python-environ
kafka =
confluent-kafka
[options.entry_points]
console_scripts =
schema = schematools.cli:main
django = schematools.contrib.django.cli:main
[tool:pytest]
testpaths =
tests
norecursedirs =
.tox
.git
dist
build
venv
.venv
filterwarnings =
once::DeprecationWarning
once::PendingDeprecationWarning
ignore:Model '.*' was already registered. Reloading models is not advised.*:RuntimeWarning
addopts = --doctest-modules
# can be enabled to emit log message immediately
log_cli = False
[flake8]
# A = builtins
# B = bugbear
# C4 = comprehensions
# D = docstrings
# E = pycodestyle errors, rst
# F = flake8 pyflakes, rst
# G = logging-format
# P = str-format
# RST = rst-docstrings
# S = bandit
# T = print
# W = pycodestyle warnings
# B9 = bugbear opinions
# ISC = implicit-str-concat
ban-relative-imports = True
max-line-length = 99
docstring-convention = google
statistics = True
select = A, B, C4, D, E, F, G, P, RST, S, T, W, B9, ISC
doctests = True
extend-ignore =
# D100 Missing docstring in public module
D100,
# Missing docstring in magic method
D105,
# E203 Black may add spaces in slice[func(v) : end] syntax
E203,
# E231 Black leaves commas after combining lines
E231,
# F403 Allow import * (for settings)
F403,
# F405 Allow import * (for settings)
F405,
# E731 Allow lambdas:
E731,
# R102 Allow raise Exception()
R102,
# Line break before binary operator; disagrees with black
W503,
per-file-ignores =
# Use of assert detected.
# Missing docstring in public class, method, function, package, nested class, __init__
tests/**: S101,D101,D102,D103,D104,D105,D106,D107
src/schematools/permissions/__init__.py: D104
exclude =
.git,
**/migrations/*,
docs,
scripts,
.cache,
.eggs,
__pycache__,
build,
dist,
.venv,
venv