Skip to content

Commit 1ba46d7

Browse files
committed
fix some error and writing
1 parent 2eecb02 commit 1ba46d7

File tree

2 files changed

+44
-26
lines changed

2 files changed

+44
-26
lines changed

pyproject-poetry.toml

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ repository = "https://github.com/fluent-qa/fluentqa-pdao"
88
homepage = "https://github.com/fluent-qa/fluentqa-pdao"
99

1010
# Keywords description https://python-poetry.org/docs/pyproject/#keywords
11-
keywords = ["python-dao","database access object"] #! Update me
11+
keywords = ["python-dao", "database access object"] #! Update me
1212

1313
# Pypi classifiers: https://pypi.org/classifiers/
14-
classifiers = [ #! Update me
14+
classifiers = [ #! Update me
1515
"Development Status :: 3 - Alpha",
1616
"Intended Audience :: Developers",
1717
"Operating System :: OS Independent",
1818
"Topic :: Software Development :: Libraries :: Python Modules",
1919
"Programming Language :: Python :: 3",
2020
]
21-
packages = [
22-
{ include = "qpydao", from="src"},
23-
]
21+
packages = [{ include = "qpydao", from = "src" }]
2422

2523
[tool.poetry.dependencies]
26-
python=">=3.9,<3.12"
24+
python = ">=3.9,<3.12"
2725
alembic = "^1.10.4"
28-
qpystructs = { path = "../fluent-structs", develop = true }
26+
qpystructs = { path = "../qpystructs", develop = true }
2927
sqlalchemy = "^2.0.23"
3028
sqlmodel = "^0.0.14"
3129
psycopg2-binary = "^2.9.9"
@@ -34,7 +32,7 @@ psycopg2-binary = "^2.9.9"
3432
pytest = "^7.4.0"
3533
allure-pytest = "^2.10.0"
3634
pre-commit = "^3.3.2"
37-
isort = {extras = ["colors"], version = "^5.11.4"}
35+
isort = { extras = ["colors"], version = "^5.11.4" }
3836
darglint = "^1.8.1"
3937
pytest-html = "^4.0.2"
4038
coverage = "^7.2.7"
@@ -44,7 +42,7 @@ pytest-cov = "^4.1.0"
4442

4543
[tool.black]
4644
# https://github.com/psf/black
47-
target-version = ["py310","py311","py312"]
45+
target-version = ["py310", "py311", "py312"]
4846
line-length = 88
4947
color = true
5048

@@ -68,8 +66,21 @@ exclude = '''
6866
# https://github.com/timothycrosley/isort/
6967
py_version = 310
7068
line_length = 88
71-
known_typing = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
72-
sections = ["FUTURE", "TYPING", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
69+
known_typing = [
70+
"typing",
71+
"types",
72+
"typing_extensions",
73+
"mypy",
74+
"mypy_extensions",
75+
]
76+
sections = [
77+
"FUTURE",
78+
"TYPING",
79+
"STDLIB",
80+
"THIRDPARTY",
81+
"FIRSTPARTY",
82+
"LOCALFOLDER",
83+
]
7384
include_trailing_comma = true
7485
profile = "black"
7586
multi_line_output = 3
@@ -85,8 +96,22 @@ extend_skip = ["setup.py"]
8596
[tool.pytest.ini_options]
8697
# https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml
8798
# Directories that are not visited by pytest collector:
88-
norecursedirs =["hooks", "*.egg", ".eggs", "dist", "build", "docs", ".tox", ".git", "__pycache__"]
89-
doctest_optionflags = ["NUMBER", "NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
99+
norecursedirs = [
100+
"hooks",
101+
"*.egg",
102+
".eggs",
103+
"dist",
104+
"build",
105+
"docs",
106+
".tox",
107+
".git",
108+
"__pycache__",
109+
]
110+
doctest_optionflags = [
111+
"NUMBER",
112+
"NORMALIZE_WHITESPACE",
113+
"IGNORE_EXCEPTION_DETAIL",
114+
]
90115

91116
# Extra options:
92117
addopts = [
@@ -113,4 +138,3 @@ show_missing = true
113138
[build-system]
114139
requires = ["poetry_core>=1.0.0"]
115140
build-backend = "poetry.core.masonry.api"
116-

pyproject.toml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,21 @@ build-backend = "pdm.backend"
1010
authors = [{ name = "fluentqa-team", email = "[email protected]" }]
1111
classifiers = [
1212
"Development Status :: 3 - Alpha",
13-
"License :: OSI Approved :: MIT License",
1413
"Operating System :: OS Independent",
1514
"Programming Language :: Python :: 3.10",
1615
"Programming Language :: Python :: 3.11",
1716
"Programming Language :: Python :: 3.12",
18-
"Programming Language :: Python :: 3.8",
19-
"Programming Language :: Python :: 3.9",
2017
]
2118
description = "A Simple Database Access Object Lib"
2219
dynamic = ["version"]
23-
keywords = [
24-
"copier-template",
25-
"full-development-lifecycle",
26-
"project-template",
27-
"scaffold",
28-
]
20+
keywords = ["python database access object lib", "decorator", "repository"]
2921
license = { text = "UNDEFINED" }
3022
name = "qpydao"
3123
readme = "README.md"
3224
requires-python = ">=3.11"
3325
dependencies = [
3426
# "pydantic-settings",
3527
# "typer[all]",
36-
"dynaconf>=3.2.5",
3728
"pydantic>=2.7.4",
3829
"alembic>=1.13.1",
3930
"sqlalchemy>=2.0.30",
@@ -45,7 +36,6 @@ dependencies = [
4536
"ruff>=0.7.2",
4637
]
4738

48-
4939
[project.urls]
5040
issue = "https://github.com/fluent-qa/qpydao/issues"
5141
repository = "https://github.com/fluent-qa/qpydao"
@@ -60,9 +50,10 @@ minversion = "6.0"
6050
cov = "qpydao"
6151
cov-report = "html"
6252

53+
[tool.coverage]
6354

6455
[tool.coverage.report]
65-
fail_under = 100
56+
fail_under = 80
6657

6758
[tool.coverage.run]
6859
source = ["src/qpydao"]
@@ -101,13 +92,16 @@ trailing_comma_inline_array = true
10192

10293
[tool.pdm]
10394
distribution = true
95+
10496
[tool.pdm.scripts]
10597
lint = "ruff check --fix --unsafe-fixes"
10698
fmt = "ruff format . --check"
10799
test = "pytest "
108100
docs = "mkdocs serve"
109101
docs-deploy = "mkdocs gh-deploy --force"
110102
cleanup = "sh scripts/cleanup.sh"
103+
purge = "sh scripts/cleanup.sh && rm -rf .venv"
104+
clean_install = "rm -rf .venv && pdm install"
111105

112106
[tool.pdm.dev-dependencies]
113107
docs = ["mkdocs-material>=9.5.27", "mkdocs>=1.6.0"]

0 commit comments

Comments
 (0)