We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d98854f commit 76cf171Copy full SHA for 76cf171
README.md
@@ -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
@@ -0,0 +1,2 @@
+pytest > 7, < 8
+black
test_main.py
@@ -0,0 +1,6 @@
+def add(a: int, b: int) -> int:
+ return a + b
+def test_add() -> None:
+ assert add(1, 2) == 3
0 commit comments