File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ repos:
2525 args : [--fix]
2626 - id : ruff-format
2727
28+ # python docstring formatting
29+ - repo : https://github.com/PyCQA/docformatter
30+ rev : v1.7.8
31+ hooks :
32+ - id : docformatter
33+ args : [--in-place]
34+
2835 # jupyter notebook cell output clearing
2936 - repo : https://github.com/kynan/nbstripout
3037 rev : 0.9.1
Original file line number Diff line number Diff line change @@ -3,3 +3,8 @@ line-length = 120
33
44[tool .ruff .lint .pydocstyle ]
55convention = " google"
6+
7+ [tool .docformatter ]
8+ recursive = true
9+ wrap-summaries =120
10+ wrap-descriptions =120
Original file line number Diff line number Diff line change 44
55
66class NormalizeSample (torch .nn .Module ):
7- """Normalize a tensor image w.r.t. to its mean and standard deviation.
7+ """Normalize a tensor image with respect to its mean and standard deviation.
88
99 Args:
1010 inplace: Whether to make this operation in-place.
You can’t perform that action at this time.
0 commit comments