forked from open-quantum-safe/liboqs-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (118 loc) · 2.67 KB
/
pyproject.toml
File metadata and controls
130 lines (118 loc) · 2.67 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[project]
name = "liboqs-python"
requires-python = ">=3.9"
version = "0.14.0"
description = "Python bindings for liboqs, providing post-quantum public key cryptography algorithms"
authors = [
{ name = "Open Quantum Safe project", email = "contact@openquantumsafe.org" },
]
readme = "README.md"
license = { file = "LICENSE.txt" }
dependencies = [
"tomli>=2; python_version < '3.11'",
]
[tool.uv]
package = true
[project.optional-dependencies]
dev = [
"isort==5.13.2",
"pre-commit==4.1.0",
"ruff==0.9.4",
"nose2==0.15.1",
]
lint = [
"mypy==1.14.1",
"types-pytz==2024.2.0.20241221",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["oqs"]
[project.urls]
homepage = "https://github.com/open-quantum-safe/liboqs-python"
repository = "https://github.com/open-quantum-safe/liboqs-python.git"
[tool.isort]
py_version = 39
src_paths = ["oqs"]
line_length = 99
multi_line_output = 3
force_grid_wrap = 0
include_trailing_comma = true
split_on_trailing_comma = false
single_line_exclusions = ["."]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
skip_gitignore = true
extend_skip = ["__pycache__"]
extend_skip_glob = []
[tool.ruff]
src = ["oqs"]
target-version = "py39"
line-length = 99
exclude = [
".git",
".mypy_cache",
".ruff_cache",
"__pypackages__",
"__pycache__",
"*.pyi",
"venv",
".venv",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A003",
"ANN002", "ANN003", "ANN401",
"C901",
"COM812",
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D203", "D205", "D212",
"ERA001",
"FA100", "FA102",
"FBT001", "FBT002",
"FIX002",
"I001",
"PLR0911", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PLR5501",
"PLW0120",
"RUF001",
"TD002", "TD003",
"UP007",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
python_version = "3.9"
mypy_path = "."
packages = ["oqs"]
plugins = []
allow_redefinition = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
extra_checks = true
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_missing_imports = false
namespace_packages = true
no_implicit_optional = true
no_implicit_reexport = true
pretty = true
show_absolute_path = true
show_error_codes = true
show_error_context = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
disable_error_code = [
"no-redef",
]
exclude = [
"\\.?venv",
"\\.idea",
"\\.tests?",
]