Skip to content

Commit

Permalink
fix(common): Fix pytest exclusion, gitignore, and changelog checks
Browse files Browse the repository at this point in the history
  • Loading branch information
espressif-abhikroy committed Oct 19, 2023
1 parent 3e8de3a commit 6f35efc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 93 deletions.
File renamed without changes.
5 changes: 5 additions & 0 deletions ci/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def main():
changelog += '- {}\n'.format(it)
changelog += '\n'
filename = os.path.join(root_path, 'components', component, 'CHANGELOG.md')
# Check if the changelog file exists.
if not os.path.exists(filename):
# File does not exist, create it
with open(filename, 'w') as file:
file.write('# Changelog\n\n')
# insert the actual changelog to the beginning of the file, just after the title (2nd line)
with open(filename, 'r') as orig_changelog:
changelog_title = orig_changelog.readline(
Expand Down
93 changes: 0 additions & 93 deletions components/esp_websocket_client/.gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ log_file = test.log
log_file_level = INFO
log_file_format = %(asctime)s %(levelname)s %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S

# Directory patterns to avoid for recursion
norecursedirs = "managed_components"

0 comments on commit 6f35efc

Please sign in to comment.