Skip to content

Commit 45317f6

Browse files
Wael JabeurWael Jabeur
authored andcommitted
add basic setup for python
1 parent f8c87d4 commit 45317f6

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

python/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Virtual environment
2+
venv/
3+
__pycache__/
4+
*.pyc
5+
.mypy_cache/
6+
.pytest_cache/
7+
.coverage
8+

python/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
install:
2+
pip install -r requirements.txt
3+
4+
format:
5+
black src tests
6+
7+
lint:
8+
mypy src tests
9+
10+
test:
11+
pytest --cov=src tests
12+
13+
clean:
14+
rm -rf __pycache__ .mypy_cache .pytest_cache
15+

python/README.md

Whitespace-only changes.

python/pytest.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[pytest]
2+
testpaths = tests
3+
addopts = --strict-markers
4+
python_files = test_*.py
5+
python_classes = *Test
6+
python_functions = test_*
7+

python/requirements.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
black==25.1.0
2+
click==8.1.8
3+
exceptiongroup==1.2.2
4+
iniconfig==2.0.0
5+
mypy==1.15.0
6+
mypy-extensions==1.0.0
7+
packaging==24.2
8+
pathspec==0.12.1
9+
platformdirs==4.3.6
10+
pluggy==1.5.0
11+
pytest==8.3.4
12+
tomli==2.2.1
13+
typing-extensions==4.12.2

0 commit comments

Comments
 (0)