File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ .PHONY : dev test unit style
2+
3+ all : clean style test
4+
5+ clean : # # Remove build artifacts and cache files
6+ rm -rf build/
7+ rm -rf dist/
8+ rm -rf * .egg-info/
9+ rm -rf htmlcov/
10+ rm -rf .coverage
11+ rm -rf coverage.xml
12+ rm -rf .pytest_cache/
13+ rm -rf .mypy_cache/
14+ rm -rf .ruff_cache/
15+ find . -type d -name __pycache__ -delete
16+ find . -type f -name " *.pyc" -delete
17+
18+ test :
19+ pip install -r requirements.txt
20+ pytest .
21+
22+ dev :
23+ pip install -r requirements.txt
24+
25+ style :
26+ pre-commit run --all-files
27+
Original file line number Diff line number Diff line change @@ -11,11 +11,38 @@ authors = [
1111]
1212description = " A Collection of Custom Data Source Connectors for PySpark"
1313requires-python = " >=3.11"
14+ dependencies = [
15+ " pyspark >= 4.0.0.dev2" ,
16+ " paho-mqtt >= 2.1.0" ,
17+ ]
1418classifiers = [
1519 " Programming Language :: Python :: 3" ,
1620 " Operating System :: OS Independent" ,
1721]
1822
23+ [project .optional-dependencies ]
24+ dev = [
25+ " pytest>=7.0.0" ,
26+ " pytest-cov>=4.0.0" ,
27+ " pytest-mock>=3.10.0" ,
28+ " black>=23.0.0" ,
29+ " isort>=5.12.0" ,
30+ " flake8>=6.0.0" ,
31+ " mypy>=1.0.0" ,
32+ " pre-commit>=3.0.0" ,
33+ " build>=0.10.0" ,
34+ " twine>=4.0.0" ,
35+ ]
36+ doc = [
37+ " sphinx>=6.0.0" ,
38+ " sphinx-rtd-theme>=1.2.0" ,
39+ ]
40+ test = [
41+ " pytest>=7.0.0" ,
42+ " pytest-cov>=4.0.0" ,
43+ " pytest-mock>=3.10.0" ,
44+ ]
45+
1946[tool .pytest .ini_options ]
2047addopts = [
2148 " --import-mode=importlib" ,
Original file line number Diff line number Diff line change 1+ paho-mqtt
You can’t perform that action at this time.
0 commit comments