@@ -4,6 +4,25 @@ version = "0.1.0"
44description = " "
55authors = [
" chandr-andr (Kiselev Aleksandr) <[email protected] >" ]
66readme = " README.md"
7+ repository = " https://github.com/psqlpy-python/otlp-psqlpy"
8+ homepage = " https://github.com/psqlpy-python"
9+ documentation = " https://psqlpy-python.github.io/"
10+ license = " LICENSE"
11+ classifiers = [
12+ " Typing :: Typed" ,
13+ " Programming Language :: Python" ,
14+ " Programming Language :: Python :: 3" ,
15+ " Programming Language :: Python :: 3 :: Only" ,
16+ " Programming Language :: Python :: 3.8" ,
17+ " Programming Language :: Python :: 3.9" ,
18+ " Programming Language :: Python :: 3.10" ,
19+ " Programming Language :: Python :: 3.11" ,
20+ " Operating System :: OS Independent" ,
21+ " Intended Audience :: Developers" ,
22+ " Topic :: System :: Networking" ,
23+ " Development Status :: 3 - Alpha" ,
24+ ]
25+ keywords = [" psqlpy" , " postgres" , " async" ]
726
827[tool .poetry .dependencies ]
928python = " ^3.9"
@@ -18,6 +37,104 @@ black = "^25.1.0"
1837ruff = " ^0.9.5"
1938mypy = " ^1.15.0"
2039
40+ [tool .mypy ]
41+ strict = true
42+ ignore_missing_imports = true
43+ allow_subclassing_any = true
44+ allow_untyped_calls = true
45+ pretty = true
46+ show_error_codes = true
47+ implicit_reexport = true
48+ allow_untyped_decorators = true
49+ warn_return_any = false
50+ warn_unused_ignores = false
51+
52+ [tool .isort ]
53+ profile = " black"
54+ multi_line_output = 3
55+
56+ [tool .pytest .ini_options ]
57+ log_level = ' INFO'
58+
59+ [tool .coverage .run ]
60+ omit = [
61+ " taskiq/__main__.py" ,
62+ " taskiq/abc/cmd.py" ,
63+ " taskiq/cli/scheduler/args.py" ,
64+ " taskiq/cli/scheduler/cmd.py" ,
65+ " taskiq/cli/utils.py" ,
66+ " taskiq/cli/worker/args.py" ,
67+ " taskiq/cli/worker/async_task_runner.py" ,
68+ " taskiq/cli/worker/cmd.py" ,
69+ ]
70+
2171[build-system ]
22- requires = [" poetry-core" ]
72+ requires = [" poetry-core>=1.0.0 " ]
2373build-backend = " poetry.core.masonry.api"
74+
75+ [tool .ruff ]
76+ # List of enabled rulsets.
77+ # See https://docs.astral.sh/ruff/rules/ for more information.
78+ lint.select = [
79+ " E" , # Error
80+ " F" , # Pyflakes
81+ " W" , # Pycodestyle
82+ " C90" , # McCabe complexity
83+ " I" , # Isort
84+ " N" , # pep8-naming
85+ " D" , # Pydocstyle
86+ " ANN" , # Pytype annotations
87+ " S" , # Bandit
88+ " B" , # Bugbear
89+ " COM" , # Commas
90+ " C4" , # Comprehensions
91+ " ISC" , # Implicit string concat
92+ " PIE" , # Unnecessary code
93+ " T20" , # Catch prints
94+ " PYI" , # validate pyi files
95+ " Q" , # Checks for quotes
96+ " RSE" , # Checks raise statements
97+ " RET" , # Checks return statements
98+ " SLF" , # Self checks
99+ " SIM" , # Simplificator
100+ " PTH" , # Pathlib checks
101+ " ERA" , # Checks for commented out code
102+ " PL" , # PyLint checks
103+ " RUF" , # Specific to Ruff checks
104+ ]
105+ lint.ignore = [
106+ " D105" , # Missing docstring in magic method
107+ " D107" , # Missing docstring in __init__
108+ " D212" , # Multi-line docstring summary should start at the first line
109+ " D401" , # First line should be in imperative mood
110+ " D104" , # Missing docstring in public package
111+ " D100" , # Missing docstring in public module
112+ " ANN102" , # Missing type annotation for self in method
113+ " ANN101" , # Missing type annotation for argument
114+ " ANN401" , # typing.Any are disallowed in `**kwargs
115+ " PLR0913" , # Too many arguments for function call
116+ " D106" , # Missing docstring in public nested class
117+ ]
118+ exclude = [" .venv/" ]
119+ lint.mccabe = { max-complexity = 10 }
120+ line-length = 88
121+
122+ [tool .ruff .lint .per-file-ignores ]
123+ "tests/*" = [
124+ " S101" , # Use of assert detected
125+ " S301" , # Use of pickle detected
126+ " D103" , # Missing docstring in public function
127+ " SLF001" , # Private member accessed
128+ " S311" , # Standard pseudo-random generators are not suitable for security/cryptographic purposes
129+ " D101" , # Missing docstring in public class
130+ ]
131+
132+ [tool .ruff .lint .pydocstyle ]
133+ convention = " pep257"
134+ ignore-decorators = [" typing.overload" ]
135+
136+ [tool .ruff .lint .pylint ]
137+ allow-magic-value-types = [" int" , " str" , " float" ]
138+
139+ [tool .ruff .lint .flake8-bugbear ]
140+ extend-immutable-calls = [" taskiq_dependencies.Depends" , " taskiq.TaskiqDepends" ]
0 commit comments