forked from facebookresearch/nle
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
68 lines (60 loc) · 1.57 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
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| src
| win/rl/nethack_rl
)/
'''
[tool.isort]
force_single_line = true
profile = "black"
skip_glob = "**/__init__.py"
[tool.ruff]
# See https://docs.astral.sh/ruff/rules/.
extend-exclude = [
"third_party",
]
exclude = ["win/rl/nle"]
[tool.ruff.lint]
ignore = [
"B008",
"B905",
"C901",
"E501",
"E731",
]
select = [
"B",
"B9",
"C",
"E",
"F",
"W",
"R",
]
[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused-import.
[tool.cibuildwheel]
# We need to build wheels for the following Python versions:
build = "cp{38,39,310,311,312}-*"
[tool.cibuildwheel.linux]
# Only manylinux is supported (no musllinux)
build = "cp{38,39,310,311,312}-manylinux*"
# We need to clean up the build directory, all .so files, and CMakeCache.txt
# and install the dependencies using yum, as manylinux2014 image is CentOS 7-based
before-all = "rm -rf {project}/build {project}/*.so {project}/CMakeCache.txt && yum install -y autoconf bison cmake flex git libtool"
# Only x86_64 and aarch64 (ARM) architectures are supported
archs = "x86_64 aarch64"
# Use manylinux2014 image for both x86_64 and aarch64
manylinux-x86_64-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
[tool.cibuildwheel.macos]
# For macOS wheels, we only need to install cmake
before-all = "rm -rf {project}/build {project}/*.so {project}/CMakeCache.txt && brew install cmake"