Skip to content

Commit bd5a323

Browse files
committed
pre-commit
1 parent a65b175 commit bd5a323

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

mqpy/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
""" Python integration package.
2+
3+
This package provides a bridge between Python and MetaTrader 5, allowing users to
4+
create Expert Advisors and implement trading strategies in Python.
5+
"""
6+
7+
from .version import __version__

mqpy/indicator_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""MetaQuotes Language 5 Python integration module for technical indicators.
1+
""" Python integration module for technical indicators.
22
33
This module provides a bridge between Python and MT5 indicators through socket connections.
44
"""

scripts/gen_ref_pages.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22
"""Generate the API reference pages for the MQPy package."""
33

4-
import os
54
import sys
65
from pathlib import Path
76

@@ -18,7 +17,8 @@
1817
nav = mkdocs_gen_files.Nav()
1918

2019
# Ensure the reference directory exists
21-
os.makedirs(project_dir / "docs" / "reference", exist_ok=True)
20+
reference_dir = project_dir / "docs" / "reference"
21+
reference_dir.mkdir(parents=True, exist_ok=True)
2222

2323
# Create an index page with a better layout
2424
index_path = Path("reference", "index.md")
@@ -44,17 +44,13 @@
4444
import_path = ".".join(parts)
4545

4646
# Create directory for the documentation
47-
os.makedirs(full_doc_path.parent, exist_ok=True)
47+
full_doc_path.parent.mkdir(parents=True, exist_ok=True)
4848

49-
# Write the page content - customized to skip module headers
49+
# Write the page content
5050
with mkdocs_gen_files.open(full_doc_path, "w") as fd:
51-
# Instead of directly using the main import path, create a custom approach
52-
# that doesn't show the module header but still shows classes and functions
53-
# fd.write("---\nhide:\n - toc\n---\n\n")
5451
fd.write("<!-- Auto-generated API documentation -->\n\n")
5552

56-
# Write documentation for classes and functions instead of the module
57-
# This approach avoids generating the module header while still including all content
53+
# Write documentation for classes and functions
5854
fd.write(f"::: {import_path}\n")
5955

6056
# Create title case version of the module name for navigation

setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""Setup script for the mqpy package.
2+
3+
This module contains the setup configuration for the mqpy package, which provides a Python interface
4+
for creating Expert Advisors in MetaTrader 5.
5+
"""
6+
17
import pathlib
28

39
import setuptools
@@ -7,7 +13,10 @@
713
setuptools.setup(
814
name="mqpy",
915
version="v0.6.9",
10-
description="I developed this library to simplify the process of creating an Expert Advisor in MQL5. While developing in MQL5 can be complex, the same task is more streamlined in Python.",
16+
description=(
17+
"A library to simplify the process of creating an Expert Advisor in MQL5. "
18+
"It makes Python development more streamlined than MQL5."
19+
),
1120
author="Joao Paulo Euko",
1221
license="MIT",
1322
keywords=["metatrader5", "algotrading", "stock market"],

0 commit comments

Comments
 (0)