-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
110 lines (91 loc) · 2.78 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "megfile"
dynamic = ["version", "dependencies", "optional-dependencies", "readme"]
description = "Megvii file operation library"
authors = [
{ name="megvii", email="[email protected]" }
]
urls = { "Homepage" = "https://github.com/megvii-research/megfile" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.9"
[project.scripts]
megfile = "megfile.cli:safe_cli"
[tool.setuptools.packages.find]
exclude = ["tests", "tests*", "remof", "scripts", "docs"]
[tool.setuptools.dynamic]
version = {attr = "megfile.version.VERSION"}
readme = {file = ["README.md"], content-type = "text/markdown"}
[tool.setuptools.dynamic.dependencies]
file = ["requirements.txt"]
[tool.setuptools.dynamic.optional-dependencies]
hdfs = { file = ["requirements-hdfs.txt"] }
cli = { file = ["requirements-cli.txt"] }
[tool.ruff]
line-length = 88
indent-width = 4
[tool.ruff.lint]
ignore = [
"E402", # imports not on top of file
"PGH004", # Use specific rule codes when using noqa
]
select = ["E", "F", "W"]
extend-select = ["I"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"F811", # redefinition of unused name
]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
[tool.pytype]
# Space-separated list of files or directories to exclude.
exclude = [
"tests/"
]
# Space-separated list of files or directories to process.
inputs = [
"./megfile"
]
# Keep going past errors to analyze as many files as possible.
keep_going = true
# All pytype output goes here.
output = ".pytype_output"
# Paths to source code directories, separated by ':'.
pythonpath = "."
# Comma separated list of error names to ignore.
disable = [
"pyi-error"
]
# Don't report errors.
report_errors = true
# Experimental: solve unknown types to label with structural types.
protocols = false
# Experimental: Only load submodules that are explicitly imported.
strict_import = false
[tool.coverage.report]
exclude_lines = [
"pragma: no cover"
]
[tool.mutmut]
paths_to_mutate = "megfile/"
backup = false
runner = "pytest --cov=megfile --cov-config pyproject.toml tests/"
tests_dir = "tests/"
dict_synonyms = "Struct,NamedStruct"