Skip to content

Commit aded5d3

Browse files
authored
refactor: add minor elements to the repo - round (1) (#57)
1 parent 909ac45 commit aded5d3

File tree

5 files changed

+140
-51
lines changed

5 files changed

+140
-51
lines changed

.gitpod.dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Based on:
22
# https://www.gitpod.io/docs/configure/workspaces/workspace-image#custom-base-image
3-
FROM ubuntu:latest
3+
FROM ubuntu:22.04
44

55
# Install:
66
# - git (and git-lfs), for git operations (to e.g. push your work).
77
# Also required for setting up your configured dotfiles in the workspace.
8-
# - sudo, while not required, is recommended to be installed, since the
8+
# - gosu, while not required, is recommended to be installed, since the
99
# workspace user (`gitpod`) is non-root and won't be able to install
1010
# and use `sudo` to install any other tools in a live workspace.
11-
RUN apt-get update && apt-get install -yq \
12-
git git-lfs sudo g++ make valgrind libmpfr-dev python3 python3-pip doxygen \
13-
&& pip install cpplint \
11+
RUN apt-get update && apt-get install -yq --no-install-recommends \
12+
git git-lfs gosu g++ make valgrind libmpfr-dev python3 python3-pip doxygen \
13+
&& pip install cpplint pre-commit \
1414
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
1515

1616
# Create the gitpod user. UID must be 33333.
17-
RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod
17+
RUN useradd -l -u 33333 -md /home/gitpod -s /bin/bash -p gitpod gitpod
1818

1919
USER gitpod

.gitpod.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
image:
22
file: .gitpod.dockerfile
3+
4+
tasks:
5+
6+
- name: main
7+
8+
command: |
9+
parse_git_branch() { git branch --show-current ; }
10+
export PS1="\e[1;37m(\$(parse_git_branch)) \e[0;33m\w \e[1;37m$\e[0m "
11+
echo "Ready to work!"
12+
echo "Remember to switch to a feature branch before starting the development :)"
13+
14+
github:
15+
prebuilds:
16+
# enable for the default branch
17+
master: true
18+
# enable for all branches in this repo
19+
branches: true
20+
# enable for pull requests coming from this repo
21+
pullRequests: true
22+
# enable for pull requests coming from forks
23+
pullRequestsFromForks: false
24+
# add a check to pull requests
25+
addCheck: prevent-merge-on-error
26+
# add a "Review in Gitpod" button as a comment to pull requests
27+
addComment: false
28+
# add a "Review in Gitpod" button to the pull request's description
29+
addBadge: true

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @AngryMaciek

CODE_OF_CONDUCT.md

Lines changed: 105 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,133 @@
1+
12
# Contributor Covenant Code of Conduct
23

34
## Our Pledge
45

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, body
8-
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
10-
appearance, race, religion, or sexual identity and orientation.
6+
We as members, contributors, and leaders pledge to make participation in our
7+
community a harassment-free experience for everyone, regardless of age, body
8+
size, visible or invisible disability, ethnicity, sex characteristics, gender
9+
identity and expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, caste, color, religion, or sexual
11+
identity and orientation.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
1115

1216
## Our Standards
1317

14-
Examples of behavior that contributes to creating a positive environment
15-
include:
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
1620

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

23-
Examples of unacceptable behavior by participants include:
29+
Examples of unacceptable behavior include:
2430

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

34-
## Our Responsibilities
40+
## Enforcement Responsibilities
3541

36-
Project maintainers are responsible for clarifying the standards of acceptable
37-
behavior and are expected to take appropriate and fair corrective action in
38-
response to any instances of unacceptable behavior.
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
3946

40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
4551

4652
## Scope
4753

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

5560
## Enforcement
5661

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

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

68116
## Attribution
69117

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
118+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119+
version 2.1, available at
120+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121+
122+
Community Impact Guidelines were inspired by
123+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127+
[https://www.contributor-covenant.org/translations][translations].
72128

73-
[homepage]: https://www.contributor-covenant.org
129+
[homepage]: https://www.contributor-covenant.org
130+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131+
[Mozilla CoC]: https://github.com/mozilla/diversity
132+
[FAQ]: https://www.contributor-covenant.org/faq
133+
[translations]: https://www.contributor-covenant.org/translations

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/AngryMaciek/hypercomplex)
12
[![build](https://github.com/AngryMaciek/hypercomplex/workflows/Include/badge.svg?branch=master)](https://github.com/AngryMaciek/hypercomplex/actions?query=workflow%3AInclude)
23
[![build](https://github.com/AngryMaciek/hypercomplex/workflows/Install/badge.svg?branch=master)](https://github.com/AngryMaciek/hypercomplex/actions?query=workflow%3AInstall)
34
[![build](https://github.com/AngryMaciek/hypercomplex/workflows/Catch2/badge.svg?branch=master)](https://github.com/AngryMaciek/hypercomplex/actions?query=workflow%3ACatch2)

0 commit comments

Comments
 (0)