File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
3948Issues = " 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
Original file line number Diff line number Diff line change 1- django >= 5.1.1
1+ # Core dependencies
22lagom >= 2.6.0
33pydantic >= 2.9.2
44fastapi >= 0.100.0
55python-socketio >= 5.12.1
66python-socketio [client ]>= 5.12.1
7- pytest >= 8.3.3
8- pytest-asyncio >= 0.24.0
9- pytest-cov >= 6.0.0
107uvicorn [standard ]>= 0.30.6
118uvicorn-worker >= 0.2.0
129python-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
Original file line number Diff line number Diff line change 11[metadata]
22license_files = LICENSE
33name = 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
You can’t perform that action at this time.
0 commit comments