about summary refs log tree commit diff
path: root/pyproject.toml
blob: 1544d77191339f89a67e59b54659b93f7141d4e9 (plain) (blame)
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
[project]
name = "world"
version = "0.1.0"
description = "collection of tools and scripts"
authors = [{ name = "Franck Cuny", email = "franck@fcuny.net" }]
dependencies = [
  "bs4>=0.0.2",
  "requests>=2.31.0",
  "prettytable>=3.10.0",
  "termcolor>=2.4.0",
  "click>=8.1.7",
  "ipython>=8.24.0",
]
readme = "README.md"
requires-python = ">= 3.8"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = [
  "python-lsp-server[all]>=1.11.0",
  "python-lsp-ruff>=2.2.1",
  "types-requests>=2.31.0.20240406",
]

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["src/cli", "src/rbx_nomad"]

[tool.ruff]
line-length = 120

[tool.ruff.format]
docstring-code-format = true

[tool.ruff.lint]
select = [
  # isort
  "I",
  # bugbear rules
  "B",
  # remove unused imports
  "F401",
  # bare except statements
  "E722",
  # unused arguments
  "ARG",
  # misuse of typing.TYPE_CHECKING
  "TCH004",
  # import rules
  "TID251",
]

[tool.ruff.lint.pycodestyle]
max-line-length = 120

[tool.ruff.lint.isort]
length-sort = true
length-sort-straight = true
combine-as-imports = true
known-first-party = ["rbx_nomad", "term", "git"]

[project.scripts]
gha_billing = "cli.gha_billing:cli"
hashienv = "cli.hashienv:cli"
int2ip = "cli.ipconverter:int2ip"
ip2int = "cli.ipconverter:ip2int"
nomad_allocs = "cli.nomad_allocs:cli"
pizza = "cli.pizza:main"
seqstat = "cli.seqstat:cli"
slocalc = "cli.slocalc:cli"