Skip to content

Commit 0882a34

Browse files
committed
modify pyproject.toml and remove other config files
1 parent c68600a commit 0882a34

File tree

1 file changed

+72
-21
lines changed

1 file changed

+72
-21
lines changed

pyproject.toml

Lines changed: 72 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,78 @@
1-
[build-system]
2-
requires = ["poetry-core"]
3-
build-backend = "poetry.core.masonry.api"
4-
51
[project]
62
name = "eventsourcingdb"
73
version = "1.1.0"
84
description = "The official Python client SDK for EventSourcingDB."
9-
authors = [
10-
{ name = "the native web GmbH", email = "[email protected]" }
11-
]
5+
authors = [{ name = "the native web GmbH", email = "[email protected]" }]
6+
requires-python = "~=3.11"
127
readme = "README.md"
138
license = "MIT"
14-
packages = [{include = "eventsourcingdb"}]
15-
16-
[tool.poetry.dependencies]
17-
python = "^3.11"
18-
aiohttp = "3.12.9"
19-
testcontainers = "4.10.0"
20-
21-
[tool.poetry.group.dev.dependencies]
22-
pytest = "8.3.5"
23-
flask = "3.1.1"
24-
pylint = "3.3.7"
25-
autopep8 = "2.3.2"
26-
pytest-timeout = "2.4.0"
27-
pytest-asyncio = "0.26.0"
9+
dependencies = [
10+
"aiohttp==3.12.9",
11+
"testcontainers==4.10.0",
12+
]
13+
14+
[dependency-groups]
15+
dev = [
16+
"pytest==8.3.5",
17+
"pytest-timeout==2.4.0",
18+
"pytest-asyncio==0.26.0",
19+
"ruff==0.11.13",
20+
]
21+
22+
[build-system]
23+
requires = ["hatchling"]
24+
build-backend = "hatchling.build"
25+
26+
# Former pytest.ini
27+
[tool.pytest.ini_options]
28+
timeout = 30
29+
asyncio_default_fixture_loop_scope = "function"
30+
31+
# Remove the Pylint configuration and replace with Ruff configuration
32+
[tool.ruff]
33+
# Enable Pylint (`PL`) and many other linters
34+
select = ["E", "F", "B", "I", "N", "UP", "PL", "PT", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "INP", "PIE", "T20", "PYI", "RSE", "SLF", "SIM", "TCH", "INT", "ARG", "PTH", "PD", "PGH", "RUF"]
35+
ignore = []
36+
line-length = 100
37+
38+
# Like Pylint's disable
39+
[tool.ruff.lint]
40+
ignore = [
41+
# Equivalent to Pylint's missing-module-docstring
42+
"D100",
43+
# Equivalent to missing-class-docstring
44+
"D101",
45+
# Equivalent to missing-function-docstring
46+
"D102",
47+
# Equivalent to too-few-public-methods
48+
"PLR0903",
49+
# Equivalent to too-many-instance-attributes
50+
"PLR0913",
51+
# Equivalent to too-many-arguments
52+
"PLR0917",
53+
# Equivalent to duplicate-code
54+
"PLR0801",
55+
# Equivalent to too-many-branches
56+
"PLR0912"
57+
]
58+
59+
# Equivalent to include-naming-hint
60+
[tool.ruff.lint.pep8-naming]
61+
ignore-names = []
62+
63+
# Maintain existing format settings
64+
[tool.ruff.format]
65+
indent-style = "space"
66+
indent-size = 4
67+
line-ending = "lf"
68+
quote-style = "double"
69+
70+
# For Markdown files
71+
[[tool.ruff.format.file-pattern]]
72+
pattern = "*.md"
73+
indent-style = "space"
74+
indent-size = 2
75+
76+
# Additional check to generate an .editorconfig file based on pyproject.toml settings
77+
[tool.editorconfig]
78+
generate = true

0 commit comments

Comments
 (0)