Skip to content

Commit 71a7253

Browse files
authored
Merge pull request #174 from CCPBioSim/158-review-community-docs
Update Community Documentation Post `v1.0.0`
2 parents a6d7047 + ef4ed05 commit 71a7253

File tree

5 files changed

+181
-95
lines changed

5 files changed

+181
-95
lines changed

.github/CONTRIBUTING.md

Lines changed: 61 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,65 @@
1-
# How to contribute
1+
# Contributing to CodeEntropy
22

3-
We welcome contributions from external contributors, and this document
4-
describes how to merge code changes into this CodeEntropy.
3+
Thank you for your interest in contributing to **CodeEntropy**!
4+
5+
We’re excited to collaborate with developers, researchers, and community members to make CodeEntropy better for everyone.
6+
7+
This guide explains how to set up your environment, make changes, and submit them for review. Whether you’re fixing a bug, improving documentation, or adding new features, every contribution makes a difference.
8+
9+
---
510

611
## Getting Started
712

8-
* Make sure you have a [GitHub account](https://github.com/signup/free).
9-
* [Fork](https://help.github.com/articles/fork-a-repo/) this repository on GitHub.
10-
* On your local machine,
11-
[clone](https://help.github.com/articles/cloning-a-repository/) your fork of
12-
the repository.
13-
14-
## Making Changes
15-
16-
* Add some really awesome code to your local fork. It's usually a [good
17-
idea](http://blog.jasonmeridth.com/posts/do-not-issue-pull-requests-from-your-master-branch/)
18-
to make changes on a
19-
[branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/)
20-
with the branch name relating to the feature you are going to add.
21-
* When you are ready for others to examine and comment on your new feature,
22-
navigate to your fork of CodeEntropy on GitHub and open a [pull
23-
request](https://help.github.com/articles/using-pull-requests/) (PR). Note that
24-
after you launch a PR from one of your fork's branches, all
25-
subsequent commits to that branch will be added to the open pull request
26-
automatically. Each commit added to the PR will be validated for
27-
mergability, compilation and test suite compliance; the results of these tests
28-
will be visible on the PR page.
29-
* If you're providing a new feature, you must add test cases and documentation.
30-
* When the code is ready to go, make sure you run the test suite using pytest.
31-
* When you're ready to be considered for merging, check the "Ready to go"
32-
box on the PR page to let the CodeEntropy devs know that the changes are complete.
33-
The code will not be merged until this box is checked, the continuous
34-
integration returns checkmarks,
35-
and multiple core developers give "Approved" reviews.
36-
37-
# Additional Resources
38-
39-
* [General GitHub documentation](https://help.github.com/)
40-
* [PR best practices](http://codeinthehole.com/writing/pull-requests-and-other-good-practices-for-teams-using-github/)
41-
* [A guide to contributing to software packages](http://www.contribution-guide.org)
42-
* [Thinkful PR example](http://www.thinkful.com/learn/github-pull-request-tutorial/#Time-to-Submit-Your-First-PR)
13+
Before contributing, please review the [Developer Guide](https://codeentropy.readthedocs.io/en/latest/developer_guide.html).
14+
It covers CodeEntropy’s architecture, setup instructions, and contribution workflow.
15+
16+
If you’re new to the project, we also recommend:
17+
- Reading the [README](../README.md) for an overview and installation details.
18+
- Checking open [issues](https://github.com/CCPBioSim/CodeEntropy/issues) labeled **good first issue** to find beginner-friendly tasks.
19+
20+
---
21+
22+
## Submitting a Pull Request (PR)
23+
24+
When you’re ready to submit your work:
25+
26+
1. **Push your branch** to GitHub.
27+
2. **Open a [pull request](https://help.github.com/articles/using-pull-requests/)** against the `main` branch.
28+
3. **Fill out the PR template**, including:
29+
- A concise summary of what your PR does
30+
- A list of all changes introduced
31+
- Details on how these changes affect the repository (features, tests, documentation, etc.)
32+
4. **Verify before submission**:
33+
- All tests pass
34+
- Pre-commit checks succeed
35+
- Documentation is updated where applicable
36+
5. **Review process**:
37+
- Your PR will be reviewed by the core development team.
38+
- At least **one approval** is required before merging.
39+
40+
We aim to provide constructive feedback quickly and appreciate your patience during the review process.
41+
42+
---
43+
44+
## Reporting Issues
45+
46+
Found a bug or have a feature request?
47+
48+
1. **Open a new issue** on GitHub.
49+
2. Provide a **clear and descriptive title**.
50+
3. Include:
51+
- Steps to reproduce the issue (if applicable)
52+
- Expected vs. actual behavior
53+
- Relevant logs, screenshots, or input files
54+
55+
Well-documented issues help us address problems faster and keep CodeEntropy stable and robust.
56+
57+
---
58+
59+
## Additional Resources
60+
61+
- [GitHub Docs](https://help.github.com/)
62+
63+
---
64+
65+
Thank you for helping improve **CodeEntropy**, your contributions make open source stronger!

.github/workflows/release.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,16 @@ jobs:
4848
- name: checkout
4949
uses: actions/checkout@v5.0.0
5050

51-
- name: Change version in repo
52-
run: sed -i "s/__version__ =.*/__version__ = \"${{ github.event.inputs.version }}\"/g" CodeEntropy/__init__.py
51+
- name: Change version in repo and CITATION.cff
52+
run: |
53+
# Update Python package version
54+
sed -i "s/__version__ =.*/__version__ = \"${{ github.event.inputs.version }}\"/g" CodeEntropy/__init__.py
55+
56+
# Update CITATION.cff version and date-released
57+
if [ -f CITATION.cff ]; then
58+
sed -i -E "s/^(version:\s*).*/\1${{ github.event.inputs.version }}/" CITATION.cff
59+
sed -i -E "s/^(date-released:\s*).*/\1'$(date -u +%F)'/" CITATION.cff
60+
fi
5361
5462
- name: send PR
5563
id: pr_id
@@ -61,6 +69,7 @@ jobs:
6169
body: |
6270
Update version
6371
- Update the __init__.py with new release
72+
- Update CITATION.cff version & date-released
6473
- Auto-generated by [CI]
6574
committer: version-updater <vu.bot@users.noreply.github.com>
6675
author: version-updater <vu.bot@users.noreply.github.com>

CITATION.cff

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ authors:
5656
family-names: Swift
5757
email: harry.swift@stfc.ac.uk
5858
affiliation: 'STFC, Scientific Computing'
59+
orcid: 'https://orcid.org/0009-0007-3323-753X'
5960
repository-code: 'https://github.com/CCPBioSim/CodeEntropy'
6061
url: 'https://ccpbiosim.github.io/CodeEntropy/'
6162
abstract: >-
@@ -75,5 +76,5 @@ keywords:
7576
- biomolecular simulations
7677
- protein flexibility
7778
license: MIT
78-
version: 0.3.6
79-
date-released: '2022-07-06'
79+
version: 1.0.3
80+
date-released: '2025-09-29'

CODE_OF_CONDUCT.md

Lines changed: 101 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,76 +2,127 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
7-
our community a harassment-free experience for everyone, regardless of age,
8-
body size, disability, ethnicity, gender identity and expression, level of
9-
experience, nationality, personal appearance, race, religion, or sexual
10-
identity and orientation.
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
1114

1215
## Our Standards
1316

14-
Examples of behavior that contributes to creating a positive environment include:
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
1519

16-
* Using welcoming and inclusive language
17-
* Being respectful of differing viewpoints and experiences
18-
* Gracefully accepting constructive criticism
19-
* Focusing on what is best for the community
20-
* Showing empathy towards other community members
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
2127

22-
Examples of unacceptable behavior by participants include:
28+
Examples of unacceptable behavior include:
2329

24-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
25-
* Trolling, insulting/derogatory comments, and personal or political attacks
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
2633
* Public or private harassment
27-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
28-
* Other conduct which could reasonably be considered inappropriate in a professional setting
29-
30-
## Our Responsibilities
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
3138

32-
Project maintainers are responsible for clarifying the standards of acceptable
33-
behavior and are expected to take appropriate and fair corrective action in
34-
response to any instances of unacceptable behavior.
39+
## Enforcement Responsibilities
3540

36-
Project maintainers have the right and responsibility to remove, edit, or
37-
reject comments, commits, code, wiki edits, issues, and other contributions
38-
that are not aligned to this Code of Conduct, or to ban temporarily or
39-
permanently any contributor for other behaviors that they deem inappropriate,
40-
threatening, offensive, or harmful.
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
4145

42-
Moreover, project maintainers will strive to offer feedback and advice to
43-
ensure quality and consistency of contributions to the code. Contributions
44-
from outside the group of project maintainers are strongly welcomed but the
45-
final decision as to whether commits are merged into the codebase rests with
46-
the team of project maintainers.
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
4750

4851
## Scope
4952

50-
This Code of Conduct applies both within project spaces and in public spaces
51-
when an individual is representing the project or its community. Examples of
52-
representing a project or community include using an official project e-mail
53-
address, posting via an official social media account, or acting as an
54-
appointed representative at an online or offline event. Representation of a
55-
project may be further defined and clarified by project maintainers.
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
5658

5759
## Enforcement
5860

5961
Instances of abusive, harassing, or otherwise unacceptable behavior may be
60-
reported by contacting the project team at 'lpchungaa@gmail.com'. The project team will
61-
review and investigate all complaints, and will respond in a way that it deems
62-
appropriate to the circumstances. The project team is obligated to maintain
63-
confidentiality with regard to the reporter of an incident. Further details of
64-
specific enforcement policies may be posted separately.
62+
reported to the community leaders responsible for enforcement at
63+
ccpbiosim@stfc.ac.uk.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
6584

66-
Project maintainers who do not follow or enforce the Code of Conduct in good
67-
faith may face temporary or permanent repercussions as determined by other
68-
members of the project's leadership.
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
69114

70115
## Attribution
71116

72117
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
73-
version 1.4, available at
74-
[http://contributor-covenant.org/version/1/4][version]
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
75125

76-
[homepage]: http://contributor-covenant.org
77-
[version]: http://contributor-covenant.org/version/1/4/
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

CodeEntropy/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"""
22
CodeEntropy
33
4-
CodeEntropy tool with POSEIDON code integrated to form a complete and generally
5-
applicable set of tools for computing entropy of macromolecular systems from the
6-
forces sampled in a MD simulation.
4+
CodeEntropy is a Python package for computing the configurational entropy of
5+
macromolecular systems using forces sampled from molecular dynamics (MD) simulations.
6+
It implements the multiscale cell correlation method to provide accurate and efficient
7+
entropy estimates, supporting a wide range of applications in molecular simulation
8+
and statistical mechanics.
79
"""
810

911
__version__ = "1.0.3"

0 commit comments

Comments
 (0)