aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: 90623323b73b3ea2951baf586e0dc095b9d9cbc4 (plain) (blame)
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
[project]
name = "config_file"
version = "0.13.1"
description = "Modify configuration files of various formats with the same simple API."
authors = [{ name = "Eugene Triguba", email = "hello@eugenetriguba.com" }]
requires-python = ">=3.9"
readme = "README.md"
keywords = [
    "configuration",
    "ini",
    "json",
    "toml",
    "yaml",
]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Topic :: Software Development :: Libraries",
    "Topic :: Software Development :: Libraries :: Python Modules",
]

[project.optional-dependencies]
toml = ["tomlkit"]
yaml = ["ruamel.yaml>=0.17.16,<0.18"]

[project.urls]
Repository = "https://github.com/eugenetriguba/config_file"
Documentation = "https://config-file.readthedocs.io/"

[dependency-groups]
dev = [
    "bump2version>=1.0.1",
    "taskipy>=1.14.1",
]
lint = [
    "autoflake>=2.3.1",
    "black>=25.1.0",
    "isort>=6.0.1",
    "mypy>=1.17.1",
    "pre-commit>=2.21.0",
    "ruff>=0.12.9",
]
test = [
    "pytest>=8.4.1",
    "pytest-cov>=6.2.1",
    "pytest-sugar>=1.0.0",
]

[tool.taskipy.settings]
use_vars = true

[tool.taskipy.variables]
src_dir = "config_file"
tests_dir = "tests"

[tool.taskipy.tasks]
test = "pytest --cov={src_dir} --cov-report term-missing"
lint = """
task lint_types && \
task lint_analyze && \
task lint_imports && \
task lint_format"""
lint_types = "mypy ."
lint_analyze = "ruff check ."
lint_imports = "autoflake . && isort ."
lint_format = "black ."
lint_precommit = "pre-commit run --all"
pytest = "pytest tests/"

[tool.hatch.build.targets.sdist]
include = [
    "config_file",
    "tests",
]

[tool.hatch.build.targets.wheel]
include = ["config_file"]

[tool.black]
target_version = ['py313']
include = '\.pyi?$'

[tool.isort]
profile = "black"

[tool.autoflake]
in_place = true
remove_all_unused_imports = true
remove_unused_variables = true

[tool.uv.build-backend]
module-root = ""

[build-system]
requires = ["uv_build>=0.8.11,<0.9.0"]
build-backend = "uv_build"