Skip to content

Commit d1d9c7f

Browse files
committed
📝 Switched documentation to Markdown
1 parent 33b1e45 commit d1d9c7f

18 files changed

+376
-513
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented here.
4+
This changelog follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
5+
6+
## [Unreleased](https://github.com/drearondov/pygments-rose-pine/compare/v1.0.0...HEAD)
7+
8+
## [v1.0.0 (2023-12-07)](https://github.com/drearondow/pygments-rose-pine/compare/3f11e57...v1.0.0)
9+
10+
Initial release.
11+
12+
- Rose Pine main theme
13+
- Rose Pine Moon theme
14+
- Rose Pine Dawn theme

CHANGELOG.rst

-23
This file was deleted.

CODE_OF_CONDUCT.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
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, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
- Demonstrating empathy and kindness toward other people
14+
- Being respectful of differing opinions, viewpoints, and experiences
15+
- Giving and gracefully accepting constructive feedback
16+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
- Trolling, insulting or derogatory comments, and personal or political attacks
23+
- Public or private harassment
24+
- Publishing others\' private information, such as a physical or email address, without their explicit permission
25+
- Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32+
33+
## Scope
34+
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement via email. All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those 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 media. Violating these terms may lead to a temporary or permanent ban.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**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 interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64+
65+
## 4. Permanent Ban
66+
67+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available
74+
at <https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
75+
76+
Community Impact Guidelines were inspired by [Mozilla\'s code of conduct enforcement ladder](https://github.com/mozilla/diversity).
77+
78+
For answers to common questions about this code of conduct, see the FAQ at <https://www.contributor-covenant.org/faq>. Translations are available at <https://www.contributor-covenant.org/translations>.

CODE_OF_CONDUCT.rst

-140
This file was deleted.

CONTRIBUTING.md

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Contributing Guidelines
2+
3+
Please follow these guidelines for contributing to this project.
4+
5+
## Repository Management
6+
7+
- Fork this project into your own repository.
8+
- Follow the [version control](#version control) guidelines.
9+
- No changes should reach the `main` branch except by way of a [pull
10+
request](https://help.github.com/articles/using-pull-requests/).
11+
12+
### Submitting Issues
13+
14+
[Create an issue](https://help.github.com/articles/creating-an-issue) to report bugs or request enhancements. Better yet, you're encouraged to fix the problem yourself and submit a [pull request](https://help.github.com/articles/using-pull-requests/).
15+
16+
#### Bug Reports
17+
18+
When reporting a bug, please provide the steps to reproduce the problem and any details that could be important such as whether this is the first time this has happened or whether others are experiencing it.
19+
20+
#### Pull Requests
21+
22+
Pull requests must remain focused on fixing or addressing one thing (see [topic branch](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows#Topic-Branches) model). Make sure your pull request contains a clear title and description. Test coverage should not drop as a result. If you add code, you add tests.
23+
24+
Be sure to follow the guidelines on [writing code](#writing-code) if you want your work considered for inclusion.
25+
26+
### Handling Pull Requests
27+
28+
- Pull requests **must** include:
29+
- Title describing the change
30+
- Description explaining the change in detail
31+
- Tests
32+
- A maintainer will respond to Pull Requests with one of:
33+
- `Ship It`, `LGTM`, 🚢, or some other affirmation
34+
- What must be changed
35+
- Won't accept and why
36+
37+
> Submitting a [draft pull
38+
request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests)
39+
is a good way to get feedback from maintainers if you are unsure about
40+
your changes. - A pull request that has been approved may not be merged
41+
immediately. - You may be asked to rebase or squash your commits to keep
42+
an orderly version control history.
43+
44+
### Using Version Control
45+
46+
- [Fork](https://help.github.com/articles/fork-a-repo/) the [central repository](https://github.com/drearondov/pygments-rose-pines/) and work from a clone of your own fork.
47+
- Follow the [topic branch](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows#Topic-Branches) model and submit pull requests from branches named according to their purpose.
48+
- Review the [GitHub Flow](https://guides.github.com/introduction/flow/) documentation and, in general, try to stick to the principles outlined there.
49+
50+
## Writing Code
51+
52+
Writing code is a creative process and there will always be exceptions to the rules, but it\'s good to maintain certain standards. In general, please follow these code conventions.
53+
54+
### Coding Style
55+
56+
- Code in this project **must** be formatted with [black](https://black.readthedocs.io/en/stable/).
57+
- Code in this project **must** be linted with [flake8](https://flake8.pycqa.org/en/latest/).
58+
- Try to follow PEP8 guidelines.
59+
- Try to respect the style of existing code.
60+
61+
Coding style checks are bundled into the static analysis automation in this repository\'s [tox](https://tox.readthedocs.io/en/latest/) configuration. To validate your coding style run
62+
63+
``` sh
64+
tox -e static
65+
```
66+
67+
### Test Environment
68+
69+
- Code **must** be tested. Write or update related unit tests to avoid
70+
repeated manual testing.
71+
- Tests for this project are written using the [pytest](https://docs.pytest.org/en/latest/) framework and executed via [tox](https://tox.readthedocs.io/en/latest/).
72+
- While it isn\'t always achievable this project strives to maintain 💯% test coverage.
73+
- In addition to unit testing code in this project is
74+
- statically type checked using [mypy](http://www.mypy-lang.org/)
75+
- formatted with [black](https://black.readthedocs.io/en/stable/)
76+
- linted using [flake8](https://flake8.pycqa.org/en/latest/)
77+
- and security checked with [bandit](https://bandit.readthedocs.io/en/latest/)
78+
79+
Here are some example invocations for running unit tests/static
80+
analysis.
81+
82+
``` sh
83+
tox # Build and test the project
84+
tox -e py39 # in a specific environment
85+
tox -e py39 -- --pdb # with extra options,
86+
# or
87+
tox -e py39 --devenv venv # create a development environment
88+
venv/bin/python -V # and call scripts/binaries in it.
89+
```
90+
91+
### Documentation
92+
93+
- Public interfaces **must** be thoroughly documented. At a minimum this includes inputs, return types, exceptions raised, and surprising behavior like state changes.
94+
- Documentation for this project is written in [Markdown](https://www.markdownguide.org) and generated with [Sphinx](http://www.sphinx-doc.org/en/master/index.html).
95+
96+
To generate documentation run
97+
98+
``` sh
99+
tox -e docs
100+
```

0 commit comments

Comments
 (0)