-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
115 lines (101 loc) · 2.81 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
[project]
name = "rssfixer"
authors = [
{ name="Peter Reuterås", email="peter@reuteras.net" },
]
description = "Generate RSS feed for Wordpress blog without it."
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Intended Audience :: Information Technology",
"Development Status :: 4 - Beta",
"Environment :: Console",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[project.urls]
"Homepage" = "https://github.com/reuteras/rssfixer"
"Bug Tracker" = "https://github.com/reuteras/rssfixer/issues"
[tool.poetry.scripts]
rssfixer = "rssfixer:main"
[tool.ruff]
lint.select = [
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"COM", # flake8-commas
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PL", # Pylint
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"UP", # pyupgrade
"W", # Warning
]
lint.ignore = [
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"S101", # Use of `assert` detected
"S301", # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
lint.fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
lint.unfixable = []
# Exclude a variety of commonly ignored directories.
lint.exclude = [
".git",
".github",
".pytest_cache",
".venv",
"__pypackages__",
"build",
"dist",
".venv",
]
# Same as Black.
line-length = 120
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.poetry]
name = "rssfixer"
version = "0.2.7"
description = "Generate RSS for blogs without a feed."
authors = ["Peter Reuterås <peter@reuteras.net>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.8"
beautifulsoup4 = "4.12.3"
feedgen = "0.9.0"
requests = "2.32.3"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
bandit = "*"
build = "*"
twine = "*"
black = "*"
ruff = "*"
pytest = "*"
requests-mock = "*"
coverage = "*"
pre-commit = "*"
gitpython = ">=3.1.35"
[tool.poetry.group.github]
optional = true
[tool.poetry.group.github.dependencies]
coverage-badge = "*"
markdown-code-runner = "*"
[tool.black]
line-length = 120
target-version = ['py38']
include = '\.pyi?$'