pyrig-private 0.1.0__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.
- pyrig_private-0.1.0/LICENSE +21 -0
- pyrig_private-0.1.0/PKG-INFO +98 -0
- pyrig_private-0.1.0/README.md +71 -0
- pyrig_private-0.1.0/pyproject.toml +108 -0
- pyrig_private-0.1.0/pyproject.toml.orig +124 -0
- pyrig_private-0.1.0/src/pyrig_private/__init__.py +1 -0
- pyrig_private-0.1.0/src/pyrig_private/py.typed +0 -0
- pyrig_private-0.1.0/src/pyrig_private/rig/__init__.py +1 -0
- pyrig_private-0.1.0/src/pyrig_private/rig/configs/__init__.py +1 -0
- pyrig_private-0.1.0/src/pyrig_private/rig/configs/version_control/__init__.py +1 -0
- pyrig_private-0.1.0/src/pyrig_private/rig/configs/version_control/remote/__init__.py +1 -0
- pyrig_private-0.1.0/src/pyrig_private/rig/configs/version_control/remote/settings.py +25 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Winipedia
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyrig-private
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A pyrig plugin for private repository functionality.
|
|
5
|
+
Keywords: pyrig
|
|
6
|
+
Author: Winipedia
|
|
7
|
+
Author-email: Winipedia <winipedia@gmx.de>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Typing :: Typed
|
|
16
|
+
Requires-Dist: pyrig>=18.94.5
|
|
17
|
+
Requires-Dist: pyrig-runtime>=3.24.2
|
|
18
|
+
Maintainer: Winipedia
|
|
19
|
+
Maintainer-email: Winipedia <winipedia@gmx.de>
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Project-URL: Changelog, https://github.com/Winipedia/pyrig-private/releases
|
|
22
|
+
Project-URL: Documentation, https://Winipedia.github.io/pyrig-private
|
|
23
|
+
Project-URL: Homepage, https://github.com/Winipedia/pyrig-private
|
|
24
|
+
Project-URL: Issues, https://github.com/Winipedia/pyrig-private/issues
|
|
25
|
+
Project-URL: Source, https://github.com/Winipedia/pyrig-private
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# pyrig-private
|
|
29
|
+
|
|
30
|
+
<!-- project-status -->
|
|
31
|
+
[](https://github.com/Winipedia/pyrig-private/actions/workflows/health_check.yml)
|
|
32
|
+
[](https://github.com/Winipedia/pyrig-private/actions/workflows/release.yml)
|
|
33
|
+
[](https://codecov.io/gh/Winipedia/pyrig-private)
|
|
34
|
+
<!-- code-quality -->
|
|
35
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
36
|
+
[](https://github.com/rhysd/actionlint)
|
|
37
|
+
[](https://github.com/zizmorcore/zizmor)
|
|
38
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
39
|
+
[](https://github.com/osprey-oss/deptry)
|
|
40
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
41
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
42
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
43
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
44
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
45
|
+
[](https://github.com/rvben/rumdl)
|
|
46
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
47
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
48
|
+
[](https://github.com/astral-sh/ruff)
|
|
49
|
+
[](https://github.com/Yelp/detect-secrets)
|
|
50
|
+
[](https://github.com/PyCQA/bandit)
|
|
51
|
+
[](https://github.com/mvdan/sh)
|
|
52
|
+
[](https://github.com/koalaman/shellcheck)
|
|
53
|
+
[](https://github.com/crate-ci/typos)
|
|
54
|
+
[](https://github.com/tombi-toml/tombi)
|
|
55
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
56
|
+
[](https://github.com/astral-sh/ty)
|
|
57
|
+
[](https://github.com/owenlamont/ryl)
|
|
58
|
+
<!-- tooling -->
|
|
59
|
+
[](https://github.com/astral-sh/uv)
|
|
60
|
+
[](https://github.com/Winipedia/pyrig)
|
|
61
|
+
[](https://github.com/Winipedia/pyrig-private)
|
|
62
|
+
[](https://github.com/j178/prek)
|
|
63
|
+
[](https://git-scm.com)
|
|
64
|
+
<!-- project-info -->
|
|
65
|
+
[](https://Winipedia.github.io/pyrig-private)
|
|
66
|
+
[](https://pypi.org/project/pyrig-private)
|
|
67
|
+
[](https://www.python.org)
|
|
68
|
+
[](https://github.com/Winipedia/pyrig-private/blob/main/LICENSE)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
> A pyrig plugin for private repository functionality.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Overview
|
|
77
|
+
|
|
78
|
+
`pyrig-private` is a [pyrig](https://github.com/Winipedia/pyrig) plugin that
|
|
79
|
+
configures GitHub features for private repositories.
|
|
80
|
+
|
|
81
|
+
## What it adds
|
|
82
|
+
|
|
83
|
+
- **Private visibility** — configures the repository to be private.
|
|
84
|
+
|
|
85
|
+
## Usage
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
uv add pyrig-private --dev
|
|
89
|
+
uv run pyrig sync
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Applying the generated repository settings makes the repository private. Review
|
|
93
|
+
its contents and GitHub's visibility-change consequences before applying them.
|
|
94
|
+
|
|
95
|
+
## Documentation
|
|
96
|
+
|
|
97
|
+
See the [documentation site](https://Winipedia.github.io/pyrig-private) for
|
|
98
|
+
configuration details.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# pyrig-private
|
|
2
|
+
|
|
3
|
+
<!-- project-status -->
|
|
4
|
+
[](https://github.com/Winipedia/pyrig-private/actions/workflows/health_check.yml)
|
|
5
|
+
[](https://github.com/Winipedia/pyrig-private/actions/workflows/release.yml)
|
|
6
|
+
[](https://codecov.io/gh/Winipedia/pyrig-private)
|
|
7
|
+
<!-- code-quality -->
|
|
8
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
9
|
+
[](https://github.com/rhysd/actionlint)
|
|
10
|
+
[](https://github.com/zizmorcore/zizmor)
|
|
11
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
12
|
+
[](https://github.com/osprey-oss/deptry)
|
|
13
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
14
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
15
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
16
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
17
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
18
|
+
[](https://github.com/rvben/rumdl)
|
|
19
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
20
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
21
|
+
[](https://github.com/astral-sh/ruff)
|
|
22
|
+
[](https://github.com/Yelp/detect-secrets)
|
|
23
|
+
[](https://github.com/PyCQA/bandit)
|
|
24
|
+
[](https://github.com/mvdan/sh)
|
|
25
|
+
[](https://github.com/koalaman/shellcheck)
|
|
26
|
+
[](https://github.com/crate-ci/typos)
|
|
27
|
+
[](https://github.com/tombi-toml/tombi)
|
|
28
|
+
[](https://github.com/pre-commit/pre-commit-hooks)
|
|
29
|
+
[](https://github.com/astral-sh/ty)
|
|
30
|
+
[](https://github.com/owenlamont/ryl)
|
|
31
|
+
<!-- tooling -->
|
|
32
|
+
[](https://github.com/astral-sh/uv)
|
|
33
|
+
[](https://github.com/Winipedia/pyrig)
|
|
34
|
+
[](https://github.com/Winipedia/pyrig-private)
|
|
35
|
+
[](https://github.com/j178/prek)
|
|
36
|
+
[](https://git-scm.com)
|
|
37
|
+
<!-- project-info -->
|
|
38
|
+
[](https://Winipedia.github.io/pyrig-private)
|
|
39
|
+
[](https://pypi.org/project/pyrig-private)
|
|
40
|
+
[](https://www.python.org)
|
|
41
|
+
[](https://github.com/Winipedia/pyrig-private/blob/main/LICENSE)
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
> A pyrig plugin for private repository functionality.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Overview
|
|
50
|
+
|
|
51
|
+
`pyrig-private` is a [pyrig](https://github.com/Winipedia/pyrig) plugin that
|
|
52
|
+
configures GitHub features for private repositories.
|
|
53
|
+
|
|
54
|
+
## What it adds
|
|
55
|
+
|
|
56
|
+
- **Private visibility** — configures the repository to be private.
|
|
57
|
+
|
|
58
|
+
## Usage
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
uv add pyrig-private --dev
|
|
62
|
+
uv run pyrig sync
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Applying the generated repository settings makes the repository private. Review
|
|
66
|
+
its contents and GitHub's visibility-change consequences before applying them.
|
|
67
|
+
|
|
68
|
+
## Documentation
|
|
69
|
+
|
|
70
|
+
See the [documentation site](https://Winipedia.github.io/pyrig-private) for
|
|
71
|
+
configuration details.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pyrig-private"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "A pyrig plugin for private repository functionality."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
keywords = ["pyrig"]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Operating System :: OS Independent",
|
|
12
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
13
|
+
"Programming Language :: Python :: 3.12",
|
|
14
|
+
"Programming Language :: Python :: 3.13",
|
|
15
|
+
"Programming Language :: Python :: 3.14",
|
|
16
|
+
"Typing :: Typed",
|
|
17
|
+
]
|
|
18
|
+
dependencies = [
|
|
19
|
+
"pyrig>=18.94.5",
|
|
20
|
+
"pyrig-runtime>=3.24.2",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[[project.authors]]
|
|
24
|
+
name = "Winipedia"
|
|
25
|
+
email = "winipedia@gmx.de"
|
|
26
|
+
|
|
27
|
+
[[project.maintainers]]
|
|
28
|
+
name = "Winipedia"
|
|
29
|
+
email = "winipedia@gmx.de"
|
|
30
|
+
|
|
31
|
+
[project.urls]
|
|
32
|
+
Changelog = "https://github.com/Winipedia/pyrig-private/releases"
|
|
33
|
+
Documentation = "https://Winipedia.github.io/pyrig-private"
|
|
34
|
+
Homepage = "https://github.com/Winipedia/pyrig-private"
|
|
35
|
+
Issues = "https://github.com/Winipedia/pyrig-private/issues"
|
|
36
|
+
Source = "https://github.com/Winipedia/pyrig-private"
|
|
37
|
+
|
|
38
|
+
[project.scripts]
|
|
39
|
+
pyrig-private = "pyrig_runtime.rig.cli.main:main"
|
|
40
|
+
|
|
41
|
+
[dependency-groups]
|
|
42
|
+
dev = [
|
|
43
|
+
"actionlint-py>=1.7.12.25",
|
|
44
|
+
"bandit>=1.9.4",
|
|
45
|
+
"deptry>=0.25.1",
|
|
46
|
+
"detect-secrets>=1.5.0",
|
|
47
|
+
"mkdocstrings[python]>=1.0.6",
|
|
48
|
+
"pre-commit-hooks>=6.0.0",
|
|
49
|
+
"prek>=0.5.4",
|
|
50
|
+
"pyflakes>=4.0.1",
|
|
51
|
+
"pyrig>=18.94.2",
|
|
52
|
+
"pyrig-codecov>=3.17.45",
|
|
53
|
+
"pyrig-codeql>=1.1.10",
|
|
54
|
+
"pyrig-fixtures>=2.25.2",
|
|
55
|
+
"pyrig-pypi>=3.20.47",
|
|
56
|
+
"pytest>=9.1.1",
|
|
57
|
+
"pytest-cov>=7.1.0",
|
|
58
|
+
"pytest-randomly>=5.0.0",
|
|
59
|
+
"pytest-xdist>=3.8.0",
|
|
60
|
+
"ruff>=0.16.9",
|
|
61
|
+
"rumdl>=0.2.78",
|
|
62
|
+
"ryl>=0.22.0",
|
|
63
|
+
"shellcheck-py>=0.11.0.1",
|
|
64
|
+
"shfmt-py>=4.2.0",
|
|
65
|
+
"tombi>=1.7.0",
|
|
66
|
+
"ty>=0.0.84",
|
|
67
|
+
"typos>=1.50.3",
|
|
68
|
+
"zensical>=0.0.67",
|
|
69
|
+
"zizmor>=1.30.1",
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
[build-system]
|
|
73
|
+
requires = ["uv-build"]
|
|
74
|
+
build-backend = "uv_build"
|
|
75
|
+
|
|
76
|
+
[tool.deptry]
|
|
77
|
+
root = "src"
|
|
78
|
+
|
|
79
|
+
[tool.deptry.per_rule_ignores]
|
|
80
|
+
DEP002 = ["pyrig-runtime"]
|
|
81
|
+
|
|
82
|
+
[tool.pytest]
|
|
83
|
+
addopts = [
|
|
84
|
+
"--cov-branch",
|
|
85
|
+
"--cov-fail-under=100",
|
|
86
|
+
"--cov-report=term-missing:skip-covered",
|
|
87
|
+
"--cov-report=xml",
|
|
88
|
+
"--cov=pyrig_private",
|
|
89
|
+
"--dist=worksteal",
|
|
90
|
+
"--numprocesses=auto",
|
|
91
|
+
"--report-chars=a",
|
|
92
|
+
]
|
|
93
|
+
filterwarnings = ["error"]
|
|
94
|
+
strict = true
|
|
95
|
+
testpaths = ["tests"]
|
|
96
|
+
|
|
97
|
+
[tool.ruff.format]
|
|
98
|
+
docstring-code-format = true
|
|
99
|
+
|
|
100
|
+
[tool.ruff.lint]
|
|
101
|
+
ignore = ["CPY001"]
|
|
102
|
+
select = ["ALL"]
|
|
103
|
+
|
|
104
|
+
[tool.ruff.lint.per-file-ignores]
|
|
105
|
+
"tests/**/*.py" = ["S101"]
|
|
106
|
+
|
|
107
|
+
[tool.ruff.lint.pydocstyle]
|
|
108
|
+
convention = "google"
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pyrig-private"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "A pyrig plugin for private repository functionality."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
license-files = [
|
|
9
|
+
"LICENSE",
|
|
10
|
+
]
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Winipedia", email = "winipedia@gmx.de" },
|
|
13
|
+
]
|
|
14
|
+
maintainers = [
|
|
15
|
+
{ name = "Winipedia", email = "winipedia@gmx.de" },
|
|
16
|
+
]
|
|
17
|
+
keywords = [
|
|
18
|
+
"pyrig",
|
|
19
|
+
]
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Programming Language :: Python :: 3.14",
|
|
26
|
+
"Typing :: Typed",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"pyrig>=18.94.5",
|
|
30
|
+
"pyrig-runtime>=3.24.2",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Changelog = "https://github.com/Winipedia/pyrig-private/releases"
|
|
35
|
+
Documentation = "https://Winipedia.github.io/pyrig-private"
|
|
36
|
+
Homepage = "https://github.com/Winipedia/pyrig-private"
|
|
37
|
+
Issues = "https://github.com/Winipedia/pyrig-private/issues"
|
|
38
|
+
Source = "https://github.com/Winipedia/pyrig-private"
|
|
39
|
+
|
|
40
|
+
[project.scripts]
|
|
41
|
+
pyrig-private = "pyrig_runtime.rig.cli.main:main"
|
|
42
|
+
|
|
43
|
+
[dependency-groups]
|
|
44
|
+
dev = [
|
|
45
|
+
"actionlint-py>=1.7.12.25",
|
|
46
|
+
"bandit>=1.9.4",
|
|
47
|
+
"deptry>=0.25.1",
|
|
48
|
+
"detect-secrets>=1.5.0",
|
|
49
|
+
"mkdocstrings[python]>=1.0.6",
|
|
50
|
+
"pre-commit-hooks>=6.0.0",
|
|
51
|
+
"prek>=0.5.4",
|
|
52
|
+
"pyflakes>=4.0.1",
|
|
53
|
+
"pyrig>=18.94.2",
|
|
54
|
+
"pyrig-codecov>=3.17.45",
|
|
55
|
+
"pyrig-codeql>=1.1.10",
|
|
56
|
+
"pyrig-fixtures>=2.25.2",
|
|
57
|
+
"pyrig-pypi>=3.20.47",
|
|
58
|
+
"pytest>=9.1.1",
|
|
59
|
+
"pytest-cov>=7.1.0",
|
|
60
|
+
"pytest-randomly>=5.0.0",
|
|
61
|
+
"pytest-xdist>=3.8.0",
|
|
62
|
+
"ruff>=0.16.9",
|
|
63
|
+
"rumdl>=0.2.78",
|
|
64
|
+
"ryl>=0.22.0",
|
|
65
|
+
"shellcheck-py>=0.11.0.1",
|
|
66
|
+
"shfmt-py>=4.2.0",
|
|
67
|
+
"tombi>=1.7.0",
|
|
68
|
+
"ty>=0.0.84",
|
|
69
|
+
"typos>=1.50.3",
|
|
70
|
+
"zensical>=0.0.67",
|
|
71
|
+
"zizmor>=1.30.1",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
[build-system]
|
|
75
|
+
requires = [
|
|
76
|
+
"uv-build",
|
|
77
|
+
]
|
|
78
|
+
build-backend = "uv_build"
|
|
79
|
+
|
|
80
|
+
[tool.deptry]
|
|
81
|
+
root = "src"
|
|
82
|
+
|
|
83
|
+
[tool.deptry.per_rule_ignores]
|
|
84
|
+
DEP002 = [
|
|
85
|
+
"pyrig-runtime",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
[tool.pytest]
|
|
89
|
+
addopts = [
|
|
90
|
+
"--cov-branch",
|
|
91
|
+
"--cov-fail-under=100",
|
|
92
|
+
"--cov-report=term-missing:skip-covered",
|
|
93
|
+
"--cov-report=xml",
|
|
94
|
+
"--cov=pyrig_private",
|
|
95
|
+
"--dist=worksteal",
|
|
96
|
+
"--numprocesses=auto",
|
|
97
|
+
"--report-chars=a",
|
|
98
|
+
]
|
|
99
|
+
filterwarnings = [
|
|
100
|
+
"error",
|
|
101
|
+
]
|
|
102
|
+
strict = true
|
|
103
|
+
testpaths = [
|
|
104
|
+
"tests",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[tool.ruff.format]
|
|
108
|
+
docstring-code-format = true
|
|
109
|
+
|
|
110
|
+
[tool.ruff.lint]
|
|
111
|
+
ignore = [
|
|
112
|
+
"CPY001",
|
|
113
|
+
]
|
|
114
|
+
select = [
|
|
115
|
+
"ALL",
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
[tool.ruff.lint.per-file-ignores]
|
|
119
|
+
"tests/**/*.py" = [
|
|
120
|
+
"S101",
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
[tool.ruff.lint.pydocstyle]
|
|
124
|
+
convention = "google"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Private-repository extensions for pyrig."""
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Private-repository overrides for pyrig's rig subsystem."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Configuration overrides for private repositories."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Version-control configuration overrides for private repositories."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Remote version-control configuration overrides for private repositories."""
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Repository-level settings and protection ruleset configuration for GitHub."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from pyrig.rig.configs.version_control.remote.settings import (
|
|
6
|
+
RepositorySettingsConfigFile as BaseRepositorySettingsConfigFile,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RepositorySettingsConfigFile(BaseRepositorySettingsConfigFile):
|
|
11
|
+
"""Override repository settings for private GitHub repositories."""
|
|
12
|
+
|
|
13
|
+
def _configs(self) -> dict[str, Any]:
|
|
14
|
+
"""Add private visibility to the inherited repository settings.
|
|
15
|
+
|
|
16
|
+
Returns:
|
|
17
|
+
The inherited settings with private repository visibility.
|
|
18
|
+
"""
|
|
19
|
+
configs = super()._configs()
|
|
20
|
+
configs[self.repository_key()]["visibility"] = self.visibility()
|
|
21
|
+
return configs
|
|
22
|
+
|
|
23
|
+
def visibility(self) -> str:
|
|
24
|
+
"""Return the visibility setting for the repository."""
|
|
25
|
+
return "private"
|