Skip to content

Commit 333bec8

Browse files
committed
switch to pyprojec.toml
1 parent 3ee268e commit 333bec8

3 files changed

Lines changed: 35 additions & 55 deletions

File tree

pyproject.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "jschon-sort"
7+
version = "0.2.0"
8+
classifiers = ["Programming Language :: Python :: 3"]
9+
description = "Sorts a JSON or YAML document to match a JSON Schema's order of properties"
10+
readme = {file = "README.md", content-type = "text/markdown"}
11+
requires-python = ">=3.8"
12+
dependencies = ["jschon>=0.9", "ruyaml"]
13+
14+
[project.scripts]
15+
jschon-sort = "jschon_tools.cli:sort_main"
16+
jschon-remove-additional-props = "jschon_tools.cli:remove_additional_props_main"
17+
18+
[tool.setuptools.package-data]
19+
"jschon_sort" = ["py.typed"]
20+
121
[tool.black]
222
line-length = 120
323
skip-string-normalization = true
@@ -14,3 +34,18 @@ show_error_codes = true
1434
implicit_reexport = false
1535
warn_unreachable = true
1636
disallow_incomplete_defs = true
37+
disallow_any_generics = true
38+
disallow_untyped_defs = true
39+
enable_error_code = "truthy-function"
40+
warn_unused_ignores = true
41+
42+
[tool.pytest.ini_options]
43+
addopts = "--cov ."
44+
45+
[tool.coverage.run]
46+
branch = true
47+
48+
[tool.coverage.report]
49+
fail_under = 100
50+
show_missing = true
51+
omit = "setup.py"

setup.cfg

Lines changed: 0 additions & 52 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)