Skip to content

Commit

Permalink
Merge pull request #161 from espressif/fix/config_loads_before_param
Browse files Browse the repository at this point in the history
Fix/config loads before param
  • Loading branch information
hfudev authored Sep 23, 2024
2 parents 5aef542 + 8e421b5 commit be9187b
Show file tree
Hide file tree
Showing 21 changed files with 815 additions and 911 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ repos:
- --license-filepath
- license_header.txt # defaults to: LICENSE.txt
- --use-current-year
exclude: 'idf_build_apps/vendors/'
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.6.2'
hooks:
Expand All @@ -28,6 +29,7 @@ repos:
args: ['--warn-unused-ignores']
additional_dependencies:
- pydantic
- pydantic-settings
- packaging
- toml
- pyparsing
Expand Down
12 changes: 6 additions & 6 deletions docs/conf_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
'members': True,
'member-order': 'bysource',
'show-inheritance': True,
'exclude-members': 'model_computed_fields,model_config,model_fields',
'exclude-members': 'model_computed_fields,model_config,model_fields,model_post_init',
}


def generate_api_docs(language):
from idf_build_apps.args import (
BuildArguments,
FindArguments,
add_arguments_to_obj_doc_as_params,
add_args_to_obj_doc_as_params,
)
from idf_build_apps.main import build_apps, find_apps

Expand All @@ -69,10 +69,10 @@ def generate_api_docs(language):
shutil.rmtree(api_dir)

# --- MOCK DOCSTRINGS By Arguments ---
add_arguments_to_obj_doc_as_params(FindArguments)
add_arguments_to_obj_doc_as_params(BuildArguments)
add_arguments_to_obj_doc_as_params(FindArguments, find_apps)
add_arguments_to_obj_doc_as_params(BuildArguments, build_apps)
add_args_to_obj_doc_as_params(FindArguments)
add_args_to_obj_doc_as_params(BuildArguments)
add_args_to_obj_doc_as_params(FindArguments, find_apps)
add_args_to_obj_doc_as_params(BuildArguments, build_apps)
# --- MOCK DOCSTRINGS FINISHED ---

subprocess.run(
Expand Down
Loading

0 comments on commit be9187b

Please sign in to comment.