-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
139 lines (121 loc) · 2.76 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
139
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=8.0"]
[project]
name = "torch_pca"
authors = [{ name = "Valentin Goldite", email = "valentin.goldite@gmail.com" }]
description = """PyTorch implementation of PCA (similar to sklearn PCA)."""
requires-python = ">=3.8"
keywords = ["principal component analysis", "PCA", "pytorch", "torch"]
classifiers = ["Programming Language :: Python :: 3"]
dynamic = ["readme", "dependencies", "version"]
[tool.setuptools]
license-files = ['LICEN[CS]E*', 'COPYING*', 'NOTICE*', 'AUTHORS*']
[tool.setuptools_scm]
write_to = "src/torch_pca/_version.py"
[project.urls]
Source = "https://github.com/valentingol/torch_pca"
[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }
dependencies = { file = ["requirements.txt"] }
[tool.coverage.run]
source = ["src"]
omit = ["src/torch_pca/_version.py"]
[tool.coverage.report]
exclude_lines = ["if __name__ == '__main__':", " main()"]
[tool.pytest.ini_options]
testpaths = ["tests"]
log_level = "DEBUG"
addopts = "--ignore=src/torch_opt/_version.py"
[tool.ruff]
# pycodestyle error (E) and warning (W), pyflakes (F), mccabe (C90), isort (I),
# pydocstyle (D), numpy-related (NPY), pandas-related (PD),
# flake8:
# annotations (ANN), boolean-trap (FBT), builtins (A), commas (COM),
# comprehensions (C4), import conventions (ICN), pie (PIE), pytest-style (PT),
# return (RET), simplify (SIM), tidy-imports (TID), unused-arguments (ARG)
select = [
'A',
'ARG',
'C4',
'C90',
'COM',
'D',
'E',
'F',
'FBT',
'I',
'ICN',
'NPY',
'PD',
'PIE',
'PT',
'RET',
'SIM',
'TID',
'W',
]
ignore = ['RET504', 'COM812', 'F841', 'F401']
fixable = [
'A',
'ARG',
'BLE',
'C4',
'C90',
'COM',
'D',
'E',
'F',
'FBT',
'I',
'ICN',
'NPY',
'PD',
'PIE',
'PT',
'RET',
'SIM',
'TID',
'W',
]
exclude = [
".eggs",
".git",
".mypy_cache",
".ruff_cache",
".venv",
"venv",
"__pypackages__",
]
line-length = 88
target-version = "py38"
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["torch_pca"]
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = 88
extend-ignore = 'E203'
[tool.pycodestyle]
ignore = 'E203'
[tool.black]
line-length = 88
[tool.ruff.pydocstyle]
convention = 'numpy'
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = false
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
files = '*.py'
follow_imports = 'skip'
follow_imports_for_stubs = false
ignore_missing_imports = true
no_implicit_optional = true
no_implicit_reexport = true
pretty = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true