qodev-gitlab-cli 0.1.0__tar.gz → 0.1.1__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 (36) hide show
  1. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/.github/workflows/ci.yml +8 -0
  2. qodev_gitlab_cli-0.1.1/.github/workflows/publish.yml +45 -0
  3. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/PKG-INFO +2 -1
  4. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/pyproject.toml +22 -2
  5. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/mrs.py +1 -1
  6. qodev_gitlab_cli-0.1.0/.github/workflows/publish.yml +0 -16
  7. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/.gitignore +0 -0
  8. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/__init__.py +0 -0
  9. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/__main__.py +0 -0
  10. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/app.py +0 -0
  11. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/__init__.py +0 -0
  12. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/issues.py +0 -0
  13. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/jobs.py +0 -0
  14. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/pipelines.py +0 -0
  15. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/projects.py +0 -0
  16. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/releases.py +0 -0
  17. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/commands/variables.py +0 -0
  18. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/context.py +0 -0
  19. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/__init__.py +0 -0
  20. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/generic.py +0 -0
  21. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/issues.py +0 -0
  22. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/jobs.py +0 -0
  23. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/mrs.py +0 -0
  24. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/pipelines.py +0 -0
  25. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/projects.py +0 -0
  26. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/releases.py +0 -0
  27. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/formatters/variables.py +0 -0
  28. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/output.py +0 -0
  29. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/src/qodev_gitlab_cli/project.py +0 -0
  30. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/tests/__init__.py +0 -0
  31. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/tests/conftest.py +0 -0
  32. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/tests/test_commands.py +0 -0
  33. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/tests/test_context.py +0 -0
  34. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/tests/test_formatters.py +0 -0
  35. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/tests/test_output.py +0 -0
  36. {qodev_gitlab_cli-0.1.0 → qodev_gitlab_cli-0.1.1}/tests/test_project.py +0 -0
@@ -17,6 +17,14 @@ jobs:
17
17
  - run: uv run ruff check .
18
18
  - run: uv run ruff format --check .
19
19
 
20
+ typecheck:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: astral-sh/setup-uv@v4
25
+ - run: uv sync --all-extras
26
+ - run: uv run mypy src/qodev_gitlab_cli/
27
+
20
28
  test:
21
29
  runs-on: ubuntu-latest
22
30
  steps:
@@ -0,0 +1,45 @@
1
+ name: Publish to PyPI
2
+ on:
3
+ push:
4
+ tags: ["v*"]
5
+
6
+ env:
7
+ UV_NO_SOURCES: "1"
8
+
9
+ jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: astral-sh/setup-uv@v4
15
+ - run: uv sync --all-extras
16
+ - run: uv run ruff check .
17
+ - run: uv run ruff format --check .
18
+
19
+ typecheck:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - uses: astral-sh/setup-uv@v4
24
+ - run: uv sync --all-extras
25
+ - run: uv run mypy src/qodev_gitlab_cli/
26
+
27
+ test:
28
+ runs-on: ubuntu-latest
29
+ steps:
30
+ - uses: actions/checkout@v4
31
+ - uses: astral-sh/setup-uv@v4
32
+ - run: uv sync --all-extras
33
+ - run: uv run pytest -v
34
+
35
+ publish:
36
+ needs: [lint, typecheck, test]
37
+ runs-on: ubuntu-latest
38
+ environment: pypi
39
+ permissions:
40
+ id-token: write
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ - uses: astral-sh/setup-uv@v4
44
+ - run: uv build
45
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qodev-gitlab-cli
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Agent-friendly CLI for the GitLab API
5
5
  Project-URL: Homepage, https://github.com/qodevai/gitlab-cli
6
6
  Project-URL: Repository, https://github.com/qodevai/gitlab-cli
@@ -9,6 +9,7 @@ Requires-Dist: cyclopts>=3.0
9
9
  Requires-Dist: qodev-gitlab-api>=0.1.0
10
10
  Requires-Dist: rich>=13.0
11
11
  Provides-Extra: dev
12
+ Requires-Dist: mypy>=1.13.0; extra == 'dev'
12
13
  Requires-Dist: pytest-mock>=3.15; extra == 'dev'
13
14
  Requires-Dist: pytest>=9.0; extra == 'dev'
14
15
  Requires-Dist: ruff>=0.15; extra == 'dev'
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qodev-gitlab-cli"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "Agent-friendly CLI for the GitLab API"
5
5
  requires-python = ">=3.11"
6
6
  dependencies = [
@@ -10,7 +10,7 @@ dependencies = [
10
10
  ]
11
11
 
12
12
  [project.optional-dependencies]
13
- dev = ["pytest>=9.0", "pytest-mock>=3.15", "ruff>=0.15"]
13
+ dev = ["pytest>=9.0", "pytest-mock>=3.15", "ruff>=0.15", "mypy>=1.13.0"]
14
14
 
15
15
  [project.scripts]
16
16
  qodev-gitlab = "qodev_gitlab_cli.app:main"
@@ -40,6 +40,26 @@ ignore = ["E501"]
40
40
  [tool.ruff.lint.isort]
41
41
  known-first-party = ["qodev_gitlab_cli"]
42
42
 
43
+ [tool.mypy]
44
+ python_version = "3.11"
45
+ warn_return_any = false
46
+ warn_unused_configs = true
47
+ disallow_untyped_defs = false
48
+ no_implicit_optional = true
49
+ warn_redundant_casts = true
50
+ warn_unused_ignores = true
51
+ warn_no_return = true
52
+ check_untyped_defs = true
53
+ strict_optional = true
54
+
55
+ [[tool.mypy.overrides]]
56
+ module = "qodev_gitlab_api.*"
57
+ ignore_missing_imports = true
58
+
59
+ [[tool.mypy.overrides]]
60
+ module = "cyclopts.*"
61
+ ignore_missing_imports = true
62
+
43
63
  [tool.pytest.ini_options]
44
64
  testpaths = ["tests"]
45
65
 
@@ -67,7 +67,7 @@ def create(
67
67
 
68
68
  result = client.create_merge_request(
69
69
  project,
70
- source_branch=source, # type: ignore[arg-type]
70
+ source_branch=source,
71
71
  target_branch=target,
72
72
  title=title,
73
73
  description=description,
@@ -1,16 +0,0 @@
1
- name: Publish to PyPI
2
- on:
3
- push:
4
- tags: ["v*"]
5
-
6
- jobs:
7
- publish:
8
- runs-on: ubuntu-latest
9
- environment: pypi
10
- permissions:
11
- id-token: write
12
- steps:
13
- - uses: actions/checkout@v4
14
- - uses: astral-sh/setup-uv@v4
15
- - run: uv build
16
- - uses: pypa/gh-action-pypi-publish@release/v1