-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
138 lines (121 loc) · 3.41 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#:schema https://json.schemastore.org/pyproject.json
[build-system]
requires = ["hatchling", "hatch-vcs", "hatch-zipped-directory"]
build-backend = "hatchling.build"
[project]
name = "mayafbx"
description = "Python wrapper for Autodesk Maya FBX plugin"
readme = "README.md"
license = "MIT"
requires-python = ">=3.7"
keywords = ["maya", "fbx"]
authors = [{ name = "Thibaud Gambier" }]
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
[project.urls]
Github = "https://github.com/tahv/mayafbx"
Changelog = "https://mayafbx.readthedocs.io/latest/changelog.html"
Documentation = "https://mayafbx.readthedocs.io/latest"
[project.optional-dependencies]
tests = ["pytest", "coverage"]
style = ["ruff"]
build = ["hatch"]
mypy = ["mypy", "pytest"]
docs = ["sphinx", "furo", "myst-parser", "sphinx-toolbox"]
dev = ["mayafbx[tests,style,mypy,docs,build]", "sphinx-autobuild"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.targets.zipped-directory]
install-name = ""
sources = ["src"]
packages = ["src/mayafbx"]
[tool.pytest.ini_options]
addopts = "--doctest-modules"
testpaths = ["src", "tests"]
[tool.coverage.run]
source = ["src/"]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"# pragma: no cover",
"if (False|0|TYPE_CHECKING):",
"if __name__ == ['\"]__main__['\"]:",
"@overload", # https://github.com/nedbat/coveragepy/issues/970
]
[tool.coverage.paths]
source = ["src/", "*/src"]
[tool.mypy]
disallow_untyped_defs = true
check_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
warn_return_any = true
warn_unused_ignores = true
warn_redundant_casts = true
show_error_codes = true
# disallow_any_generics = true
# implicit_reexport = false
[[tool.mypy.overrides]]
module = [
"maya",
"maya.api",
"maya.standalone",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# ANN101: Missing type annotation for `self` in method
"ANN101",
# ANN102: Missing type annotation for `cls` in classmethod
"ANN102",
# D105: Missing docstring in magic method
"D105",
# D107: Missing docstring in `__init__`
"D107",
# TD002: Missing author in TODO
"TD002",
# TD003: Missing issue link on the line following this TODO
"TD003",
# F403: `import *` used; unable to detect undefined names
"F403",
# FIX002: Line contains TODO, consider resolving the issue
"FIX002",
]
unfixable = [
# ERA001: Found commented-out code
"ERA001",
# F401: Unused import
"F401",
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = [
# PLR2004: Magic value used in comparison, consider replacing with a constant variable
"PLR2004",
# S101: Use of assert detected
"S101",
# PT004: Fixture does not return anything, add leading underscore
"PT004",
# INP001: File is part of an implicit namespace package. Add an `__init__.py`.
"INP001",
]