-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (49 loc) · 1.46 KB
/
pyproject.toml
File metadata and controls
61 lines (49 loc) · 1.46 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
# ===== Project info
[project]
name = "keycmd"
version = "0.7.0"
description = "Safely source your secrets and credentials from the OS keyring"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Korijn van Golen" }]
keywords = ["keyring", "secrets", "credentials", "environment"]
requires-python = ">= 3.9"
dependencies = [
"keyring~=24.3.0",
"tomli~=2.0.1",
"shellingham~=1.5.4"
]
[project.optional-dependencies]
dev = [
"ruff",
"twine",
"pytest",
"pytest-cov"
]
[project.scripts]
keycmd = 'keycmd.cli:main'
[project.urls]
Repository = "https://github.com/Korijn/keycmd"
# ===== Building
# Flit is great solution for simple pure-Python projects.
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
# ===== Tooling
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["F", "E", "W", "N", "B", "RUF"]
ignore = [
"E501", # Line too long
"E731", # Do not assign a `lambda` expression, use a `def`
"B019", # Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`"
]
[tool.ruff.lint.per-file-ignores]
"keycmd/logs.py" = ["T201"]
# example config for development and testing
[tool.keycmd.keys]
ARTIFACTS_TOKEN = { credential = "azure@poetry-repository-main", username = "azure" }
[tool.keycmd.aliases]
ARTIFACTS_TOKEN_B64 = { key = "ARTIFACTS_TOKEN", b64 = true }