Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: setup Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
python-version: ['3.11', '3.13']

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
20 changes: 17 additions & 3 deletions developer/check_changelog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""Check if the CHANGELOG has been modified with respect to the main branch."""
import os

Expand All @@ -22,7 +22,21 @@ class ChangelogError(Exception):
workfile = f.read()

if file.strip() == workfile.strip():
raise ChangelogError("You have not updated the CHANGELOG file. Please "
f"add a summary of your additions to {changelog}.")
# Check for changed files and ignore .github/ changes
head_commit = repo.head.commit
diff = head_commit.diff("origin/main")
changed_files = []
for x in diff:
if x.a_blob.path not in changed_files:
changed_files.append(x.a_blob.path)
if x.b_blob is not None and x.b_blob.path not in changed_files:
changed_files.append(x.b_blob.path)
changed_files = [x for x in changed_files if not x.startswith(".github/")]

if len(changed_files) > 0:
raise ChangelogError("You have not updated the CHANGELOG file. Please "
f"add a summary of your additions to {changelog}.")
else:
print("No changes detected.")
else:
print("CHANGELOG is up to date.")
5 changes: 3 additions & 2 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Changelog
Unreleased
----------

* Ignore ``.github`` workflows for changelog checks
* Ignore unrelated warnings from MDAnalysis
* Added argcomplete for tab completion
* Updated docs
* Added ``argcomplete`` for tab completion
* Updated docs

v0.1.33 (2025-10-20)
------------------------------------------
Expand Down