-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (81 loc) · 2.41 KB
/
Copy pathpyproject.toml
File metadata and controls
92 lines (81 loc) · 2.41 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "apick"
dynamic = ["version"]
description = "fzf-powered OpenAPI API client"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
dependencies = [
"httpx",
"pyyaml",
]
keywords = ["openapi", "api", "fzf", "cli"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing",
]
[project.scripts]
apick = "apick:main"
[project.urls]
Homepage = "https://github.com/ralph089/apick"
Repository = "https://github.com/ralph089/apick"
[tool.hatch.version]
path = "apick.py"
[tool.hatch.build]
include = ["apick.py"]
[dependency-groups]
dev = ["pytest"]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
"S", # flake8-bandit (security)
"A", # flake8-builtins (shadowing builtins)
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez (naive datetime)
"T10", # flake8-debugger (leftover breakpoints)
"T20", # flake8-print (print statements)
"PT", # flake8-pytest-style
"RSE", # flake8-raise
"RET", # flake8-return
"PIE", # flake8-pie (misc lints)
"PERF", # perflint (performance anti-patterns)
"FURB", # refurb (modernization)
"LOG", # flake8-logging
"G", # flake8-logging-format
"FLY", # flynt (f-string conversion)
"TCH", # flake8-type-checking (move imports behind TYPE_CHECKING)
]
ignore = [
"T201", # allow print() — CLI tool
"S603", # allow subprocess calls without shell=True check — needed for fzf/jq
"S607", # allow partial executable paths — fzf/jq/editor are expected on PATH
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # allow assert in tests
"S108", # allow /tmp paths in tests
]
[tool.semantic_release]
version_variables = ["apick.py:__version__"]
[tool.ty.environment]
python-version = "3.11"