-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (98 loc) · 3.05 KB
/
pyproject.toml
File metadata and controls
109 lines (98 loc) · 3.05 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
[project]
name = "voltage-park-sdk"
version = "0.0.1"
description = "Python library for accessing the Voltage Park API."
license = "BSD-3-Clause"
readme = "README.md"
authors = [
{name = "James Collins", email = "james@far.ai"},
]
requires-python = ">=3.12"
dependencies = [
"click",
"pydantic>=2.11.5",
"requests>=2.32.3",
]
[project.urls]
repository = "https://github.com/AlignmentResearch/voltage-park-sdk"
# We keep the dev dependencies here instead of in the
# project optional dependencies. This is so that they're still installed
# by default with `uv sync`, but are not shipped with the package.
[dependency-groups]
dev = [
# Things we want to put a lower bound on
"mypy>=1.15.0",
"mkdocs-material>=9.6.0",
"pre-commit>=4.0.0",
"pytest>=8.3.0",
"ruff>=0.9.7",
# Things we just want the latest version of
"mkdocstrings[python]",
"mkdocs-table-reader-plugin",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-section-index",
"pymdown-extensions",
"pytest-github-actions-annotate-failures",
"pytest-cov",
"python-kacl",
# For testing in a notebook
"ipykernel",
"pyyaml",
"types-requests>=2.32.0.20250602",
"rich>=14.0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py312" # The lowest supported version
[tool.ruff.lint]
# By default, enable all the lint rules.
# Add to the ignore list below if you don't want some rules.
# If you need some ignores for certain modules, see
# tool.ruff.lint.per-file-ignores below.
# For individual ignore cases, prefer inline `# noqa`s within the code.
select = ["ALL"]
ignore = [
"COM812", # flake8 missing trailing comma, formatter handles
"ISC001", # Implicit string concatenation
"ANN", # Type hints related, let mypy handle these.
"D", # Docstrings related, way too strict to our taste
"RUF007", # zip is idiomatic, this is a dumb check
"RET505", # Else after return, makes a lot of false positives
"E501", # Line too long, this is autoformatted
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"S101", # "Use of `assert` detected"
"ARG", # "Unused function argument". Fixtures are often unused.
"S105", # "Possible hardcoded password".
]
"scripts/**" = [
"INP001", # "Scripts are not part of a package."
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
"classmethod",
"pydantic.validator",
"pydantic.root_validator",
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.mypy]
# This is the global mypy configuration.
# Avoid changing this!
strict = true # See all the enabled flags `mypy --help | grep -A 10 'Strict mode'`
disallow_any_unimported = false
# If you need to ignore something for some specific module,
# add overrides for them. Avoid changing the global config!
# For example:
# [[tool.mypy.overrides]]
# module = [
# "my_unpyted_dependency1.*",
# "my_unpyted_dependency2.*"
# ]
# ignore_missing_imports = true