-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
151 lines (130 loc) · 3.72 KB
/
pyproject.toml
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
[tool.poetry]
name = "cortex"
version = "0.3.2"
description = "Cortex is an API for communicating with your Emotiv EEG device."
license = "MIT"
authors = ["Victor I. Afolabi <javafolabi@gmail.com>"]
maintainers = ["Victor I. Afolabi <javafolabi@gmail.com>"]
readme = "README.md"
repository = "https://github.com/victor-iyi/cortex"
keywords = ["bci", "emotiv", "eeg", "neuroscience"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [{ include = "cortex", from = "src" }]
[tool.poetry.dependencies]
python = "^3.11"
# WebSocket client for Python with low level API options.
websocket-client = "^1.8.0"
# Lightweight Event Handling.
python-dispatch = "^0.2.2"
# Render rich text, progress bars, syntax highlighting and more to the terminal
rich = "^13.8.1"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
# Optional static typing for Python.
mypy = "^1.11.2"
# Managing and maintaining pre-commit hooks.
pre-commit = "^3.8.0"
# Formats docstring to follow PEP 257.
docformatter = { version = "^1.7.5", extras = ["tomli"] }
# Fast Python linter and code formatter.
ruff = "^0.6.3"
[tool.poetry.group.test.dependencies]
# Simple powerful testing with Python.
pytest = "^8.3.3"
# Plugin for generating Markdown reports for pytest results.
pytest-md = "^0.2.0"
# A pytest plugin that adds emojis to your test result report.
pytest-emoji = "^0.2.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Docformatter.
[tool.docformatter]
in-place = true
recursive = true
blank = true
close-quotes-on-newline = true
wrap-summaries = 120
wrap-descriptions = 120
# Style hinting.
[tool.mypy]
files = ["src/", "examples/"]
exclude = ["tests/", "venv/", ".venv/"]
namespace_packages = true
explicit_package_bases = true
strict = true
check_untyped_defs = true
ignore_missing_imports = true
disallow_any_generics = true
disallow_incomplete_defs = true
implicit_reexport = false
no_implicit_optional = true
show_error_codes = true
show_column_numbers = true
warn_unused_configs = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
disallow_subclassing_any = false
disallow_untyped_decorators = false
[tool.pyright]
reportArgumentType = "none"
reportGeneralTypeIssues = "none"
reportOptionalCall = "none"
reportOptionalMemberAccess = "none"
reportUnboundVariable = "none"
[tool.ruff]
fix = true
line-length = 120
show-fixes = true
extend-exclude = ["src/cortex/deprecated/*.py"]
[tool.ruff.format]
quote-style = "single"
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pydocstyle
"D",
# pyupgrade
"UP",
]
extend-select = [
# pydocstyle
# One-line docstring should fit on one line.
"D200",
# Multi-line docstring summary should start at the first line.
"D212",
# Use triple double quotes """.
"D300",
# First word of the first line should be capitalized: {} -> {}.
"D403",
# First line should end with a period, question mark, or exclamation point
"D415",
]
ignore = [
# pydocstyle
# Missing docstring in public package.
"D104",
]
logger-objects = ["cortex.logging.logger"]
typing-modules = ["cortex.api.types"]
[tool.ruff.lint.pydocstyle]
convention = "google"