-
-
Notifications
You must be signed in to change notification settings - Fork 395
/
Copy pathpyproject.toml
77 lines (66 loc) · 2.1 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
[build-system]
requires = ["setuptools", "wheel"]
[tool.cibuildwheel]
enable = ["pypy"]
skip = "*musllinux_aarch64 *musllinux_ppc64le"
archs = ["native"]
build-frontend = "default"
dependency-versions = "pinned"
environment = {LIBGIT2_VERSION="1.9.0", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.2.3", LIBGIT2="/project/ci"}
before-all = "sh build.sh"
[tool.cibuildwheel.linux]
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib64 auditwheel repair -w {dest_dir} {wheel}"
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib auditwheel repair -w {dest_dir} {wheel}"
[tool.cibuildwheel.macos]
archs = ["universal2"]
environment = {LIBGIT2_VERSION="1.9.0", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.2.3", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"}
repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
[tool.ruff]
target-version = "py310" # oldest supported Python version
fix = true
extend-exclude = [ ".cache", ".coverage", "build", "site-packages", "venv*"]
lint.select = [
"E",
"W",
"F",
"I",
"B",
"C4",
"ARG",
"SIM",
"PTH",
"PL",
"TID",
]
lint.ignore = [
"W291", # Trailing whitespace
"E501", # Line too long
"W293", # Blank line contains whitespace
"PLR0912", # Too many branches
"PLR2004", # Magic values
"PLR0915", # Too many statements
"PLW0603", # Global statement
"PLR0913", # Too many arguments
"B010", # setattr
"F401", # unused imports
"ARG002", # unused arguments
"SIM105", # try-except-pass
]
[tool.ruff.format]
quote-style = "single"
[tool.pyright]
typeCheckingMode = "strict"
pythonVersion = "3.10"
reportPrivateUsage = "none"
reportAttributeAccessIssue = "none"
reportUnknownMemberType = "none"
reportUnusedFunction = "none"
reportUnnecessaryIsInstance = "none"
[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git*'
check-hidden = true
# ignore-regex = ''
ignore-words-list = 'devault,claus'