-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
132 lines (120 loc) · 3.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[build-system]
requires = ["setuptools>=65", "wheel"]
[project]
name = "usr-local-pull"
version = "0.2.0"
description = "Installs popular cmdline utils into /usr/local directly from GitHub released artifacts."
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]
keywords = ["commandline cli packaging"]
authors = [{ name = "Tomislav Adamic", email = "[email protected]" }]
dependencies = ["packaging >= 24.1", "click == 8.1.7", "ar >= 1.0.0"]
[project.urls]
Source = "https://github.com/tadams42/usr-local-pull"
[project.optional-dependencies]
dev = ["ipython", "black", "ruff", "check-manifest", "rich"]
tests = ["pytest", "pytest-spec"]
[project.scripts]
usr-local-pull = "usr_local_pull.cli:cli"
[tool.setuptools]
zip-safe = false
platforms = ["any"]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
addopts = [
"-rxEfsw",
"--strict-markers",
"--tb=short",
"--ignore=tests/data/",
"--show-capture=no",
# Folllowing plugins are normally not used, so we disable them to speed up pytest
# startup time. They can be enabled temporarily when needed.
"-pno:anyio",
"-pno:mock",
"-pno:profiling",
"-pno:random_order",
# "--random-order",
# "--random-order-bucket=class",
]
python_classes = ["Describe*", "When*", "describe_*", "when_*"]
python_functions = ["it_*", "test_*", "then_*", "when_*"]
python_files = ["test_*", "*_spec.py", "*_test.py"]
spec_header_format = "{test_case}"
# filterwarnings = ["ignore::DeprecationWarning"]
[tool.ruff]
exclude = [".git", ".venv", "build", "dist"]
line-length = 88 # Same as Black.
target-version = "py313"
cache-dir = "~/.cache/ruff"
src = ["src"]
[tool.ruff.lint.isort]
known-local-folder = ["src"]
[tool.ruff.lint]
ignore = [
"E501", # line-too-long (E501)
"TRY003", # Avoid specifying long messages outside the exception class
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
select = [
"E",
"F",
"I", # isort (I)
"C90", # mccabe (C90)
"UP", # pyupgrade (UP)
"S", # flake8-bandit (S)
"FBT", # flake8-boolean-trap (FBT)
"B", # flake8-bugbear (B)
"C4", # flake8-comprehensions (C4)
"DTZ", # flake8-datetimez (DTZ)
"FA", # flake8-future-annotations (FA)
"G", # flake8-logging-format (G)
"PIE", # flake8-pie (PIE)
"PT", # flake8-pytest-style (PT)
"RET", # flake8-return (RET)
"SIM", # flake8-simplify (SIM)
"TCH", # flake8-type-checking (TCH)
"PTH", # flake8-use-pathlib (PTH)
"PL", # Pylint (PL)
"TRY", # tryceratops (TRY)
"RUF", # Ruff-specific rules (RUF)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused-import (F401)
]
"tests/**/__init__.py" = [
"F403", # undefined-local-with-import-star (F403)
]
"tests/conftest.py" = [
"F403", # undefined-local-with-import-star (F403)
]
"tests/*" = [
"S101", # Use of `assert` detected
"S311", # Standard pseudo-random generators are not suitable for cryptographic ...
"S108", # Probable insecure usage of temporary file
"PLR0913", # Too many arguments to function call (6 > 5)
"PLR2004", # Magic value used in comparison
"S105", # Possible hardcoded password
]
"**/migrations/*" = [
"S608", # Possible SQL injection vector ...
"PLR0915", # Too many statements
]