reqstool-python-decorators 0.1.dev10__tar.gz → 0.2.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.
- reqstool_python_decorators-0.2.0/.claude/settings.json +15 -0
- reqstool_python_decorators-0.2.0/.github/workflows/build-docs.yml +18 -0
- reqstool_python_decorators-0.2.0/.github/workflows/build.yml +95 -0
- reqstool_python_decorators-0.2.0/.github/workflows/check-semantic-pr.yml +13 -0
- reqstool_python_decorators-0.2.0/.github/workflows/lint.yml +25 -0
- reqstool_python_decorators-0.2.0/.github/workflows/release.yml +139 -0
- reqstool_python_decorators-0.2.0/.gitignore +287 -0
- reqstool_python_decorators-0.2.0/.mcp.json +8 -0
- reqstool_python_decorators-0.2.0/.python-version +1 -0
- reqstool_python_decorators-0.2.0/.reqstool-ai.yaml +32 -0
- reqstool_python_decorators-0.2.0/CONTRIBUTING.md +39 -0
- reqstool_python_decorators-0.2.0/PKG-INFO +73 -0
- reqstool_python_decorators-0.2.0/README.md +56 -0
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/docs/antora-playbook.yml +3 -2
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/docs/antora.yml +1 -1
- reqstool_python_decorators-0.2.0/docs/modules/ROOT/nav.adoc +3 -0
- reqstool_python_decorators-0.2.0/docs/modules/ROOT/pages/index.adoc +12 -0
- reqstool_python_decorators-0.2.0/docs/modules/ROOT/pages/installation.adoc +8 -0
- reqstool_python_decorators-0.2.0/docs/modules/ROOT/pages/usage.adoc +63 -0
- reqstool_python_decorators-0.2.0/docs/reqstool/reqstool_config.yml +11 -0
- reqstool_python_decorators-0.2.0/docs/reqstool/requirements.yml +45 -0
- reqstool_python_decorators-0.2.0/docs/reqstool/software_verification_cases.yml +20 -0
- reqstool_python_decorators-0.2.0/openspec/openspecui.hooks.ts +108 -0
- reqstool_python_decorators-0.2.0/openspec/specs/decorator-definitions/spec.md +15 -0
- reqstool_python_decorators-0.2.0/openspec/specs/decorator-processing/spec.md +15 -0
- reqstool_python_decorators-0.2.0/openspec/specs/yaml-export/spec.md +15 -0
- reqstool_python_decorators-0.2.0/pyproject.toml +66 -0
- reqstool_python_decorators-0.2.0/renovate.json5 +4 -0
- reqstool_python_decorators-0.2.0/scripts/generate_annotations.py +17 -0
- reqstool_python_decorators-0.2.0/src/reqstool_python_decorators/decorators/__init__.py +1 -0
- reqstool_python_decorators-0.2.0/src/reqstool_python_decorators/decorators/decorators.py +25 -0
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/src/reqstool_python_decorators/processors/decorator_processor.py +85 -31
- reqstool_python_decorators-0.2.0/tests/e2e/__init__.py +0 -0
- reqstool_python_decorators-0.2.0/tests/e2e/reqstool_decorators/__init__.py +0 -0
- reqstool_python_decorators-0.2.0/tests/e2e/reqstool_decorators/test_process_e2e.py +46 -0
- reqstool_python_decorators-0.2.0/tests/integration/__init__.py +0 -0
- reqstool_python_decorators-0.2.0/tests/integration/reqstool_decorators/__init__.py +0 -0
- reqstool_python_decorators-0.2.0/tests/resources/test_decorators/requirements_decorators.py +18 -0
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/tests/resources/test_decorators/svc_decorators.py +1 -1
- reqstool_python_decorators-0.2.0/tests/unit/reqstool_decorators/processors/test_processors.py +327 -0
- reqstool_python_decorators-0.2.0/tests/unit/reqstool_decorators/test_decorators.py +68 -0
- reqstool_python_decorators-0.1.dev10/.github/dependabot.yml +0 -15
- reqstool_python_decorators-0.1.dev10/.github/workflows/build.yml +0 -32
- reqstool_python_decorators-0.1.dev10/.github/workflows/lint.yml +0 -22
- reqstool_python_decorators-0.1.dev10/.github/workflows/publish_development.yml +0 -39
- reqstool_python_decorators-0.1.dev10/.github/workflows/publish_pages.yml +0 -49
- reqstool_python_decorators-0.1.dev10/.github/workflows/publish_production.yml +0 -34
- reqstool_python_decorators-0.1.dev10/.gitignore +0 -183
- reqstool_python_decorators-0.1.dev10/PKG-INFO +0 -93
- reqstool_python_decorators-0.1.dev10/README.md +0 -78
- reqstool_python_decorators-0.1.dev10/docs/modules/ROOT/nav.adoc +0 -2
- reqstool_python_decorators-0.1.dev10/docs/modules/ROOT/pages/description.adoc +0 -3
- reqstool_python_decorators-0.1.dev10/docs/modules/ROOT/pages/index.adoc +0 -7
- reqstool_python_decorators-0.1.dev10/docs/modules/ROOT/pages/installation.adoc +0 -9
- reqstool_python_decorators-0.1.dev10/docs/modules/ROOT/pages/licence.adoc +0 -3
- reqstool_python_decorators-0.1.dev10/docs/modules/ROOT/pages/usage.adoc +0 -58
- reqstool_python_decorators-0.1.dev10/pyproject.toml +0 -60
- reqstool_python_decorators-0.1.dev10/src/reqstool_python_decorators/decorators/decorators.py +0 -17
- reqstool_python_decorators-0.1.dev10/tests/resources/test_decorators/requirements_decorators.py +0 -12
- reqstool_python_decorators-0.1.dev10/tests/unit/reqstool_decorators/processors/test_processors.py +0 -65
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/LICENSE +0 -0
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/src/reqstool_python_decorators/__init__.py +0 -0
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/src/reqstool_python_decorators/processors/__init__.py +0 -0
- {reqstool_python_decorators-0.1.dev10 → reqstool_python_decorators-0.2.0}/tests/unit/conftest.py +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extraKnownMarketplaces": {
|
|
3
|
+
"reqstool-ai": {
|
|
4
|
+
"source": {
|
|
5
|
+
"source": "github",
|
|
6
|
+
"repo": "reqstool/reqstool-ai"
|
|
7
|
+
},
|
|
8
|
+
"autoUpdate": true
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"enabledPlugins": {
|
|
12
|
+
"reqstool@reqstool-ai": true,
|
|
13
|
+
"reqstool-openspec@reqstool-ai": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Build Docs
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
pull_request:
|
|
5
|
+
paths:
|
|
6
|
+
- "docs/**"
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
paths:
|
|
11
|
+
- "docs/**"
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
uses: reqstool/.github/.github/workflows/common-build-docs.yml@main
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
name: Build PyPI
|
|
2
|
+
on:
|
|
3
|
+
workflow_call:
|
|
4
|
+
inputs:
|
|
5
|
+
ref:
|
|
6
|
+
description: "Branch, tag or SHA to build. Empty = the caller's ref."
|
|
7
|
+
required: false
|
|
8
|
+
type: string
|
|
9
|
+
default: ""
|
|
10
|
+
artifact-name:
|
|
11
|
+
description: >
|
|
12
|
+
Name to upload the build output under. The release flow runs this
|
|
13
|
+
workflow twice in one run -- once on the branch, once on the tag -- and
|
|
14
|
+
upload-artifact rejects a duplicate name.
|
|
15
|
+
required: false
|
|
16
|
+
type: string
|
|
17
|
+
default: "dist"
|
|
18
|
+
workflow_dispatch:
|
|
19
|
+
push:
|
|
20
|
+
branches:
|
|
21
|
+
- main
|
|
22
|
+
pull_request:
|
|
23
|
+
types:
|
|
24
|
+
- opened
|
|
25
|
+
- reopened
|
|
26
|
+
- synchronize
|
|
27
|
+
|
|
28
|
+
permissions:
|
|
29
|
+
contents: read
|
|
30
|
+
|
|
31
|
+
jobs:
|
|
32
|
+
linting:
|
|
33
|
+
name: Reuse linting job
|
|
34
|
+
uses: ./.github/workflows/lint.yml
|
|
35
|
+
|
|
36
|
+
build:
|
|
37
|
+
needs: linting
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
strategy:
|
|
40
|
+
fail-fast: false
|
|
41
|
+
matrix:
|
|
42
|
+
reqstool-source: [pypi, main]
|
|
43
|
+
steps:
|
|
44
|
+
# Full history and tags: hatch-vcs derives the version from git state, so a
|
|
45
|
+
# shallow clone would build the wrong number rather than fail.
|
|
46
|
+
- name: Check out source repository
|
|
47
|
+
uses: actions/checkout@v7.0.1
|
|
48
|
+
with:
|
|
49
|
+
persist-credentials: false
|
|
50
|
+
fetch-depth: 0
|
|
51
|
+
fetch-tags: true
|
|
52
|
+
ref: ${{ inputs.ref || github.ref }}
|
|
53
|
+
- name: Set up Python
|
|
54
|
+
uses: actions/setup-python@v7.0.0
|
|
55
|
+
with:
|
|
56
|
+
python-version: "3.13.15"
|
|
57
|
+
- name: Install dependencies
|
|
58
|
+
# renovate: datasource=pypi depName=hatch
|
|
59
|
+
run: pip install hatch==1.18.0
|
|
60
|
+
- name: Run tests
|
|
61
|
+
run: hatch run dev:pytest --junitxml=build/junit.xml --cov=reqstool_python_decorators --cov-report=xml:build/coverage.xml
|
|
62
|
+
- name: Build project
|
|
63
|
+
run: hatch build
|
|
64
|
+
- name: Self-apply own decorator processor to own src/tests
|
|
65
|
+
# Relies on `hatch build` (above) not cleaning build/ -- annotations.yml lands
|
|
66
|
+
# alongside the junit/coverage output from the "Run tests" step, and
|
|
67
|
+
# reqstool_config.yml expects to find both there. If hatch build ever starts
|
|
68
|
+
# cleaning build/, move the pytest output dir outside of it.
|
|
69
|
+
run: hatch run dev:python scripts/generate_annotations.py
|
|
70
|
+
- name: Install reqstool
|
|
71
|
+
uses: reqstool/.github/.github/actions/install-reqstool@9c6feaab046f4782f430dd2527fdb82c2a5cd926 # main 2026-06-22
|
|
72
|
+
with:
|
|
73
|
+
reqstool-source: ${{ matrix.reqstool-source }}
|
|
74
|
+
- name: Validate reqstool spec completeness
|
|
75
|
+
# not yet available in the latest PyPI release; supplementary to (not a
|
|
76
|
+
# replacement for) the `reqstool status --fail-if-incomplete` gate below, which
|
|
77
|
+
# is the actual required check on the pypi leg
|
|
78
|
+
if: matrix.reqstool-source == 'main'
|
|
79
|
+
uses: reqstool/.github/.github/actions/validate-reqstool@9c6feaab046f4782f430dd2527fdb82c2a5cd926 # main 2026-06-22
|
|
80
|
+
- name: Run reqstool status
|
|
81
|
+
# Required gate on both matrix legs -- fails the build unless every
|
|
82
|
+
# requirement is implemented and verified.
|
|
83
|
+
uses: reqstool/.github/.github/actions/reqstool-status@9c6feaab046f4782f430dd2527fdb82c2a5cd926 # main 2026-06-22
|
|
84
|
+
with:
|
|
85
|
+
fail-if-incomplete: "true"
|
|
86
|
+
# Upload artifacts for later use
|
|
87
|
+
- name: Upload Artifacts
|
|
88
|
+
if: matrix.reqstool-source == 'pypi'
|
|
89
|
+
uses: actions/upload-artifact@v7.0.1
|
|
90
|
+
with:
|
|
91
|
+
name: ${{ inputs.artifact-name || 'dist' }}
|
|
92
|
+
path: dist/
|
|
93
|
+
|
|
94
|
+
validate-openspec:
|
|
95
|
+
uses: reqstool/.github/.github/workflows/common-validate-openspec.yml@9c6feaab046f4782f430dd2527fdb82c2a5cd926 # main 2026-06-22
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: Check Semantic PR
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened, edited, synchronize, reopened]
|
|
5
|
+
pull_request_target:
|
|
6
|
+
types: [opened, edited, synchronize, reopened]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
pull-requests: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
check:
|
|
13
|
+
uses: reqstool/.github/.github/workflows/common-check-semantic-pr.yml@main
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Lint (black and flake8)
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
workflow_call:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
linting:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Check out source repository
|
|
14
|
+
uses: actions/checkout@v7.0.1
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v7.0.0
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.13.15"
|
|
19
|
+
- name: Install pip package(s)
|
|
20
|
+
# renovate: datasource=pypi depName=hatch
|
|
21
|
+
run: pip install hatch==1.18.0
|
|
22
|
+
- name: Run black formatter check
|
|
23
|
+
run: hatch run dev:black --check --verbose src tests
|
|
24
|
+
- name: Run flake8 linter
|
|
25
|
+
run: hatch run dev:flake8
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# The whole release, start to finish. See RELEASING.md in reqstool/.github for
|
|
4
|
+
# what each step does, and for why the release is created as a prerelease rather
|
|
5
|
+
# than a draft.
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
inputs:
|
|
10
|
+
version:
|
|
11
|
+
description: "Version to release (PEP 440, no v prefix), e.g. 0.2.0. Leave empty to auto-detect from Conventional Commits."
|
|
12
|
+
required: false
|
|
13
|
+
type: string
|
|
14
|
+
prerelease:
|
|
15
|
+
description: "Publish as a release candidate instead of a release: verified like any release, but never promoted to latest. The number is chosen for you (0.2.0 -> 0.2.0rc1, then the next)."
|
|
16
|
+
required: false
|
|
17
|
+
type: choice
|
|
18
|
+
options: [none, rc, b, a]
|
|
19
|
+
default: none
|
|
20
|
+
ref:
|
|
21
|
+
description: "Branch to release from. Leave empty for the branch this workflow was dispatched on."
|
|
22
|
+
required: false
|
|
23
|
+
type: string
|
|
24
|
+
force:
|
|
25
|
+
description: "Allow a version that disagrees with the auto-detected one."
|
|
26
|
+
required: false
|
|
27
|
+
type: boolean
|
|
28
|
+
default: false
|
|
29
|
+
dry-run:
|
|
30
|
+
description: "Validate and preview only -- nothing tagged, nothing published."
|
|
31
|
+
required: false
|
|
32
|
+
type: boolean
|
|
33
|
+
default: true
|
|
34
|
+
|
|
35
|
+
concurrency:
|
|
36
|
+
group: release
|
|
37
|
+
cancel-in-progress: false
|
|
38
|
+
|
|
39
|
+
permissions:
|
|
40
|
+
contents: read
|
|
41
|
+
|
|
42
|
+
jobs:
|
|
43
|
+
prepare:
|
|
44
|
+
uses: reqstool/.github/.github/workflows/common-release-prepare.yml@main
|
|
45
|
+
permissions:
|
|
46
|
+
contents: read
|
|
47
|
+
with:
|
|
48
|
+
version-format: pep440
|
|
49
|
+
version: ${{ inputs.version }}
|
|
50
|
+
prerelease: ${{ inputs.prerelease }}
|
|
51
|
+
ref: ${{ inputs.ref }}
|
|
52
|
+
force: ${{ inputs.force }}
|
|
53
|
+
dry-run: ${{ inputs.dry-run }}
|
|
54
|
+
|
|
55
|
+
# The same checks that guard main, called rather than reimplemented, and run
|
|
56
|
+
# before the approval gate so the reviewer approves something already green
|
|
57
|
+
# rather than a version string.
|
|
58
|
+
checks:
|
|
59
|
+
needs: prepare
|
|
60
|
+
if: ${{ !inputs.dry-run }}
|
|
61
|
+
uses: ./.github/workflows/build.yml
|
|
62
|
+
permissions:
|
|
63
|
+
contents: read
|
|
64
|
+
|
|
65
|
+
# THE APPROVAL GATE -- bound to the `stable` environment, so it sits pending
|
|
66
|
+
# until a required reviewer approves it on the run page.
|
|
67
|
+
tag:
|
|
68
|
+
needs: [prepare, checks]
|
|
69
|
+
if: ${{ !inputs.dry-run }}
|
|
70
|
+
uses: reqstool/.github/.github/workflows/common-release-tag.yml@main
|
|
71
|
+
permissions:
|
|
72
|
+
contents: write
|
|
73
|
+
with:
|
|
74
|
+
version: ${{ needs.prepare.outputs.version }}
|
|
75
|
+
version-format: pep440
|
|
76
|
+
ref: ${{ inputs.ref }}
|
|
77
|
+
|
|
78
|
+
# Rebuilt from the tag, which is what gives the artifacts their version:
|
|
79
|
+
# hatch-vcs reads it from git rather than from a version string in the tree.
|
|
80
|
+
build-tagged:
|
|
81
|
+
needs: [prepare, tag]
|
|
82
|
+
uses: ./.github/workflows/build.yml
|
|
83
|
+
permissions:
|
|
84
|
+
contents: read
|
|
85
|
+
with:
|
|
86
|
+
ref: ${{ needs.prepare.outputs.version }}
|
|
87
|
+
artifact-name: dist-tagged
|
|
88
|
+
|
|
89
|
+
assets:
|
|
90
|
+
needs: [prepare, build-tagged]
|
|
91
|
+
uses: reqstool/.github/.github/workflows/common-release-assets.yml@main
|
|
92
|
+
permissions:
|
|
93
|
+
contents: write
|
|
94
|
+
with:
|
|
95
|
+
version: ${{ needs.prepare.outputs.version }}
|
|
96
|
+
artifact: dist-tagged
|
|
97
|
+
|
|
98
|
+
# PyPI is the only step here that cannot be undone: a version can be yanked but
|
|
99
|
+
# never replaced. Publishes release candidates too, with their pre-release
|
|
100
|
+
# identifier -- pip ignores them without --pre, so there is nothing unsafe
|
|
101
|
+
# about it landing on the real index; there is no separate staging index to
|
|
102
|
+
# route them to instead. Matches npm and Maven Central's existing behavior.
|
|
103
|
+
publish-to-pypi:
|
|
104
|
+
needs: [prepare, assets]
|
|
105
|
+
runs-on: ubuntu-latest
|
|
106
|
+
environment:
|
|
107
|
+
name: stable
|
|
108
|
+
url: https://pypi.org
|
|
109
|
+
permissions:
|
|
110
|
+
id-token: write
|
|
111
|
+
steps:
|
|
112
|
+
- uses: reqstool/.github/.github/actions/download-dists@ef815eae0bca7160cdc714126cac73f76d638b39 # main 2026-08-23
|
|
113
|
+
with:
|
|
114
|
+
artifact: dist-tagged
|
|
115
|
+
# Inline, not inside download-dists: nesting this Docker action in a
|
|
116
|
+
# composite action makes GitHub resolve its image against the wrapper's
|
|
117
|
+
# repo. See reqstool/.github#95.
|
|
118
|
+
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
119
|
+
with:
|
|
120
|
+
attestations: true
|
|
121
|
+
|
|
122
|
+
# Last, deliberately. Everything above can fail, and until this runs nothing
|
|
123
|
+
# resolving "the latest release" can see what was built -- the release is still
|
|
124
|
+
# a prerelease. Promotion itself is one API call against a release that already
|
|
125
|
+
# has its artifacts.
|
|
126
|
+
#
|
|
127
|
+
# The guard is `no job failed`, not the default `every job succeeded`: on a dry
|
|
128
|
+
# run every job above is skipped, which would make plain success() false too --
|
|
129
|
+
# `!inputs.dry-run` is what actually gates this job then, and `no job failed`
|
|
130
|
+
# is what confirms nothing above it errored on a real run.
|
|
131
|
+
promote:
|
|
132
|
+
needs: [prepare, assets, publish-to-pypi]
|
|
133
|
+
if: ${{ !inputs.dry-run && !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
|
|
134
|
+
uses: reqstool/.github/.github/workflows/common-release-promote.yml@main
|
|
135
|
+
permissions:
|
|
136
|
+
contents: write
|
|
137
|
+
with:
|
|
138
|
+
version: ${{ needs.prepare.outputs.version }}
|
|
139
|
+
prerelease: ${{ needs.prepare.outputs.prerelease == 'true' }}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# Created by https://www.toptal.com/developers/gitignore/api/python,intellij+all,visualstudiocode
|
|
2
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,intellij+all,visualstudiocode
|
|
3
|
+
|
|
4
|
+
### Intellij+all ###
|
|
5
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
6
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
7
|
+
|
|
8
|
+
# User-specific stuff
|
|
9
|
+
.idea/**/workspace.xml
|
|
10
|
+
.idea/**/tasks.xml
|
|
11
|
+
.idea/**/usage.statistics.xml
|
|
12
|
+
.idea/**/dictionaries
|
|
13
|
+
.idea/**/shelf
|
|
14
|
+
|
|
15
|
+
# AWS User-specific
|
|
16
|
+
.idea/**/aws.xml
|
|
17
|
+
|
|
18
|
+
# Generated files
|
|
19
|
+
.idea/**/contentModel.xml
|
|
20
|
+
|
|
21
|
+
# Sensitive or high-churn files
|
|
22
|
+
.idea/**/dataSources/
|
|
23
|
+
.idea/**/dataSources.ids
|
|
24
|
+
.idea/**/dataSources.local.xml
|
|
25
|
+
.idea/**/sqlDataSources.xml
|
|
26
|
+
.idea/**/dynamic.xml
|
|
27
|
+
.idea/**/uiDesigner.xml
|
|
28
|
+
.idea/**/dbnavigator.xml
|
|
29
|
+
|
|
30
|
+
# Gradle
|
|
31
|
+
.idea/**/gradle.xml
|
|
32
|
+
.idea/**/libraries
|
|
33
|
+
|
|
34
|
+
# Gradle and Maven with auto-import
|
|
35
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
36
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
|
37
|
+
# auto-import.
|
|
38
|
+
# .idea/artifacts
|
|
39
|
+
# .idea/compiler.xml
|
|
40
|
+
# .idea/jarRepositories.xml
|
|
41
|
+
# .idea/modules.xml
|
|
42
|
+
# .idea/*.iml
|
|
43
|
+
# .idea/modules
|
|
44
|
+
# *.iml
|
|
45
|
+
# *.ipr
|
|
46
|
+
|
|
47
|
+
# CMake
|
|
48
|
+
cmake-build-*/
|
|
49
|
+
|
|
50
|
+
# Mongo Explorer plugin
|
|
51
|
+
.idea/**/mongoSettings.xml
|
|
52
|
+
|
|
53
|
+
# File-based project format
|
|
54
|
+
*.iws
|
|
55
|
+
|
|
56
|
+
# IntelliJ
|
|
57
|
+
out/
|
|
58
|
+
|
|
59
|
+
# mpeltonen/sbt-idea plugin
|
|
60
|
+
.idea_modules/
|
|
61
|
+
|
|
62
|
+
# JIRA plugin
|
|
63
|
+
atlassian-ide-plugin.xml
|
|
64
|
+
|
|
65
|
+
# Cursive Clojure plugin
|
|
66
|
+
.idea/replstate.xml
|
|
67
|
+
|
|
68
|
+
# SonarLint plugin
|
|
69
|
+
.idea/sonarlint/
|
|
70
|
+
|
|
71
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
72
|
+
com_crashlytics_export_strings.xml
|
|
73
|
+
crashlytics.properties
|
|
74
|
+
crashlytics-build.properties
|
|
75
|
+
fabric.properties
|
|
76
|
+
|
|
77
|
+
# Editor-based Rest Client
|
|
78
|
+
.idea/httpRequests
|
|
79
|
+
|
|
80
|
+
# Android studio 3.1+ serialized cache file
|
|
81
|
+
.idea/caches/build_file_checksums.ser
|
|
82
|
+
|
|
83
|
+
### Intellij+all Patch ###
|
|
84
|
+
# Ignore everything but code style settings and run configurations
|
|
85
|
+
# that are supposed to be shared within teams.
|
|
86
|
+
|
|
87
|
+
.idea/*
|
|
88
|
+
|
|
89
|
+
!.idea/codeStyles
|
|
90
|
+
!.idea/runConfigurations
|
|
91
|
+
|
|
92
|
+
### Python ###
|
|
93
|
+
# Byte-compiled / optimized / DLL files
|
|
94
|
+
__pycache__/
|
|
95
|
+
*.py[cod]
|
|
96
|
+
*$py.class
|
|
97
|
+
|
|
98
|
+
# C extensions
|
|
99
|
+
*.so
|
|
100
|
+
|
|
101
|
+
# Distribution / packaging
|
|
102
|
+
.Python
|
|
103
|
+
build/
|
|
104
|
+
develop-eggs/
|
|
105
|
+
dist/
|
|
106
|
+
downloads/
|
|
107
|
+
eggs/
|
|
108
|
+
.eggs/
|
|
109
|
+
lib/
|
|
110
|
+
lib64/
|
|
111
|
+
parts/
|
|
112
|
+
sdist/
|
|
113
|
+
var/
|
|
114
|
+
wheels/
|
|
115
|
+
share/python-wheels/
|
|
116
|
+
*.egg-info/
|
|
117
|
+
.installed.cfg
|
|
118
|
+
*.egg
|
|
119
|
+
MANIFEST
|
|
120
|
+
|
|
121
|
+
# PyInstaller
|
|
122
|
+
# Usually these files are written by a python script from a template
|
|
123
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
124
|
+
*.manifest
|
|
125
|
+
*.spec
|
|
126
|
+
|
|
127
|
+
# Installer logs
|
|
128
|
+
pip-log.txt
|
|
129
|
+
pip-delete-this-directory.txt
|
|
130
|
+
|
|
131
|
+
# Unit test / coverage reports
|
|
132
|
+
htmlcov/
|
|
133
|
+
.tox/
|
|
134
|
+
.nox/
|
|
135
|
+
.coverage
|
|
136
|
+
.coverage.*
|
|
137
|
+
.cache
|
|
138
|
+
nosetests.xml
|
|
139
|
+
coverage.xml
|
|
140
|
+
*.cover
|
|
141
|
+
*.py,cover
|
|
142
|
+
.hypothesis/
|
|
143
|
+
.pytest_cache/
|
|
144
|
+
cover/
|
|
145
|
+
|
|
146
|
+
# Translations
|
|
147
|
+
*.mo
|
|
148
|
+
*.pot
|
|
149
|
+
|
|
150
|
+
# Django stuff:
|
|
151
|
+
*.log
|
|
152
|
+
local_settings.py
|
|
153
|
+
db.sqlite3
|
|
154
|
+
db.sqlite3-journal
|
|
155
|
+
|
|
156
|
+
# Flask stuff:
|
|
157
|
+
instance/
|
|
158
|
+
.webassets-cache
|
|
159
|
+
|
|
160
|
+
# Scrapy stuff:
|
|
161
|
+
.scrapy
|
|
162
|
+
|
|
163
|
+
# Sphinx documentation
|
|
164
|
+
docs/_build/
|
|
165
|
+
|
|
166
|
+
# PyBuilder
|
|
167
|
+
.pybuilder/
|
|
168
|
+
target/
|
|
169
|
+
|
|
170
|
+
# Jupyter Notebook
|
|
171
|
+
.ipynb_checkpoints
|
|
172
|
+
|
|
173
|
+
# IPython
|
|
174
|
+
profile_default/
|
|
175
|
+
ipython_config.py
|
|
176
|
+
|
|
177
|
+
# pyenv
|
|
178
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
179
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
180
|
+
# .python-version
|
|
181
|
+
|
|
182
|
+
# pipenv
|
|
183
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
184
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
185
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
186
|
+
# install all needed dependencies.
|
|
187
|
+
#Pipfile.lock
|
|
188
|
+
|
|
189
|
+
# poetry
|
|
190
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
191
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
192
|
+
# commonly ignored for libraries.
|
|
193
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
194
|
+
#poetry.lock
|
|
195
|
+
|
|
196
|
+
# pdm
|
|
197
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
198
|
+
#pdm.lock
|
|
199
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
200
|
+
# in version control.
|
|
201
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
202
|
+
.pdm.toml
|
|
203
|
+
|
|
204
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
205
|
+
__pypackages__/
|
|
206
|
+
|
|
207
|
+
# Celery stuff
|
|
208
|
+
celerybeat-schedule
|
|
209
|
+
celerybeat.pid
|
|
210
|
+
|
|
211
|
+
# SageMath parsed files
|
|
212
|
+
*.sage.py
|
|
213
|
+
|
|
214
|
+
# Environments
|
|
215
|
+
.env
|
|
216
|
+
.venv
|
|
217
|
+
env/
|
|
218
|
+
venv/
|
|
219
|
+
ENV/
|
|
220
|
+
env.bak/
|
|
221
|
+
venv.bak/
|
|
222
|
+
|
|
223
|
+
# Spyder project settings
|
|
224
|
+
.spyderproject
|
|
225
|
+
.spyproject
|
|
226
|
+
|
|
227
|
+
# Rope project settings
|
|
228
|
+
.ropeproject
|
|
229
|
+
|
|
230
|
+
# mkdocs documentation
|
|
231
|
+
/site
|
|
232
|
+
|
|
233
|
+
# mypy
|
|
234
|
+
.mypy_cache/
|
|
235
|
+
.dmypy.json
|
|
236
|
+
dmypy.json
|
|
237
|
+
|
|
238
|
+
# Pyre type checker
|
|
239
|
+
.pyre/
|
|
240
|
+
|
|
241
|
+
# pytype static type analyzer
|
|
242
|
+
.pytype/
|
|
243
|
+
|
|
244
|
+
# Cython debug symbols
|
|
245
|
+
cython_debug/
|
|
246
|
+
|
|
247
|
+
# PyCharm
|
|
248
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
249
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
250
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
251
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
252
|
+
#.idea/
|
|
253
|
+
|
|
254
|
+
### Python Patch ###
|
|
255
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
|
256
|
+
poetry.toml
|
|
257
|
+
|
|
258
|
+
# ruff
|
|
259
|
+
.ruff_cache/
|
|
260
|
+
|
|
261
|
+
# LSP config files
|
|
262
|
+
pyrightconfig.json
|
|
263
|
+
|
|
264
|
+
### VisualStudioCode ###
|
|
265
|
+
.vscode/*
|
|
266
|
+
!.vscode/settings.json
|
|
267
|
+
!.vscode/tasks.json
|
|
268
|
+
!.vscode/launch.json
|
|
269
|
+
!.vscode/extensions.json
|
|
270
|
+
!.vscode/*.code-snippets
|
|
271
|
+
|
|
272
|
+
# Local History for Visual Studio Code
|
|
273
|
+
.history/
|
|
274
|
+
|
|
275
|
+
# Built Visual Studio Code Extensions
|
|
276
|
+
*.vsix
|
|
277
|
+
|
|
278
|
+
### VisualStudioCode Patch ###
|
|
279
|
+
# Ignore all local history of files
|
|
280
|
+
.history
|
|
281
|
+
.ionide
|
|
282
|
+
|
|
283
|
+
# End of https://www.toptal.com/developers/gitignore/api/python,intellij+all,visualstudiocode
|
|
284
|
+
|
|
285
|
+
# Claude Code
|
|
286
|
+
.claude/*
|
|
287
|
+
!.claude/settings.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# reqstool-ai configuration
|
|
2
|
+
#
|
|
3
|
+
# This file tells reqstool-ai skills where to find your reqstool files
|
|
4
|
+
# and how to generate IDs for new requirements and SVCs.
|
|
5
|
+
#
|
|
6
|
+
# Place this file at: .reqstool-ai.yaml (project root)
|
|
7
|
+
|
|
8
|
+
# Project URN — matches the urn in your reqstool YAML files
|
|
9
|
+
urn: reqstool-python-decorators
|
|
10
|
+
|
|
11
|
+
# Revision string for new requirements and SVCs
|
|
12
|
+
revision: "0.1.0"
|
|
13
|
+
|
|
14
|
+
# System-level reqstool directory (contains the SSOT requirements and SVCs)
|
|
15
|
+
system:
|
|
16
|
+
path: docs/reqstool
|
|
17
|
+
|
|
18
|
+
# Subproject modules — each module imports a subset of requirements/SVCs via filters
|
|
19
|
+
#
|
|
20
|
+
# Required fields per module:
|
|
21
|
+
# path — path to the module's reqstool directory (contains filter files)
|
|
22
|
+
# req_prefix — prefix for requirement IDs belonging to this module (e.g., CORE_)
|
|
23
|
+
# svc_prefix — prefix for SVC IDs belonging to this module (e.g., SVC_CORE_)
|
|
24
|
+
#
|
|
25
|
+
# Add as many modules as your project has. The module name (key) is used in
|
|
26
|
+
# commands like `/reqstool:status core` and `/reqstool:add-req core`.
|
|
27
|
+
modules:
|
|
28
|
+
# Matches the existing DECORATORS_NNN / SVC_DECORATORS_NNN ID convention.
|
|
29
|
+
decorators:
|
|
30
|
+
path: docs/reqstool
|
|
31
|
+
req_prefix: "DECORATORS_"
|
|
32
|
+
svc_prefix: "SVC_DECORATORS_"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Contributing to reqstool-python-decorators
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing!
|
|
4
|
+
|
|
5
|
+
For DCO sign-off, commit conventions, and code review process, see the organization-wide [CONTRIBUTING.md](https://github.com/reqstool/.github/blob/main/CONTRIBUTING.md).
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
- Python 3.13+
|
|
10
|
+
- [Hatch](https://hatch.pypa.io/) (`pip install hatch`)
|
|
11
|
+
- [reqstool](https://github.com/reqstool/reqstool-client) (`pipx install reqstool`)
|
|
12
|
+
- [OpenSpec](https://github.com/Fission-AI/OpenSpec) (`npm install -g @fission-ai/openspec`)
|
|
13
|
+
|
|
14
|
+
## Setup
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
git clone https://github.com/reqstool/reqstool-python-decorators.git
|
|
18
|
+
cd reqstool-python-decorators
|
|
19
|
+
hatch env create
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
If using Claude Code, opening this repo will prompt you to confirm adding the `reqstool-ai`
|
|
23
|
+
marketplace and enabling the `reqstool`/`reqstool-openspec` plugins (configured in
|
|
24
|
+
`.claude/settings.json`) — accept the prompt.
|
|
25
|
+
|
|
26
|
+
Then regenerate the `opsx` slash commands and OpenSpec skills
|
|
27
|
+
(`.claude/commands/opsx/`, `.claude/skills/openspec-*`) — they're CLI-generated tool scaffolding,
|
|
28
|
+
not committed to the repo:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
openspec update # or: openspec init --tools claude --force
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Build & Test
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
hatch build
|
|
38
|
+
hatch run test
|
|
39
|
+
```
|