-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
85 lines (66 loc) · 2.13 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pybm"
description = "A Python CLI for reproducible benchmarking in a git repository."
requires-python = ">=3.8"
license = {file = "LICENSE"}
keywords = ["benchmark"]
authors = [
{name = "Nicholas Junge"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Testing",
"Topic :: System :: Benchmark",
]
dynamic = ["readme", "version"]
dependencies = [
"pyyaml",
]
[project.optional-dependencies]
dev = ["pre-commit", "pytest"]
gbm = ["google-benchmark"]
[project.scripts]
pybm = "pybm.main:main"
[project.urls]
Homepage = "https://github.com/nicholasjng/pybm"
Documentation = "https://github.com/nicholasjng/pybm/tree/master/docs"
Repository = "https://github.com/nicholasjng/pybm.git"
[tool.setuptools]
zip-safe = false
[tool.setuptools.dynamic]
version = { attr = "pybm.__version__" }
readme = { file = "README.md", content-type = "text/markdown" }
# ---------- Linter & formatter setups -------------- #
[tool.black]
line-length = 100
[tool.isort]
line_length = "100"
profile = "black"
[tool.mypy]
show_error_codes = true
[[tool.mypy.overrides]]
module = [
"pybm.third_party.*",
"yaml.*"
]
ignore_missing_imports = true
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Same as Black.
line-length = 100
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]