diff options
| author | Semen <51054743+semenInRussia@users.noreply.github.com> | 2023-05-27 20:55:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-27 10:55:56 -0700 |
| commit | f85b48e2eee0983acfe5b3a2684856358714ac6f (patch) | |
| tree | 6a93f68a1d4aaeeaf57aef65a6cfb79951f8cc0d /test/formatters/samplecode | |
| parent | d4a5965d299094448b0afe9fbf6bbed5e0c1ab16 (diff) | |
Add `yapf` formatter (#196)
<!--
To expedite the pull request process, please see the contributor guide
for my projects:
<https://github.com/raxod502/contributor-guide>
-->
Diffstat (limited to 'test/formatters/samplecode')
| -rw-r--r-- | test/formatters/samplecode/yapf/in.py | 16 | ||||
| -rw-r--r-- | test/formatters/samplecode/yapf/out.py | 18 |
2 files changed, 34 insertions, 0 deletions
diff --git a/test/formatters/samplecode/yapf/in.py b/test/formatters/samplecode/yapf/in.py new file mode 100644 index 0000000..4a561a2 --- /dev/null +++ b/test/formatters/samplecode/yapf/in.py @@ -0,0 +1,16 @@ +import sys + +import os + + +import path + +def the_solution(a, b:int , c:bool=True) -> bool: + print(a+ b) + + + + return True + +if __name__ == "__main__" : + the_solution(1, 2, ) diff --git a/test/formatters/samplecode/yapf/out.py b/test/formatters/samplecode/yapf/out.py new file mode 100644 index 0000000..a90652d --- /dev/null +++ b/test/formatters/samplecode/yapf/out.py @@ -0,0 +1,18 @@ +import sys + +import os + +import path + + +def the_solution(a, b: int, c: bool = True) -> bool: + print(a + b) + + return True + + +if __name__ == "__main__": + the_solution( + 1, + 2, + ) |
