Skip to content

Commit 1fda4f2

Browse files
authored
chore(testing): configure the slow marker (#51)
1 parent 18e9235 commit 1fda4f2

File tree

6 files changed

+251
-188
lines changed

6 files changed

+251
-188
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 75 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,110 @@
1-
# Contributor Covenant Code of Conduct
1+
# Contributor Covenant 3.0 Code of Conduct
22

33
## Our Pledge
44

5-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size,
6-
visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status,
7-
nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
5+
We pledge to make our community welcoming, safe, and equitable for all.
86

9-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
7+
We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics
8+
including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual
9+
orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of
10+
participation are extended to everyone who participates in good faith and in accordance with this Covenant.
1011

11-
## Our Standards
1212

13-
Examples of behavior that contributes to a positive environment for our community include:
13+
## Encouraged Behaviors
1414

15-
* Demonstrating empathy and kindness toward other people
16-
* Being respectful of differing opinions, viewpoints, and experiences
17-
* Giving and gracefully accepting constructive feedback
18-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
19-
* Focusing on what is best not just for us as individuals, but for the overall community
15+
While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and
16+
actions may be interpreted differently than we intend based on culture, background, or native language.
2017

21-
Examples of unacceptable behavior include:
18+
With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
2219

23-
* The use of sexualized language or imagery, and sexual attention or advances of any kind
24-
* Trolling, insulting or derogatory comments, and personal or political attacks
25-
* Public or private harassment
26-
* Publishing others' private information, such as a physical or email address, without their explicit permission
27-
* Other conduct which could reasonably be considered inappropriate in a professional setting
20+
1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
21+
2. Engaging **kindly and honestly** with others.
22+
3. Respecting **different viewpoints** and experiences.
23+
4. **Taking responsibility** for our actions and contributions.
24+
5. Gracefully giving and accepting **constructive feedback**.
25+
6. Committing to **repairing harm** when it occurs.
26+
7. Behaving in other ways that promote and sustain the **well-being of our community**.
2827

29-
## Enforcement Responsibilities
3028

31-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in
32-
response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
29+
## Restricted Behaviors
3330

34-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not
35-
aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
31+
We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
3632

37-
## Scope
38-
39-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces.
40-
Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed
41-
representative at an online or offline event.
33+
1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
34+
2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
35+
3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
36+
4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
37+
5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
38+
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
39+
7. Behaving in other ways that **threaten the well-being** of our community.
4240

43-
## Enforcement
41+
### Other Restrictions
4442

45-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at
46-
<security@zenable.io>. All complaints will be reviewed and investigated promptly and fairly.
43+
1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
44+
2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
45+
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
46+
4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
4747

48-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
4948

50-
## Enforcement Guidelines
49+
## Reporting an Issue
5150

52-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
51+
Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and
52+
this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.
5353

54-
### 1. Correction
54+
When an incident does occur, it is important to report it promptly. To report a possible violation, **[NOTE: describe your means of reporting here.]**
5555

56-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
56+
Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of
57+
conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and
58+
enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried
59+
out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.
5760

58-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior
59-
was inappropriate. A public apology may be requested.
6061

61-
### 2. Warning
62+
## Addressing and Repairing Harm
6263

63-
**Community Impact**: A violation through a single incident or series of actions.
64+
**[NOTE: The remedies and repairs outlined below are suggestions based on best practices in code of conduct enforcement. If your community has its own
65+
established enforcement process, be sure to edit this section to describe your own policies.]**
6466

65-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those
66-
enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social
67-
media. Violating these terms may lead to a temporary or permanent ban.
67+
If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how
68+
best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower
69+
rungs on the ladder may be skipped.
6870

69-
### 3. Temporary Ban
71+
1) Warning
72+
1) Event: A violation involving a single incident or series of incidents.
73+
2) Consequence: A private, written warning from the Community Moderators.
74+
3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
75+
2) Temporarily Limited Activities
76+
1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
77+
2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
78+
3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
79+
3) Temporary Suspension
80+
1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
81+
2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
82+
3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
83+
4) Permanent Ban
84+
1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
85+
2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
86+
3) Repair: There is no possible repair in cases of this severity.
7087

71-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
88+
This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with
89+
the best interests of our community.
7290

73-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private
74-
interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these
75-
terms may lead to a permanent ban.
7691

77-
### 4. Permanent Ban
92+
## Scope
7893

79-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or
80-
aggression toward or disparagement of classes of individuals.
94+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other
95+
spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed
96+
representative at an online or offline event.
8197

82-
**Consequence**: A permanent ban from any sort of public interaction within the community.
8398

8499
## Attribution
85100

86-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at
87-
[https://www.contributor-covenant.org/version/2/1/code_of_conduct][v2.1].
88-
89-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
101+
This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at
102+
[https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
90103

91-
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
92-
[https://www.contributor-covenant.org/translations][translations].
104+
Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit
105+
[https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
93106

94-
[homepage]: https://www.contributor-covenant.org [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct [Mozilla CoC]:
95-
https://github.com/mozilla/diversity [FAQ]: https://www.contributor-covenant.org/faq [translations]: https://www.contributor-covenant.org/translations
107+
For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq).
108+
Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and
109+
community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement
110+
ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
echo "${RUNNER_TEMP}/bin" | tee -a "${GITHUB_PATH}"
7676
- name: Run the tests
7777
run: task -v test
78+
env:
79+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7880
- name: Run SBOM generation
7981
run: task -v sbom
8082
- name: Upload SBOM artifacts

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
exclude: '^{{cookiecutter\.project_name\|replace\(" ", ""\)}}/.*'
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: 6c5418a077bd954e7078087a655421b85772095b # frozen: v0.12.4
5+
rev: 54a455f7ce629598b7535ff828fd5fb796f4b83f # frozen: v0.12.9
66
hooks:
77
- id: ruff-check
88
types_or: [ python, pyi, jupyter ]
99
args: [ --fix ]
1010
- id: ruff-format
1111
types_or: [ python, pyi, jupyter ]
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
13+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
1414
hooks:
1515
- id: check-case-conflict
1616
- id: check-executables-have-shebangs
@@ -24,7 +24,7 @@ repos:
2424
- id: end-of-file-fixer
2525
- id: trailing-whitespace
2626
- repo: https://github.com/lycheeverse/lychee
27-
rev: e743ea3f5f02cd989452229f51b2b0c139037ff9 # frozen: nightly
27+
rev: 428baa39f3f848c13685ee3f1c8cf1e31a61deeb # frozen: nightly
2828
hooks:
2929
- id: lychee-docker
3030
# Keep all other configs in the config file
@@ -35,12 +35,12 @@ repos:
3535
hooks:
3636
- id: actionlint-docker
3737
- repo: https://github.com/koalaman/shellcheck-precommit
38-
rev: 2491238703a5d3415bb2b7ff11388bf775372f29 # frozen: v0.10.0
38+
rev: 99470f5e12208ff0fb17ab81c3c494f7620a1d8d # frozen: v0.11.0
3939
hooks:
4040
- id: shellcheck
4141
args: [ -x, --source-path=SCRIPTDIR ]
4242
- repo: https://github.com/trufflesecurity/trufflehog
43-
rev: 907ac64fd42b18dab2ceba2fda39834d3f8ba7e3 # frozen: v3.90.1
43+
rev: 0f58ae7c5036094a1e3e750d18772af92821b503 # frozen: v3.90.5
4444
hooks:
4545
- id: trufflehog
4646
# Check the past 2 commits; it's useful to make this go further back than main when running this where main and HEAD are equal

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pythonpath = ['.']
5555
markers = [
5656
"unit: marks tests as unit tests (deselect with '-m \"not unit\"')",
5757
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
58+
"slow: marks tests as slow tests (deselect with '-m \"not slow\"')",
5859
]
5960

6061
[tool.uv]

0 commit comments

Comments
 (0)