llm-api-scope 0.6.0__tar.gz → 0.6.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.
- {llm_api_scope-0.6.0/llm_api_scope.egg-info → llm_api_scope-0.6.1}/PKG-INFO +1 -1
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/config.py +6 -1
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1/llm_api_scope.egg-info}/PKG-INFO +1 -1
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/pyproject.toml +1 -1
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/LICENSE +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/README.md +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/__init__.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/main.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/__init__.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/app.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/fetch.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/reader.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/schema.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/spec/__init__.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/spec/app.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/openapi/spec/schema.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/__init__.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/app.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/fetch.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/repo/schema.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/__init__.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/app.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/fetch.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/parse_txt.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/parse_xml.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/schema.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/rfc/search.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/apiscope/schema.py +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/SOURCES.txt +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/dependency_links.txt +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/entry_points.txt +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/requires.txt +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/llm_api_scope.egg-info/top_level.txt +0 -0
- {llm_api_scope-0.6.0 → llm_api_scope-0.6.1}/setup.cfg +0 -0
|
@@ -153,7 +153,12 @@ def get_config() -> Config:
|
|
|
153
153
|
|
|
154
154
|
# load and merge the project config
|
|
155
155
|
project_config_path = get_project_config_path()
|
|
156
|
-
if project_config_path is not None
|
|
156
|
+
if project_config_path is not None:
|
|
157
|
+
if not project_config_path.exists() or project_config_path.stat().st_size == 0:
|
|
158
|
+
# create default project config if not exists
|
|
159
|
+
project_config_path.write_text(
|
|
160
|
+
json.dumps({"$schema": DEFAULT_CONFIG_SCHEMA_PATH.as_uri()}, indent=2) + "\n"
|
|
161
|
+
)
|
|
157
162
|
project_config = Config.model_validate_json(project_config_path.read_text())
|
|
158
163
|
return global_config.merge(project_config)
|
|
159
164
|
|
|
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
|