Skip to content

Commit 675f34f

Browse files
committed
chore: update dependencies and configuration
* Updated `httpx` version constraint in `pyproject.toml` to `>=0.27.2`. * Organized dependencies in `requirements.txt` for clarity. * Removed redundant configuration from `setup.cfg`. * Added `ruff` and `mypy` configurations for improved linting and type checking.
1 parent 023d1d7 commit 675f34f

3 files changed

Lines changed: 47 additions & 22 deletions

File tree

pyproject.toml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,16 @@ dependencies = [
2929
"uvicorn[standard]>=0.30.6",
3030
"uvicorn-worker>=0.2.0",
3131
"python-multipart>=0.0.10",
32-
"httpx~=0.27.2",
32+
"httpx>=0.27.2",
33+
]
34+
35+
[project.optional-dependencies]
36+
django = ["django>=5.1.1"]
37+
dev = [
38+
"pytest>=8.3.3",
39+
"pytest-asyncio>=0.24.0",
40+
"pytest-cov>=6.0.0",
41+
"ruff>=0.1.0",
3342
]
3443

3544
[project.urls]
@@ -39,4 +48,28 @@ Repository = "https://github.com/Msameim181/Python-Logging-Best-Practice.git"
3948
Issues = "https://github.com/Msameim181/Python-Logging-Best-Practice/issues"
4049

4150
[tool.hatch.build.targets.wheel]
42-
packages = ["src/chromatrace"]
51+
packages = ["src/chromatrace"]
52+
53+
[tool.ruff]
54+
line-length = 100
55+
target-version = "py310"
56+
57+
[tool.ruff.lint]
58+
select = [
59+
"E", # pycodestyle errors
60+
"W", # pycodestyle warnings
61+
"F", # pyflakes
62+
"I", # isort
63+
"C", # flake8-comprehensions
64+
"B", # flake8-bugbear
65+
]
66+
ignore = ["E501"] # line length
67+
68+
[tool.ruff.lint.per-file-ignores]
69+
"__init__.py" = ["F401"]
70+
71+
[tool.mypy]
72+
python_version = "3.10"
73+
warn_return_any = true
74+
warn_unused_configs = true
75+
disallow_untyped_defs = true

requirements.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
django>=5.1.1
1+
# Core dependencies
22
lagom>=2.6.0
33
pydantic>=2.9.2
44
fastapi>=0.100.0
55
python-socketio>=5.12.1
66
python-socketio[client]>=5.12.1
7-
pytest>=8.3.3
8-
pytest-asyncio>=0.24.0
9-
pytest-cov>=6.0.0
107
uvicorn[standard]>=0.30.6
118
uvicorn-worker>=0.2.0
129
python-multipart>=0.0.10
13-
httpx>=0.27.2
10+
httpx>=0.27.2
11+
12+
# Optional: Django integration
13+
django>=5.1.1
14+
15+
# Development dependencies
16+
pytest>=8.3.3
17+
pytest-asyncio>=0.24.0
18+
pytest-cov>=6.0.0
19+
ruff>=0.1.0

setup.cfg

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
[metadata]
22
license_files = LICENSE
33
name = chromatrace
4-
description = Advanced logging for Python
5-
6-
[tool.ruff]
7-
line-length = 100
8-
target-version = "py37"
9-
ignore = ["E501"] # line length
10-
11-
[tool.ruff.per-file-ignores]
12-
"__init__.py" = ["F401"]
13-
14-
[mypy]
15-
python_version = 3.10
16-
warn_return_any = True
17-
warn_unused_configs = True
18-
disallow_untyped_defs = True
4+
description = Advanced logging for Python

0 commit comments

Comments
 (0)