-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
72 lines (60 loc) · 1.72 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
[tool.poetry]
authors = ["Jon Connell <[email protected]>"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
description = "A JSON formatter that produces compact but human-readable"
documentation = "https://github.com/masaccio/compact-json/blob/main/README.md"
license = "MIT"
name = "compact-json"
packages = [{include = "compact_json", from = "src"}]
readme = "README.md"
repository = "https://github.com/masaccio/compact-json"
version = "1.8.1"
[tool.poetry.dependencies]
python = "^3.9"
wcwidth = ">0.2.8"
setuptools = ">=69.0.3"
importlib-resources = ">=6.1"
[tool.poetry.group.dev.dependencies]
black = {version = "*", allow-prereleases = true}
pytest-check = "*"
pytest-console-scripts = "*"
pytest-cov = "*"
ruff = "*"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.poetry.scripts]
compact-json = "compact_json._compact_json:main"
[tool.coverage.run]
branch = true
[tool.coverage.html]
directory = "coverage_html_report"
[tool.pytest.ini_options]
addopts = "--cov=src/compact_json --cov-report=term-missing"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = py39, py310, py311, py312
[testenv]
allowlist_externals = poetry
commands_pre = poetry install --no-root --sync
commands = poetry run -vvv pytest --import-mode importlib
"""
# linter settings
[tool.isort]
profile = "black"
[tool.ruff]
fix = true
ignore = ["T201", "FBT001", "FBT003", "PTH123"]
line-length = 100
select = ["ALL"]
target-version = "py39"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.per-file-ignores]
"tests/**" = ["PTH123", "PLR2004", "S101", "D100", "D103", "ANN201", "ANN001"]