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.
Files changed (62) hide show
  1. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/PKG-INFO +3 -1
  2. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/service.py +7 -3
  3. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/tasks/__init__.py +2 -2
  4. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/tasks/shell.py +29 -1
  5. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pyproject.toml +5 -3
  6. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/LICENSE +0 -0
  7. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/README.md +0 -0
  8. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/__init__.py +0 -0
  9. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/annotation/__init__.py +0 -0
  10. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/annotation/deprecate.py +0 -0
  11. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/date.py +0 -0
  12. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/environment.py +0 -0
  13. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/error.py +0 -0
  14. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/__init__.py +0 -0
  15. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/builder.py +0 -0
  16. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/dependable.py +0 -0
  17. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/docs.py +0 -0
  18. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/name.py +0 -0
  19. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/resource.py +0 -0
  20. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/response.py +0 -0
  21. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/router.py +0 -0
  22. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/schema.py +0 -0
  23. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fastapi/service.py +0 -0
  24. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/fluent.py +0 -0
  25. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/formatter.py +0 -0
  26. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/__init__.py +0 -0
  27. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/fake.py +0 -0
  28. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/fluent.py +0 -0
  29. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/httpx/__init__.py +0 -0
  30. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/httpx/client.py +0 -0
  31. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/httpx/hooks.py +0 -0
  32. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/json.py +0 -0
  33. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/http/url.py +0 -0
  34. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/id.py +0 -0
  35. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/key_fn.py +0 -0
  36. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/py.typed +0 -0
  37. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/query/__init__.py +0 -0
  38. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/query/generator.py +0 -0
  39. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/query/query.py +0 -0
  40. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/__init__.py +0 -0
  41. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/base.py +0 -0
  42. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/connector.py +0 -0
  43. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/database.py +0 -0
  44. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/decorator.py +0 -0
  45. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/in_memory.py +0 -0
  46. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/interface.py +0 -0
  47. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/mssql.py +0 -0
  48. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/repository.py +0 -0
  49. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/sql.py +0 -0
  50. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/repository/sqlite.py +0 -0
  51. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/server.py +0 -0
  52. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/synchronization.py +0 -0
  53. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/__init__.py +0 -0
  54. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/database.py +0 -0
  55. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/fake.py +0 -0
  56. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/testing/rest.py +0 -0
  57. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/apexdevkit/value.py +0 -0
  58. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/__init__.py +0 -0
  59. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/cli.py +0 -0
  60. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/reporters.py +0 -0
  61. {apexdevkit-1.27.1 → apexdevkit-1.27.2}/pycodex/tasks/result.py +0 -0
  62. {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.1
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, RunRuff, SyncToml
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
- ruff=RunRuff(on=self.target).run(),
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
- ruff=RunRuff(on=self.target, fix=True, unsafe=unsafe).run()
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, RunRuff
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
- "RunRuff",
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 RunRuff(ShellTask):
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.1"
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
- pycodex = "pycodex.cli:cli"
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 = "17.3.0" # pinned because later version has a bug.
32
+ approvaltests = "*"
31
33
  pytest = "*"
32
34
  pytest-approvaltests = "*"
33
35
  pytest-cov = "*"
File without changes
File without changes
File without changes