|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "quik-python-demo" |
| 7 | +version = "1.0.0" |
| 8 | +description = "Python порт демо-приложения QuikSharp с использованием PyQt6" |
| 9 | +readme = "README.md" |
| 10 | +license = "Apache-2.0" |
| 11 | +authors = [ |
| 12 | + { name = "QuikPython Team" }, |
| 13 | +] |
| 14 | +maintainers = [ |
| 15 | + { name = "QuikPython Team" }, |
| 16 | +] |
| 17 | +keywords = [ |
| 18 | + "quik", |
| 19 | + "trading", |
| 20 | + "python", |
| 21 | + "qt6", |
| 22 | + "pyqt6", |
| 23 | + "financial", |
| 24 | + "demo" |
| 25 | +] |
| 26 | +classifiers = [ |
| 27 | + "Development Status :: 4 - Beta", |
| 28 | + "Intended Audience :: Developers", |
| 29 | + "Intended Audience :: Financial and Insurance Industry", |
| 30 | + "License :: OSI Approved :: Apache Software License", |
| 31 | + "Operating System :: OS Independent", |
| 32 | + "Programming Language :: Python :: 3", |
| 33 | + "Programming Language :: Python :: 3.8", |
| 34 | + "Programming Language :: Python :: 3.9", |
| 35 | + "Programming Language :: Python :: 3.10", |
| 36 | + "Programming Language :: Python :: 3.11", |
| 37 | + "Programming Language :: Python :: 3.12", |
| 38 | + "Topic :: Office/Business :: Financial :: Investment", |
| 39 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 40 | + "Topic :: Software Development :: User Interfaces", |
| 41 | +] |
| 42 | +requires-python = ">=3.11" |
| 43 | +dependencies = [ |
| 44 | + "PyQt6>=6.5.0", |
| 45 | + "quik-python", |
| 46 | + "typing-extensions>=4.0.0; python_version<'3.10'", |
| 47 | +] |
| 48 | + |
| 49 | + |
| 50 | +[project.optional-dependencies] |
| 51 | +dev = [ |
| 52 | + "pytest>=7.0.0", |
| 53 | + "pytest-qt>=4.0.0", |
| 54 | + "black>=22.0.0", |
| 55 | + "isort>=5.10.0", |
| 56 | + "flake8>=4.0.0", |
| 57 | + "mypy>=0.950", |
| 58 | +] |
| 59 | + |
| 60 | +[project.urls] |
| 61 | +Homepage = "https://github.com/quikpython/quik-python-demo" |
| 62 | +Documentation = "https://github.com/quikpython/quik-python-demo/blob/main/README.md" |
| 63 | +Repository = "https://github.com/quikpython/quik-python-demo.git" |
| 64 | +Issues = "https://github.com/quikpython/quik-python-demo/issues" |
| 65 | + |
| 66 | +[project.scripts] |
| 67 | +quik-python-demo = "quik_python_demo.main:main" |
| 68 | + |
| 69 | +[tool.hatch.build.targets.wheel] |
| 70 | +packages = ["quik_python_demo"] |
| 71 | + |
| 72 | +[tool.black] |
| 73 | +line-length = 88 |
| 74 | +target-version = ['py38'] |
| 75 | +include = '\.pyi?$' |
| 76 | +extend-exclude = ''' |
| 77 | +/( |
| 78 | + # directories |
| 79 | + \.eggs |
| 80 | + | \.git |
| 81 | + | \.hg |
| 82 | + | \.mypy_cache |
| 83 | + | \.tox |
| 84 | + | \.venv |
| 85 | + | build |
| 86 | + | dist |
| 87 | +)/ |
| 88 | +''' |
| 89 | + |
| 90 | +[tool.isort] |
| 91 | +profile = "black" |
| 92 | +multi_line_output = 3 |
| 93 | +line_length = 88 |
| 94 | +known_first_party = ["quik_python_demo"] |
| 95 | + |
| 96 | +[tool.mypy] |
| 97 | +python_version = "3.8" |
| 98 | +warn_return_any = true |
| 99 | +warn_unused_configs = true |
| 100 | +disallow_untyped_defs = true |
| 101 | +disallow_incomplete_defs = true |
| 102 | +check_untyped_defs = true |
| 103 | +disallow_untyped_decorators = true |
| 104 | +no_implicit_optional = true |
| 105 | +warn_redundant_casts = true |
| 106 | +warn_unused_ignores = true |
| 107 | +warn_no_return = true |
| 108 | +warn_unreachable = true |
| 109 | +strict_equality = true |
| 110 | + |
| 111 | +[[tool.mypy.overrides]] |
| 112 | +module = "quik_python.*" |
| 113 | +ignore_missing_imports = true |
| 114 | + |
| 115 | +[tool.pytest.ini_options] |
| 116 | +testpaths = ["tests"] |
| 117 | +python_files = ["test_*.py", "*_test.py"] |
| 118 | +python_classes = ["Test*"] |
| 119 | +python_functions = ["test_*"] |
| 120 | +addopts = [ |
| 121 | + "--strict-markers", |
| 122 | + "--strict-config", |
| 123 | + "--verbose", |
| 124 | +] |
| 125 | +markers = [ |
| 126 | + "slow: marks tests as slow (deselect with '-m \"not slow\"')", |
| 127 | + "integration: marks tests as integration tests", |
| 128 | +] |
| 129 | + |
| 130 | +[tool.uv.sources] |
| 131 | +quik-python = { path = "../../", editable = true } |
0 commit comments