[build-system] requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" [project] name = "elevator-saga" dynamic = ["version"] description = "Python implementation of Elevator Saga game with PyEE event system" readme = "README_CN.md" license = {text = "MIT"} authors = [ {name = "Elevator Saga Team"}, ] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.12", "Topic :: Games/Entertainment :: Simulation", "Topic :: Software Development :: Libraries :: Python Modules", ] requires-python = ">=3.12" dependencies = [ "pyee>=11.0.0", "numpy>=1.20.0", "matplotlib>=3.5.0", "seaborn>=0.11.0", "pandas>=1.3.0", "flask", ] [project.optional-dependencies] dev = [ "pytest>=6.0", "pytest-cov", "black", "flake8", "isort", "mypy", ] [project.scripts] elevator-saga = "elevator_saga.cli.main:main" elevator-server = "elevator_saga.cli.main:server_main" elevator-client = "elevator_saga.cli.main:client_main" elevator-grader = "elevator_saga.grader.grader:main" elevator-batch-test = "elevator_saga.grader.batch_runner:main" [project.urls] Repository = "https://github.com/yourusername/elevator-saga" Issues = "https://github.com/yourusername/elevator-saga/issues" [tool.setuptools_scm] write_to = "elevator_saga/_version.py" [tool.setuptools.packages.find] where = ["."] include = ["elevator_saga*"] [tool.black] line-length = 120 target-version = ['py312'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | _build | buck-out | build | dist )/ ''' [tool.isort] profile = "black" line_length = 120 multi_line_output = 3 include_trailing_comma = true force_grid_wrap = 0 use_parentheses = true ensure_newline_before_comments = true [tool.mypy] python_version = "3.12" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true disallow_untyped_decorators = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true warn_unreachable = true strict_equality = true [[tool.mypy.overrides]] module = [ "pyee.*", "matplotlib.*", "seaborn.*", "pandas.*", "numpy.*", "flask.*", ] ignore_missing_imports = true [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py", "*_test.py"] python_classes = ["Test*"] python_functions = ["test_*"] addopts = [ "--strict-markers", "--strict-config", "--verbose", ] markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')", "integration: marks tests as integration tests", ] [tool.coverage.run] source = ["elevator_saga"] omit = [ "*/tests/*", "*/test_*", "*/__pycache__/*", "*/.*", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "if self.debug:", "if settings.DEBUG", "raise AssertionError", "raise NotImplementedError", "if 0:", "if __name__ == .__main__.:", "class .*\\bProtocol\\):", "@(abc\\.)?abstractmethod", ]