-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
116 lines (101 loc) · 2.6 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
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "kfac_pytorch"
version = "0.4.1"
authors = [
{name = "Greg Pauloski", email = "[email protected]"},
]
description = "Distributed K-FAC Preconditioner for PyTorch."
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"torch>=1.8",
]
[project.urls]
repository = "https://github.com/gpauloski/kfac_pytorch"
[project.optional-dependencies]
dev = [
"covdefaults>=2.2",
"coverage",
"mypy",
"numpy",
"pre-commit",
"protobuf==3.20.2",
"pytest",
"pytest-cov",
"ruff",
"torchtext",
"torchvision>=0.9.0; python_version < '3.11'",
"tox",
"types-tqdm",
"virtualenv",
]
[tool.codespell]
skip = """
.git,
.github,
__pycache__,
build,
dist,
.*egg-info
"""
[tool.coverage.run]
plugins = ["covdefaults"]
omit = ["examples/*", "testing/*", "tests/integration/*"]
concurrency = ["multiprocessing", "thread"]
parallel = true
[tool.mypy]
python_version = "3.8"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "testing.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[tool.ruff]
# pycodestyle, pyflakes, flake8-builtins, flake8-bugbear, isort, pep8-naming,
# pydocstyle, flake8-debugger, flake8-commas
select = ["E", "F", "A", "B", "I", "N", "D", "T10", "COM"]
# Ignore D202 because issue with inner function and black will fix it anyways
extend-ignore = ["D202", "D401"]
line-length = 79
target-version = "py38"
[tool.ruff.isort]
force-single-line = true
known-first-party = ["kfac_pytorch", "test", "testing"]
order-by-type = false
required-imports = ["from __future__ import annotations"]
[tool.ruff.per-file-ignores]
"*/__init__.py" = ["F401"]
"examples/*__init__.py" = ["D104"]
"tests/*__init__.py" = ["D104"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.flake8-quotes]
inline-quotes = "single"
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.setuptools.packages.find]
exclude = ["tests*", "testing*"]
namespaces = false