Skip to content

Commit d91f995

Browse files
authored
Create pyproject.toml
1 parent a7f4af0 commit d91f995

1 file changed

Lines changed: 117 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "python-learning-repo"
7+
version = "1.0.0"
8+
description = "A comprehensive guide to master Python programming"
9+
readme = "README.md"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "Python Learning Community", email = "python-learning@example.com"}
13+
]
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: Education",
18+
"Topic :: Software Development :: Libraries",
19+
"Topic :: Education",
20+
"License :: OSI Approved :: MIT License",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
]
27+
keywords = ["python", "learning", "tutorial", "education", "programming"]
28+
requires-python = ">=3.9"
29+
30+
dependencies = []
31+
32+
[project.optional-dependencies]
33+
dev = [
34+
"flake8>=6.0.0",
35+
"black>=23.0.0",
36+
"mypy>=1.0.0",
37+
"pytest>=7.0.0",
38+
"pytest-cov>=4.0.0",
39+
]
40+
projects = [
41+
"requests>=2.31.0",
42+
"beautifulsoup4>=4.12.0",
43+
"pandas>=2.0.0",
44+
"numpy>=1.24.0",
45+
]
46+
all = [
47+
"flake8>=6.0.0",
48+
"black>=23.0.0",
49+
"mypy>=1.0.0",
50+
"pytest>=7.0.0",
51+
"pytest-cov>=4.0.0",
52+
"requests>=2.31.0",
53+
"beautifulsoup4>=4.12.0",
54+
"pandas>=2.0.0",
55+
"numpy>=1.24.0",
56+
]
57+
58+
[project.urls]
59+
Homepage = "https://github.com/yourusername/python-learning-repo"
60+
Documentation = "https://github.com/yourusername/python-learning-repo#readme"
61+
Repository = "https://github.com/yourusername/python-learning-repo"
62+
Issues = "https://github.com/yourusername/python-learning-repo/issues"
63+
64+
[project.scripts]
65+
python-learn = "quick_start:main"
66+
67+
[tool.setuptools.packages.find]
68+
exclude = ["tests*", "examples*"]
69+
70+
[tool.setuptools.package-data]
71+
"*" = ["*.md", "*.txt", "*.py"]
72+
73+
[tool.black]
74+
line-length = 88
75+
target-version = ['py39', 'py310', 'py311', 'py312']
76+
include = '\.pyi?$'
77+
exclude = '''
78+
/(
79+
\.git
80+
| \.hg
81+
| \.mypy_cache
82+
| \.tox
83+
| \.venv
84+
| _build
85+
| buck-out
86+
| build
87+
| dist
88+
)/
89+
'''
90+
91+
[tool.mypy]
92+
python_version = "3.9"
93+
warn_return_any = true
94+
warn_unused_configs = true
95+
ignore_missing_imports = true
96+
97+
[tool.pytest.ini_options]
98+
testpaths = ["tests"]
99+
python_files = ["test_*.py"]
100+
addopts = "-v --cov=. --cov-report=term-missing"
101+
102+
[tool.coverage.run]
103+
source = ["."]
104+
omit = [
105+
"*/tests/*",
106+
"*/__pycache__/*",
107+
"*/site-packages/*",
108+
]
109+
110+
[tool.isort]
111+
profile = "black"
112+
line_length = 88
113+
multi_line_output = 3
114+
include_trailing_comma = true
115+
force_grid_wrap = 0
116+
use_parentheses = true
117+
ensure_newline_before_comments = true

0 commit comments

Comments
 (0)