feat: add addition function and its test-function
This commit is contained in:
parent
0ae176e3e9
commit
cde7c8ecd2
18
.pre-commit-config.yaml
Normal file
18
.pre-commit-config.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.3.0
|
||||
hooks:
|
||||
- id: ruff # Linting
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: stable
|
||||
hooks:
|
||||
- id: black # formatting
|
||||
@ -4,3 +4,7 @@ def addition(a=1, b=2):
|
||||
|
||||
def f(x: int, y: int) -> int:
|
||||
return x + y
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(addition(5, 5))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user