forked from buzzm/ipsum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
125 lines (107 loc) · 3.31 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
[project]
name = "mongo_ipsum"
version = "0.1-dev"
authors = [
{name = "buzzm", email = "[email protected]"},
{name = "onemoretime", email = "[email protected]"}
]
description = "Generate one or more JSON objects containing random data given a input json-schema.org compatible schema specification. Forked from https://github.com/buzzm/ipsum"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
requires-python = ">=3.7"
dependencies = [
"pymongo == 4.7.3",
]
[project.urls]
Documentation = "https://github.com/onemoretime/mongo_ipsum_py3/tree/main#readme"
Source = "https://github.com/onemoretime/mongo_ipsum_py3"
Tracker = "https://github.com/onemoretime/mongo_ipsum_py3/issues"
[project.optional-dependencies]
test = [
"bandit[toml]==1.7.8",
"pre-commit==3.7.1",
"pylint==3.2.2",
"pylint_junit",
"pytest-cov==5.0.0",
"pytest-mock<3.14.1",
"pytest-runner",
"pytest==8.2.2",
"pytest-github-actions-annotate-failures"
]
[project.scripts]
mongo_ipsum = "mongo_ipsum.__main__:main"
[build-system]
requires = ["setuptools ~= 68.2.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
# scanning for namespace packages is true by default in pyproject.toml, so
# you do NOT need to include the following line.
namespaces = true
where = ["src"]
[tool.setuptools.package-data]
"mongo_ipsum.datas" = ["*.json"]
"mongo_ipsum.models" = ["*.jsch"]
[tool.bandit]
exclude_dirs = ["build","dist","tests","scripts"]
number = 4
recursive = true
targets = "src"
[tool.mypy]
python_version = "3.9"
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
# warn_unused_ignores = true
warn_unreachable = true
show_error_codes = true
implicit_reexport = true
[tool.coverage.run]
branch = true
[tool.coverage.report]
fail_under = 100
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py
[testenv]
commands =
pytest -m "tests" {posargs}
"""
[tool.ruff]
# select = ["F", "E", "I", "N", "D", "S", "A", "TD", "PL"]
select = ["F", "E", "I", "N", "D", "S", "A"]
ignore = ["E501","PLR0912","D103","D401","PLR0915","D205", "D212"]
exclude = ["docs/source/conf.py",".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".mypy_cache", ".nox", ".pants.d", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", "__pypackages__", "_build", "buck-out", "build", "dist", "node_modules", "venv"]
# per-file-ignores = {}
line-length = 100
output-format = "github"
[tool.pylint]
extension-pkg-whitelist= []
ignore="CVS"
ignore-patterns="test.*?py"
init-hook='import sys; sys.setrecursionlimit(8 * sys.getrecursionlimit())'
jobs=0
limit-inference-results=100
persistent="yes"
suggestion-mode="yes"
unsafe-load-any-extension="no"
[tool.pylint.'REPORTS']
evaluation="10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)"
output-format="text"
reports="no"
score="yes"
[tool.pylint.'SIMILARITIES']
ignore-comments="yes"
ignore-docstrings="yes"
ignore-imports="yes"
min-similarity-lines=7