-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
93 lines (84 loc) · 2.68 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[project]
name = "maturin-import-hook"
description = "Import hook to load rust projects built with maturin"
authors = [
{name = "Matthew Broadway", email = "mattdbway@gmail.com"}
]
readme = "README.md"
version = "0.2.0"
requires-python = ">=3.9"
dependencies = [
"filelock",
"tomli>=1.1.0 ; python_version<'3.11'"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Rust",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License"
]
[project.urls]
Homepage = "https://github.com/PyO3/maturin-import-hook"
Documentation = "https://maturin.rs"
Repository = "https://github.com/PyO3/maturin-import-hook.git"
Issues = "https://github.com/PyO3/maturin-import-hook/issues"
Changelog = "https://github.com/PyO3/maturin-import-hook/blob/main/Changelog.md"
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.format]
preview = true
[tool.ruff.lint]
select = ["ALL"]
# https://docs.astral.sh/ruff/rules/
ignore = [
"ANN101", # missing-type-self
"ARG", # flake8-unused-arguments
"C901", # complex-structure
"COM", # flake8-commas
"D", # pydocstyle
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"ISC001", # single-line-implicit-string-concatenation (disabled to avoid clashing with formatter)
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
"PLW0603", # global-statement
"RET505", # superfluous-else-return
"S101", # assert
"S301", # suspicious-pickle-usage
"S311", # suspicious-non-cryptographic-random-usage
"S324", # hashlib-insecure-hash-function
"S603", # subprocess-without-shell-equals-true
"S607", # start-process-with-partial-path
"T201", # print
"TD003", # missing-todo-link
]
[tool.mypy]
python_version = "3.9"
strict = true
allow_redefinition = true
exclude = [
"tests/maturin",
"tests/test_import_hook/file_importer_helpers",
"tests/test_import_hook/project_importer_helpers"
]
[tool.pytest.ini_options]
addopts = "--ignore tests/maturin --capture=no -v"
testpaths = ["tests"]
junit_logging = "all"
junit_log_passing_tests = false
# total includes setup and teardown
junit_duration_report = "total"
junit_family = "xunit2"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"