forked from wislertt/leetcode-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (102 loc) · 2.99 KB
/
pyproject.toml
File metadata and controls
115 lines (102 loc) · 2.99 KB
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
[tool.poetry]
name = "leetcode-py-sdk"
version = "0.1.0" # use git tag instead
description = "Modern Python LeetCode practice environment with automated problem generation, beautiful data structure visualizations, and comprehensive testing"
authors = ["Wisaroot Lertthaweedech <l.wisaroot@gmail.com>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/wislertt/leetcode-py"
repository = "https://github.com/wislertt/leetcode-py"
keywords = ["leetcode", "algorithms", "data-structures", "interview-prep", "coding-practice"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Education",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
packages = [{include = "leetcode_py"}]
include = ["leetcode_py/cli/resources/**/*"]
[tool.poetry.scripts]
lcpy = "leetcode_py.cli.main:app"
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
anytree = "^2.13.0"
black = "^25.1.0"
cookiecutter = "^2.6.0"
graphviz = "^0.21"
json5 = "^0.12.1"
loguru = "^0.7.3"
requests = "^2.32.5"
rich = "^14.1.0"
typer = "^0.20.0"
[tool.poetry.group.dev.dependencies]
ipykernel = "^7.0.0"
isort = "^7.0.0"
jupytext = "^1.16.6"
mypy = "^1.17.1"
nbqa = "^1.9.1"
pre-commit = "^4.3.0"
pytest = "^9.0.0"
pytest-cov = "^7.0.0"
ruff = "^0.14.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.requires-plugins]
poetry-plugin-sort = { version = ">=0.2.2", extras = ["plugin"] }
[tool.black]
line-length = 105
target-version = ['py310']
include = '.*\.(py|ipynb)$' # All .py and .ipynb files
extend-exclude = '''
/(
leetcode_py/cli/resources
)/
'''
[tool.isort]
line_length = 105
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
use_parentheses = true
ensure_newline_before_comments = true
extend_skip_glob = ["leetcode_py/cli/resources/*"]
[tool.ruff]
line-length = 105
target-version = 'py310'
extend-exclude = ["leetcode_py/cli/resources"]
[tool.ruff.lint]
# Core rules - essential for any Python project
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
]
ignore = ["N806"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
files = '**/*.py'
warn_unused_configs = true
ignore_missing_imports = true
disable_error_code = ["return", "no-redef"]
exclude = ["leetcode_py/cli/resources"]
[tool.pytest.ini_options]
testpaths = ["leetcode", "tests"]
python_files = ["tests.py", "test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
norecursedirs = ["leetcode_py/cli/resources"]
[tool.coverage.run]
omit = ["**/playground.py"]