Skip to content

Commit 76cf171

Browse files
committed
Initial commit
1 parent d98854f commit 76cf171

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# python-interview
2+
3+
A ready-to-go repo for job interviews that has:
4+
5+
- Python
6+
- pytest
7+
- black
8+
- an example source file + test
9+
10+
## Getting started
11+
12+
- Clone this repo to your computer
13+
- Run `python -m venv .venv`
14+
- Run `source .venv/bin/activate` (or your platform's [equivalent](https://docs.python.org/3/library/venv.html#how-venvs-work))
15+
- Run `pip install -r requirements.txt` to fetch dependencies
16+
- Run `pytest` to start the test runner

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest > 7, < 8
2+
black

test_main.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def add(a: int, b: int) -> int:
2+
return a + b
3+
4+
5+
def test_add() -> None:
6+
assert add(1, 2) == 3

0 commit comments

Comments
 (0)