Skip to content

Commit aea15a5

Browse files
committed
TMP: Add CoC Pages
1 parent b078d38 commit aea15a5

4 files changed

Lines changed: 155 additions & 0 deletions

File tree

code_of_conduct.rst

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
.. _astropy-org-coc:
2+
3+
Astropy Community Code of Conduct
4+
=================================
5+
6+
Since November 2025, the Astropy Project has adopted the NumFOCUS Code of Conduct, which is summarized below. For the previous version of the Astropy Code of Conduct, click :ref:`here <astropy-org-coc-old>`.
7+
8+
9+
The Short Version
10+
-----------------
11+
12+
Be kind to others. Do not insult or put down others.
13+
Behave professionally. Remember that harassment and sexist, racist, or exclusionary jokes are not appropriate for Astropy.
14+
15+
Astropy is dedicated to providing a harassment-free community for everyone, regardless of gender, sexual orientation, gender identity and expression, disability, physical appearance, body
16+
size, race, or religion.
17+
We do not tolerate harassment of community members in any form.
18+
19+
All communication should be appropriate for a professional audience including people of many different backgrounds.
20+
Sexual language and imagery is not appropriate.
21+
22+
Thank you for helping make this a welcoming, friendly community for all.
23+
24+
The Long Version
25+
----------------
26+
27+
You can find the long version of the Code of Conduct on the `NumFOCUS website <https://numfocus.org/code-of-conduct>`__.
28+
29+
How To Report
30+
-------------
31+
32+
If you feel that the Code of Conduct has been violated, you can submit a report via the `NumFOCUS Code of Conduct Reporting Form <https://numfocus.typeform.com/to/ynjGdT?typeform-source=numfocus.org>`__.
33+
34+
Who Will Receive Your Report
35+
----------------------------
36+
37+
Your report will be received and handled by NumFOCUS Code of Conduct Working Group; trained, and experienced contributors with diverse backgrounds.
38+
The group is making decisions independently from the project, PyData, NumFOCUS, or any other organization.
39+
40+
The Working Group will work with the Astropy Project's Ombudsperson to resolve an incident: The NumFOCUS Code of Conduct Working group will review the incident, and provide recommendations on how to handle this or what consequences or sanction might be appropriate.
41+
As per `Astropy's governance charter <https://github.com/astropy/astropy-APEs/blob/main/APE0.rst>`__, the Astropy Ombudsperson along with the Coordination Committee will receive those recommendations and perform any actions necessary to address the concern.
42+
43+
Examples
44+
--------
45+
46+
To make this Code of Conduct more concrete, we provide here some hypothetical examples of how a Code of Conduct issue might arise that may be particular to our community:
47+
48+
- A member of the Astropy community might express a preference on
49+
an online forum for a specific tool or programming language
50+
(e.g., Python) over another language. If this preference is
51+
expressed as a personal preference or with reference to
52+
particular technical merits of that language vs. others, there
53+
is no violation of the Code of Conduct. However, if that member
54+
instead expresses this preference by way of insult to those who
55+
use another language, or via violent imagery directed at those
56+
other languages or its users, that would be an act of "tool
57+
shaming" and be a violation of the Code of Conduct.
58+
- If a member of the community knowingly uses a software tool or
59+
astronomical dataset in a public package or academic publication
60+
without acknowledging or citing the tool in a reasonable way
61+
requested by the upstream tool, this is a violation of the Code
62+
of Conduct. If the member makes a reasonable effort to find an
63+
acknowledgement and one is not available, this would not be a
64+
Code of Conduct violation (although it might or might not
65+
represent a violation of copyright law depending on the details
66+
of the situation and adopted license).
67+
- If an Astropy maintainer were to post a message in a public
68+
forum that is insulting an astronomy research community member's
69+
skills as a programmer, this would be a violation of the Code of
70+
Conduct, as the researcher is also a member of our community.
71+
Conversely, if a researcher insultingly rejected a maintainer's
72+
suggestion because the maintainer is not a scientist, this would
73+
be a violation by the researcher. If that same thing were stated
74+
in a meeting with other Astropy maintainers, it may or may not
75+
represent a code of conduct violation, depending on whether the
76+
intent is to insult vs. pointing out a skill lack in the
77+
community in a productive manner.

code_of_conduct_old_astropy.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
:orphan:
2+
3+
.. _astropy-org-coc-old:
4+
5+
Astropy Community Code of Conduct (prior to November 2025)
6+
==========================================================
7+
8+
**Astropy has switched to using NumFOCUS code of conduct, please see the** :ref:`astropy-org-coc` **for the current version.**
9+
10+
The community of participants in open source Astronomy projects is
11+
made up of members from around the globe with a diverse set of
12+
skills, personalities, and experiences. It is through these
13+
differences that our community experiences success and continued
14+
growth. We expect everyone in our community to follow these
15+
guidelines when interacting with others both inside and outside of
16+
our community. Our goal is to keep ours a positive, inclusive,
17+
successful, and growing community.
18+
19+
As members of the community,
20+
21+
- We pledge to treat all people with respect and provide a
22+
harassment- and bullying-free environment, regardless of sex,
23+
sexual orientation and/or gender identity, disability, physical
24+
appearance, body size, race, nationality, ethnicity, and
25+
religion. In particular, sexual language and imagery, sexist,
26+
racist, or otherwise exclusionary jokes are not appropriate.
27+
- We pledge to respect the work of others by recognizing
28+
acknowledgment/citation requests of original authors. As
29+
authors, we pledge to be explicit about how we want our own work
30+
to be cited or acknowledged.
31+
- We pledge to welcome those interested in joining the community,
32+
and realize that including people with a variety of opinions and
33+
backgrounds will only serve to enrich our community. In
34+
particular, discussions relating to pros/cons of various
35+
technologies, programming languages, and so on are welcome, but
36+
these should be done with respect, taking proactive measure to
37+
ensure that all participants are heard and feel confident that
38+
they can freely express their opinions.
39+
- We pledge to welcome questions and answer them respectfully,
40+
paying particular attention to those new to the community. We
41+
pledge to provide respectful criticisms and feedback in forums,
42+
especially in discussion threads resulting from code
43+
contributions.
44+
- We pledge to be conscientious of the perceptions of the wider
45+
community and to respond to criticism respectfully. We will
46+
strive to model behaviors that encourage productive debate and
47+
disagreement, both within our community and where we are
48+
criticized. We will treat those outside our community with the
49+
same respect as people within our community.
50+
- We pledge to help the entire community follow the code of
51+
conduct, and to not remain silent when we see violations of the
52+
code of conduct. We will take action when members of our
53+
community violate this code such as contacting
54+
confidential@astropy.org (all emails sent to this address will
55+
be treated with the strictest confidence) or talking privately
56+
with the person.
57+
58+
This code of conduct applies to all community situations online
59+
and offline, including mailing lists, forums, social media,
60+
conferences, meetings, associated social events, and one-to-one
61+
interactions.
62+
63+
Any related activity or project organized by members of the
64+
Astropy community, including affiliated packages, are welcome to
65+
have their own codes of conduct, but agree to also abide by the
66+
present code of conduct.
67+
68+
Parts of this code of conduct have been adapted from the PSF code
69+
of conduct.
70+
71+
The Astropy Community Code of Conduct is licensed under a `Creative Commons Attribution 4.0 International License <http://creativecommons.org/licenses/by/4.0/>`__.
72+
We encourage other communities related to ours to use or adapt this code as they see fit.

exts/rawfiles.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ def on_html_collect_pages(app):
1616
def setup(app) -> None:
1717
app.add_config_value("rawfiles", [], "html")
1818
app.connect("html-collect-pages", on_html_collect_pages)
19+
20+
return {
21+
"parallel_read_safe": True,
22+
"parallel_write_safe": True,
23+
}

index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Astropy
99

1010
acknowledging
1111
affiliated/index
12+
code_of_conduct
1213

1314
.. raw:: html
1415

0 commit comments

Comments
 (0)