File size: 6,214 Bytes
04785dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
[tool.poetry]
name = "jio_savan_music_downloader"
version = "0.0.1"
description = "This app will download Jio-Savan music."
authors = ["Deepak pant <[email protected]>"]
repository = "https://github.com/DeepakPant93/jio-savan-music-downloader"
documentation = "https://DeepakPant93.github.io/jio-savan-music-downloader/"
readme = "README.md"
packages = [
  {include = "jio_savan_music_downloader"}
]

[tool.poetry.scripts]
jio_savan_music_downloader = "jio_savan_music_downloader.main:main"

[tool.poetry.dependencies]
python = ">=3.11,<4.0"
fastapi = "~0.100.0"  # Latest compatible version
uvicorn = "^0.23.0"  # For running FastAPI apps
fastapi-health = "^0.4.0"  # Health check for FastAPI
#pyyaml = "^6.0.2"
#python-box = "^7.2.0"
#ensure = "^1.0.4"
#joblib = "^1.3.2"  # Parallel processing and caching
#python-dotenv = "^1.0.0"  # Manage environment variables
#PyPDF2 = "^3.0.0"  # For PDF manipulation
#pydantic = "^2.0.0"  # Data validation and settings management



[tool.poetry.group.dev.dependencies]
deptry = "^0.16.2"  # For dependency management
mypy = "^1.5.1"  # Static type checking
pre-commit = "^3.4.0"  # Pre-commit hooks
tox = "^4.11.1"  # Testing in multiple environments
ipykernel = "^6.25.0"  # Jupyter kernel
black = "^23.9.0"  # Code formatter
build = "^1.0.0"  # Build management
bump-my-version = "^0.28.2"  # Bump versions automatically
codespell = "^2.2.5"  # Spell checking in code
wheel = "^0.41.0"  # Build wheels
twine = "^4.0.0"  # Publish packages
bandit = "^1.8.0"  # Security check
pylint = "^3.0.0"  # Powerful linter
pydocstyle = "^6.3.0"  # Enforce PEP 257 docstring conventions
isort = "^5.12.0"  # Sort imports

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.0"  # Documentation site generator
sphinx = "^7.2.0"  # Documentation tool
mkdocs-git-revision-date-plugin = "^0.3.2"  # Show revision dates
mkdocs-git-revision-date-localized-plugin = "^1.3.0"  # Localized dates
mkdocs-jupyter = ">=0.25.1"  # For Jupyter Notebook integration
mkdocs-pdf-export-plugin = "^0.5.10"  # PDF export
mkdocs-material = ">=9.1.3"  # MkDocs Material theme
mkdocstrings-crystal = "^0.3.0"  # Mkdocstrings for Crystal
pygments = "^2.16.0"  # Syntax highlighting
pymdown-extensions = "^10.0"  # Markdown extensions
nbconvert = "^7.7.0"  # Convert notebooks to other formats
nbformat = "^5.9.0"  # Notebook format support
livereload = "^2.6.3"  # Live reload for MkDocs
watchdog = "^3.0.0"  # File monitoring
mkdocstrings = {extras = ["python"], version = "^0.27.0"}  # Auto-generate documentation from docstrings
mkdocs-minify-plugin = "^0.8.0"  # Minify HTML

[tool.poetry.group.test.dependencies]
pytest-mock = "^3.11.0"  # Mocking in tests
factory-boy = "^3.3.1"  # Test data generation
pytest-asyncio = "^0.21.0"  # Async testing support
pytest-xdist = "^3.3.1"  # Parallel test execution
freezegun = "^1.2.0"  # Mock datetime
pytest = "^7.2.0"  # Testing framework
allure-pytest = "^2.13.0"  # Reporting for pytest
pytest-sugar = "^0.9.7"  # Better test output
pytest-cov = "^4.0.0"  # Test coverage reports
httpx = "^0.24.0"
pytest-runner = "^6.0.0"  # Running tests via `python setup.py test`


[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


[tool.mypy]
files = ["jio_savan_music_downloader"]
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
pretty = true
show_traceback = true


[[tool.mypy.overrides]]
module = [
    "joblib.*",
    "yaml.*",
    "ensure.*",
    "fastapi_health.*",
    "jio_savan_music_downloader.main"
]
ignore_missing_imports = true
ignore_errors = true


[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = "legacy_tests"
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
filterwarnings = [
    "ignore:.*general_plain_validator_function.*:DeprecationWarning",
    "ignore:.*with_info_plain_validator_function.*:DeprecationWarning"
]


[tool.ruff]
target-version = "py39"
line-length = 120
fix = true
select = [
    # flake8-2020
    "YTT",
    # flake8-bandit
    "S",
    # flake8-bugbear
    "B",
    # flake8-builtins
    "A",
    # flake8-comprehensions
    "C4",
    # flake8-debugger
    "T10",
    # flake8-simplify
    "SIM",
    # isort
    "I",
    # mccabe
    "C90",
    # pycodestyle
    "E", "W",
    # pyflakes
    "F",
    # pygrep-hooks
    "PGH",
    # pyupgrade
    "UP",
    # ruff
    "RUF",
    # tryceratops
    "TRY",
]
ignore = [
    # LineTooLong
    "E501",
    # DoNotAssignLambda
    "E731",
    # Possible binding to all interfaces - Require for Docker container
    "S104"
]

[tool.ruff.format]
preview = true

[tool.coverage.report]
skip_empty = true


[tool.coverage.run]
branch = true
source = ["jio_savan_music_downloader"]
# parallel = true
# concurrency = ["thread"]
omit = [
    "**/__init__.py", # Exclude all init files
    "jio_savan_music_downloader/main.py",  # Exclude main.py file
    "jio_savan_music_downloader/constants/*",   # Exclude all files in a constants folder
    "jio_savan_music_downloader/exception/*",   # Exclude all files in a exception folder
    "jio_savan_music_downloader/logger/*",  # Exclude all files in a logger folder
    "jio_savan_music_downloader/entity/*",  # Exclude all files in entity folder
    "jio_savan_music_downloader/config/*",  # Exclude all files in config folder
    "jio_savan_music_downloader/models/*",  # Exclude all files in model folder
]

[tool.ruff.per-file-ignores]
"tests/*" = ["S101"]

[tool.bumpversion]
current_version = "0.0.1"
commit = true
tag = true

[[tool.bumpversion.files]]
glob = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
glob = "jio_savan_music_downloader/main.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'

[tool.deptry]
exclude = ["research","artifacts", "notebooks", "tests", "docs", ".venv", "venv", "__pycache__", ".ruff_cache", ".pytest_cache", ".mypy_cache", ".coverage", ".git", "build", "dist", ".github", "site", "config"]

[tool.pydocstyle]
select = ["D101", "D102"]