apexdevkit 1.27.1__tar.gz → 1.27.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/PKG-INFO +3 -1
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/service.py +7 -3
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/tasks/__init__.py +2 -2
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/tasks/shell.py +29 -1
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pyproject.toml +5 -3
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/LICENSE +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/README.md +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/date.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/environment.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/error.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/name.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/resource.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fluent.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/formatter.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/httpx/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/httpx/client.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/httpx/hooks.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/id.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/key_fn.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/query/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/query/generator.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/query/query.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/base.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/connector.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/decorator.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/mssql.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/repository.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/sql.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/sqlite.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/server.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/synchronization.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/fake.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/rest.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/value.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/__init__.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/cli.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/reporters.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/tasks/result.py +0 -0
- {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/tasks/update.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apexdevkit
|
|
3
|
-
Version: 1.27.
|
|
3
|
+
Version: 1.27.2
|
|
4
4
|
Summary: Apex Development Tools for python.
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Apex Dev
|
|
@@ -16,6 +16,8 @@ Requires-Dist: httpx
|
|
|
16
16
|
Requires-Dist: pymssql (==2.3.2)
|
|
17
17
|
Requires-Dist: python-dotenv
|
|
18
18
|
Requires-Dist: sentry-sdk[fastapi]
|
|
19
|
+
Requires-Dist: tomlkit
|
|
20
|
+
Requires-Dist: typer
|
|
19
21
|
Requires-Dist: uvicorn
|
|
20
22
|
Description-Content-Type: text/markdown
|
|
21
23
|
|
|
@@ -2,7 +2,8 @@ from dataclasses import dataclass
|
|
|
2
2
|
from pathlib import Path
|
|
3
3
|
|
|
4
4
|
from pycodex.reporters import Reporter
|
|
5
|
-
from pycodex.tasks import RunMypy,
|
|
5
|
+
from pycodex.tasks import RunMypy, RunRuffCheck, SyncToml
|
|
6
|
+
from pycodex.tasks.shell import RunPoetryCheck, RunRuffFormat
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
@dataclass(frozen=True)
|
|
@@ -17,11 +18,14 @@ class PyCodex:
|
|
|
17
18
|
|
|
18
19
|
def lint(self) -> int:
|
|
19
20
|
return self.reporter.report(
|
|
20
|
-
|
|
21
|
+
poetry=RunPoetryCheck(on=self.target).run(),
|
|
22
|
+
black=RunRuffFormat(on=self.target, check=True).run(),
|
|
23
|
+
ruff=RunRuffCheck(on=self.target).run(),
|
|
21
24
|
mypy=RunMypy(on=self.target).run(),
|
|
22
25
|
)
|
|
23
26
|
|
|
24
27
|
def fix(self, unsafe: bool = False) -> int:
|
|
25
28
|
return self.reporter.report(
|
|
26
|
-
|
|
29
|
+
black=RunRuffFormat(on=self.target).run(),
|
|
30
|
+
ruff=RunRuffCheck(on=self.target, fix=True, unsafe=unsafe).run(),
|
|
27
31
|
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from pycodex.tasks.result import TaskResult
|
|
2
|
-
from pycodex.tasks.shell import RunMypy,
|
|
2
|
+
from pycodex.tasks.shell import RunMypy, RunRuffCheck
|
|
3
3
|
from pycodex.tasks.update import SyncToml
|
|
4
4
|
|
|
5
5
|
__all__ = [
|
|
6
6
|
"TaskResult",
|
|
7
7
|
"RunMypy",
|
|
8
|
-
"
|
|
8
|
+
"RunRuffCheck",
|
|
9
9
|
"SyncToml",
|
|
10
10
|
]
|
|
@@ -29,7 +29,7 @@ class ShellTask(ABC):
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
@dataclass(frozen=True)
|
|
32
|
-
class
|
|
32
|
+
class RunRuffCheck(ShellTask):
|
|
33
33
|
on: Path
|
|
34
34
|
|
|
35
35
|
fix: bool = False
|
|
@@ -48,6 +48,22 @@ class RunRuff(ShellTask):
|
|
|
48
48
|
yield "--unsafe-fixes"
|
|
49
49
|
|
|
50
50
|
|
|
51
|
+
@dataclass(frozen=True)
|
|
52
|
+
class RunRuffFormat(ShellTask):
|
|
53
|
+
on: Path
|
|
54
|
+
|
|
55
|
+
check: bool = False
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def _command(self) -> Iterable[str]:
|
|
59
|
+
yield "ruff"
|
|
60
|
+
yield "format"
|
|
61
|
+
yield str(self.on)
|
|
62
|
+
|
|
63
|
+
if self.check:
|
|
64
|
+
yield "--check"
|
|
65
|
+
|
|
66
|
+
|
|
51
67
|
@dataclass(frozen=True)
|
|
52
68
|
class RunMypy(ShellTask):
|
|
53
69
|
on: Path
|
|
@@ -56,3 +72,15 @@ class RunMypy(ShellTask):
|
|
|
56
72
|
def _command(self) -> Iterable[str]:
|
|
57
73
|
yield "mypy"
|
|
58
74
|
yield str(self.on)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@dataclass(frozen=True)
|
|
78
|
+
class RunPoetryCheck(ShellTask):
|
|
79
|
+
on: Path
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def _command(self) -> Iterable[str]:
|
|
83
|
+
yield "poetry"
|
|
84
|
+
yield "check"
|
|
85
|
+
yield "--strict"
|
|
86
|
+
yield f"--project={self.on}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "apexdevkit"
|
|
3
|
-
version = "1.27.
|
|
3
|
+
version = "1.27.2"
|
|
4
4
|
description = "Apex Development Tools for python."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -10,7 +10,7 @@ dynamic = ["dependencies"]
|
|
|
10
10
|
requires-python = ">=3.11"
|
|
11
11
|
|
|
12
12
|
[project.scripts]
|
|
13
|
-
|
|
13
|
+
codex = "pycodex.cli:cli"
|
|
14
14
|
|
|
15
15
|
[tool.poetry]
|
|
16
16
|
packages = [
|
|
@@ -25,9 +25,11 @@ uvicorn = "*"
|
|
|
25
25
|
sentry-sdk = { extras = ["fastapi"], version = "*" }
|
|
26
26
|
python-dotenv = "*"
|
|
27
27
|
pymssql = "2.3.2"
|
|
28
|
+
typer = "*"
|
|
29
|
+
tomlkit = "*"
|
|
28
30
|
|
|
29
31
|
[tool.poetry.group.dev.dependencies]
|
|
30
|
-
approvaltests = "
|
|
32
|
+
approvaltests = "*"
|
|
31
33
|
pytest = "*"
|
|
32
34
|
pytest-approvaltests = "*"
|
|
33
35
|
pytest-cov = "*"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|