Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (114 loc) · 2.9 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (114 loc) · 2.9 KB
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
[project]
name = "rss-parser"
version = "4.4.1"
description = "Typed pythonic RSS/Atom parser"
authors = [{ name = "dhvcc", email = "1337kwiz@gmail.com" }]
license = { text = "GPL-3.0" }
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"python",
"python3",
"cli",
"rss",
"parser",
"gplv3",
"typed",
"typed-python",
]
classifiers = [
"Natural Language :: English",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Development Status :: 5 - Production/Stable",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: XML",
"Typing :: Typed",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"pydantic>=2.7,<3.0",
"xmltodict>=0.13.0",
"typing-extensions>=4.6",
]
[project.scripts]
rss-parser = "rss_parser.cli:main"
[project.urls]
Homepage = "https://dhvcc.github.io/rss-parser"
Source = "https://github.com/dhvcc/rss-parser"
"Bug Tracker" = "https://github.com/dhvcc/rss-parser/issues"
[dependency-groups]
dev = [
"ipython",
"black",
"pre-commit>=2.12.0",
"ruff",
"rich",
"pytest>=7.4.0",
"mypy",
"types-xmltodict>=0.14.0.20241009",
"hypothesis>=6.141.1",
"pytest-cov>=7.1.0",
]
docs = [
"mkdocs-material>=9.5",
]
[tool.uv]
default-groups = ["dev"]
[tool.hatch.build.targets.wheel]
packages = ["rss_parser"]
[tool.pytest.ini_options]
addopts = "--color=yes"
testpaths = ["tests"]
log_cli = true
log_level = "INFO"
[tool.coverage.run]
# pytest never imports __main__.py, so it would always be reported at 0%
omit = ["rss_parser/__main__.py"]
[tool.coverage.report]
fail_under = 98
show_missing = true
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.ruff]
line-length = 120
target-version = "py310"
respect-gitignore = true
[tool.ruff.lint]
select = [
"PL", # pylint
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"S", # flake8-bandit
"A", # flake8-builtins
"C40", # flake8-comprehensions
"T10", # flake8-debugger
"EXE", # flake8-executable
"T20", # flake8-print
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"RUF", # ruff
]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = [
"S101", # Use of assert detected
"ARG001", # Unused function argument
"PLR2004", # Magic values in assertions are fine
]
"scripts/**.py" = [
"E402", # sys.path setup before imports
]
"**/__init__.py" = ["F401"]
"rss_parser/models/atom/**" = ["A003"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"