-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (107 loc) · 2.82 KB
/
pyproject.toml
File metadata and controls
126 lines (107 loc) · 2.82 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
[project]
name = "url2markdown-cli"
authors = [
{name = "Jeff Triplett"}
]
version = "2024.10.2"
description = "Fetch a url and translate it to markdown in one command."
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"httpx",
"rich",
"typer",
]
keywords = ["url2markdown", "url2markdown-cli"]
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
[project.urls]
Homepage = "https://github.com/jefftriplett/url2markdown-cli"
Issues = "https://github.com/jefftriplett/url2markdown-cli/issues"
CI = "https://github.com/jefftriplett/url2markdown-cli/actions"
Changelog = "https://github.com/jefftriplett/url2markdown-cli/releases"
[project.entry-points.console_scripts]
files-to-claude-xml = "url2markdown_cli:cli"
[tool.bumpver]
commit = true
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
current_version = "2024.10.2"
push = false # disabled for GitHub Actions
tag = true
version_pattern = "YYYY.MM.INC1"
[tool.bumpver.file_patterns]
"url2markdown_cli/__init__.py" = [
'__version__ = "{version}"',
]
"pyproject.toml" = [
'version = "{version}"'
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".github",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"media",
"node_modules",
"static",
"venv",
]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.11
target-version = "py311"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
# magic-trailing-comma = "respect"
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint]
ignore = ["E501", "E741"] # temporary
per-file-ignores = {}
select = [
# "B", # flake8-bugbear
"E", # Pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10