lightningRalf winglian Nanobit commited on
Commit
31db0ec
β€’
1 Parent(s): da10af0

add templates, CoC and contributing guide (#126)

Browse files

* add templates, CoC and contributing guide

* Update .github/SECURITY.md

correct responsible person

Co-authored-by: Wing Lian <wing.lian@gmail.com>

* Update bug-report.yaml

axolotl version switch with axolotl branch-commit

* update CONTRIBUTING doc

* update reporting link

* linter fixes

* chore: fix linter

---------

Co-authored-by: Wing Lian <wing.lian@gmail.com>
Co-authored-by: NanoCode012 <kevinvong@rocketmail.com>

.github/CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
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.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
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
27
+
28
+ Examples of unacceptable behavior include:
29
+
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
33
+ * Public or private harassment
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
38
+
39
+ ## Enforcement Responsibilities
40
+
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.
45
+
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.
50
+
51
+ ## Scope
52
+
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.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement on Discord
63
+ at https://discord.gg/QYF8QrtEUm
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
85
+
86
+ **Community Impact**: A violation through a single incident or series
87
+ of 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
94
+ permanent 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
114
+ the community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.0, available at
120
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
121
+
122
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
123
+ enforcement ladder](https://github.com/mozilla/diversity).
124
+
125
+ [homepage]: https://www.contributor-covenant.org
126
+
127
+ For answers to common questions about this code of conduct, see the FAQ at
128
+ https://www.contributor-covenant.org/faq. Translations are available at
129
+ https://www.contributor-covenant.org/translations.
.github/CONTRIBUTING.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributing to axolotl
2
+
3
+ First of all, thank you for your interest in contributing to axolotl! We appreciate the time and effort you're willing to invest in making our project better. This document provides guidelines and information to make the contribution process as smooth as possible.
4
+
5
+ ## Table of Contents
6
+
7
+ - [Code of Conduct](#code-of-conduct)
8
+ - [Getting Started](#getting-started)
9
+ - [How to Contribute](#how-to-contribute)
10
+ - [Reporting Bugs](#reporting-bugs)
11
+ - [Suggesting Enhancements](#suggesting-enhancements)
12
+ - [Submitting Pull Requests](#submitting-pull-requests)
13
+ - [Style Guidelines](#style-guidelines)
14
+ - [Code Style](#code-style)
15
+ - [Commit Messages](#commit-messages)
16
+ - [Additional Resources](#additional-resources)
17
+
18
+ ## Code of Conductcode
19
+
20
+ All contributors are expected to adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). Please read it before participating in the axolotl community.
21
+
22
+ ## Getting Started
23
+
24
+ Bugs? Please check for open issue else create a new [Issue](https://github.com/OpenAccess-AI-Collective/axolotl/issues/new).
25
+
26
+ PRs are **greatly welcome**!
27
+
28
+ 1. Fork the repository and clone it to your local machine.
29
+ 2. Set up the development environment by following the instructions in the [README.md](https://github.com/OpenAccess-AI-Collective/axolotl/tree/main/README.md) file.
30
+ 3. Explore the codebase, run tests, and verify that everything works as expected.
31
+
32
+ Please run below to setup env
33
+ ```bash
34
+ pip3 install -r requirements-dev.txt -r requirements-tests.txt
35
+ pre-commit install
36
+
37
+ # test
38
+ pytest tests/
39
+ ```
40
+
41
+ ## How to Contribute
42
+
43
+ ### Reporting Bugs
44
+
45
+ If you encounter a bug or issue while using axolotl, please open a new issue on the [GitHub Issues](https://github.com/OpenAccess-AI-Collective/axolotl/issues) page. Provide a clear and concise description of the problem, steps to reproduce it, and any relevant error messages or logs.
46
+
47
+ ### Suggesting Enhancements
48
+
49
+ We welcome ideas for improvements and new features. To suggest an enhancement, open a new issue on the [GitHub Issues](https://github.com/OpenAccess-AI-Collective/axolotl/issues) page. Describe the enhancement in detail, explain the use case, and outline the benefits it would bring to the project.
50
+
51
+ ### Submitting Pull Requests
52
+
53
+ 1. Create a new branch for your feature or bugfix. Use a descriptive name like `feature/your-feature-name` or `fix/your-bugfix-name`.
54
+ 2. Make your changes, following the [Style Guidelines](#style-guidelines) below.
55
+ 3. Test your changes and ensure that they don't introduce new issues or break existing functionality.
56
+ 4. Commit your changes, following the [commit message guidelines](#commit-messages).
57
+ 5. Push your branch to your fork on GitHub.
58
+ 6. Open a new pull request against the `main` branch of the axolotl repository. Include a clear and concise description of your changes, referencing any related issues.
59
+
60
+ ## Style Guidelines
61
+
62
+ ### Code Style
63
+
64
+ axolotl uses [{codestyle}]({URLofCodestyle}) as its code style guide. Please ensure that your code follows these guidelines.
65
+
66
+ ### Commit Messages
67
+
68
+ Write clear and concise commit messages that briefly describe the changes made in each commit. Use the imperative mood and start with a capitalized verb, e.g., "Add new feature" or "Fix bug in function".
69
+
70
+ ## Additional Resources
71
+
72
+ - [GitHub Help](https://help.github.com/)
73
+ - [GitHub Pull Request Documentation](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests)
74
+ - [{codestyle}]({URLofCodestyle})
75
+
76
+ Thank you once again for your interest in contributing to axolotl. We look forward to collaborating with you and creating an even better project together!
.github/ISSUE_TEMPLATE/bug-report.yaml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Bug Report
2
+ description: File a bug report
3
+ labels: ["bug", "needs triage"]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ ## Before you start
9
+ Please **make sure you are on the latest version.**
10
+ If you encountered the issue after you installed, updated, or reloaded, **please try restarting before reporting the bug**.
11
+
12
+ - type: checkboxes
13
+ id: no-duplicate-issues
14
+ attributes:
15
+ label: "Please check that this issue hasn't been reported before."
16
+ description: "The **Label filters** may help make your search more focussed."
17
+ options:
18
+ - label: "I searched previous [Bug Reports](https://github.com/OpenAccess-AI-Collective/axolotl/labels/bug) didn't find any similar reports."
19
+ required: true
20
+
21
+ - type: textarea
22
+ id: expected
23
+ attributes:
24
+ label: Expected Behavior
25
+ description: Tell us what **should** happen.
26
+ validations:
27
+ required: true
28
+
29
+ - type: textarea
30
+ id: what-happened
31
+ attributes:
32
+ label: Current behaviour
33
+ description: |
34
+ Tell us what happens instead of the expected behavior.
35
+ Adding of screenshots really helps.
36
+ validations:
37
+ required: true
38
+
39
+ - type: textarea
40
+ id: reproduce
41
+ attributes:
42
+ label: Steps to reproduce
43
+ description: |
44
+ Which exact steps can a developer take to reproduce the issue?
45
+ The more detail you provide, the easier it will be to narrow down and fix the bug.
46
+ Please paste in tasks and/or queries **as text, not screenshots**.
47
+ placeholder: |
48
+ Example of the level of detail needed to reproduce any bugs efficiently and reliably.
49
+ 1. Go to the '...' page.
50
+ 2. Click on the '...' button.
51
+ 3. Scroll down to '...'.
52
+ 4. Observe the error.
53
+ validations:
54
+ required: true
55
+
56
+ - type: textarea
57
+ id: possible-solution
58
+ attributes:
59
+ label: Possible solution
60
+ description: |
61
+ Not obligatory, but please suggest a fix or reason for the bug, if you have an idea.
62
+
63
+
64
+ - type: checkboxes
65
+ id: operating-systems
66
+ attributes:
67
+ label: Which Operating Systems are you using?
68
+ description: You may select more than one.
69
+ options:
70
+ - label: Android
71
+ - label: iPhone/iPad
72
+ - label: Linux
73
+ - label: macOS
74
+ - label: Windows
75
+
76
+ - type: input
77
+ id: Python-version
78
+ attributes:
79
+ label: Python Version
80
+ description: Which {Programming} version are you using?
81
+ placeholder: 3.10 / please change accordingly
82
+ validations:
83
+ required: true
84
+
85
+ - type: input
86
+ id: axolotl-branch-commit
87
+ attributes:
88
+ label: axolotl branch-commit
89
+ description: On which branch/commit are you?
90
+ placeholder: main/4d6490b
91
+ validations:
92
+ required: true
93
+
94
+ - type: checkboxes
95
+ id: acknowledgements
96
+ attributes:
97
+ label: 'Acknowledgements'
98
+ description: 'Please confirm the following:'
99
+ options:
100
+ - label: 'My issue title is concise, descriptive, and in title casing.'
101
+ required: true
102
+ - label: 'I have searched the existing issues to make sure this bug has not been reported yet.'
103
+ required: true
104
+ - label: 'I am using the latest version of axolotl.'
105
+ required: true
106
+ - label: 'I have provided enough information for the maintainers to reproduce and diagnose the issue.'
107
+ required: true
.github/ISSUE_TEMPLATE/config.yml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Ask a question
4
+ url: https://github.com/OpenAccess-AI-Collective/axolotl/discussions/categories/q-a
5
+ about: Ask questions and discuss with other community members
6
+ - name: Discuss the Project in Discord
7
+ url: https://discord.gg/HhrNrHJPRb
.github/ISSUE_TEMPLATE/docs.yml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Documentation Improvement / Clarity
2
+ description: Make a suggestion to improve the project documentation.
3
+ labels: ['needs triage', 'docs']
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: '## :book: Documentation :book:'
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ * Ask questions in [Discord](https://discord.gg/HhrNrHJPRb).
12
+ * Before you file an issue read the [Contributing guide](./CONTRIBUTING.md).
13
+ * Check to make sure someone hasn't already opened a [similar issue](https://github.com/OpenAccess-AI-Collective/axolotl/issues).
14
+ - type: textarea
15
+ attributes:
16
+ label: What piece of documentation is affected?
17
+ description: Please link to the article you'd like to see updated.
18
+ validations:
19
+ required: true
20
+ - type: textarea
21
+ attributes:
22
+ label: What part(s) of the article would you like to see updated?
23
+ description: |
24
+ - Give as much detail as you can to help us understand the change you want to see.
25
+ - Why should the docs be changed? What use cases does it support?
26
+ - What is the expected outcome?
27
+ validations:
28
+ required: true
29
+ - type: textarea
30
+ attributes:
31
+ label: Additional Information
32
+ description: Add any other context or screenshots about the feature request here.
33
+ validations:
34
+ required: false
35
+ - type: checkboxes
36
+ id: acknowledgements
37
+ attributes:
38
+ label: 'Acknowledgements'
39
+ description: 'Please confirm the following:'
40
+ options:
41
+ - label: 'My issue title is concise, descriptive, and in title casing.'
42
+ required: true
43
+ - label: 'I have searched the existing issues to make sure this feature has not been requested yet.'
44
+ required: true
45
+ - label: 'I have provided enough information for the maintainers to understand and evaluate this request.'
46
+ required: true
.github/ISSUE_TEMPLATE/feature-request.yaml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Feature Request / Enhancement
2
+ description: Suggest a new feature or feature enhancement for the project
3
+ labels: ["enhancement", "needs triage"]
4
+ body:
5
+ - type: checkboxes
6
+ id: no-duplicate-issues
7
+ attributes:
8
+ label: "⚠️ Please check that this feature request hasn't been suggested before."
9
+ description: "There are two locations for previous feature requests. Please search in both. Thank you. The **Label filters** may help make your search more focussed."
10
+ options:
11
+ - label: "I searched previous [Ideas in Discussions](https://github.com/OpenAccess-AI-Collective/axolotl/discussions/categories/ideas) didn't find any similar feature requests."
12
+ required: true
13
+ - label: "I searched previous [Issues](https://github.com/OpenAccess-AI-Collective/axolotl/labels/enhancement) didn't find any similar feature requests."
14
+ required: true
15
+
16
+ - type: textarea
17
+ id: feature-description
18
+ validations:
19
+ required: true
20
+ attributes:
21
+ label: "πŸ”– Feature description"
22
+ description: "A clear and concise description of what the feature request is."
23
+ placeholder: "You should add ..."
24
+
25
+ - type: textarea
26
+ id: solution
27
+ validations:
28
+ required: true
29
+ attributes:
30
+ label: "βœ”οΈ Solution"
31
+ description: "A clear and concise description of what you want to happen, and why."
32
+ placeholder: "In my use-case, ..."
33
+
34
+ - type: textarea
35
+ id: alternatives
36
+ validations:
37
+ required: false
38
+ attributes:
39
+ label: "❓ Alternatives"
40
+ description: "A clear and concise description of any alternative solutions or features you've considered."
41
+ placeholder: "I have considered ..."
42
+
43
+ - type: textarea
44
+ id: additional-context
45
+ validations:
46
+ required: false
47
+ attributes:
48
+ label: "πŸ“ Additional Context"
49
+ description: "Add any other context or screenshots about the feature request here."
50
+ placeholder: "..."
51
+
52
+ - type: checkboxes
53
+ id: acknowledgements
54
+ attributes:
55
+ label: 'Acknowledgements'
56
+ description: 'Please confirm the following:'
57
+ options:
58
+ - label: 'My issue title is concise, descriptive, and in title casing.'
59
+ required: true
60
+ - label: 'I have searched the existing issues to make sure this feature has not been requested yet.'
61
+ required: true
62
+ - label: 'I have provided enough information for the maintainers to understand and evaluate this request.'
63
+ required: true
.github/PULL_REQUEST_TEMPLATE/pull_request_template_simple.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--- Provide a general summary of your changes in the Title above -->
2
+
3
+ # Description
4
+
5
+ <!--- Describe your changes in detail -->
6
+
7
+ ## Motivation and Context
8
+
9
+ <!--- Why is this change required? What problem does it solve? -->
10
+ <!--- If it fixes an open issue, please link to the issue here. -->
11
+
12
+ ## How has this been tested?
13
+
14
+ <!--- Please describe in detail how you tested your changes. -->
15
+ <!--- Include details of your testing environment, tests ran to see how -->
16
+ <!--- your change affects other areas of the code, etc. -->
17
+
18
+ ## Screenshots (if appropriate)
19
+
20
+ ## Types of changes
21
+
22
+ <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
.github/SECURITY.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Due to the nature of the fast development that is happening in this project, only the latest released version can be supported.
6
+
7
+ ## Reporting a Vulnerability
8
+
9
+ If you find a vulnerability, please contact us on [Discord](https://discord.gg/xcu3ECkH9a) rather than creating a GitHub issue to allow us some time to fix it before it is a known vulnerability to others.
.github/SUPPORT.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Support
2
+
3
+ If you need help with this project or have questions, please:
4
+
5
+ 1. Check the documentation.
6
+ 2. Search the existing issues and pull requests.
7
+ 3. Create a new issue if your question is not answered or your problem is not solved.
8
+ 4. Have a look in the [Discord server](https://discord.gg/HhrNrHJPRb)
9
+
10
+ Please note that this project is maintained by volunteers who have limited availability. We'll do our best to address your questions and concerns in a timely manner.
README.md CHANGED
@@ -662,7 +662,9 @@ PocketDoc Labs
662
 
663
  ## Contributing 🀝
664
 
665
- Bugs? Please check for open issue else create a new [Issue](https://github.com/OpenAccess-AI-Collective/axolotl/issues/new).
 
 
666
 
667
  PRs are **greatly welcome**!
668
 
 
662
 
663
  ## Contributing 🀝
664
 
665
+ Please read the [contributing guide](./.github/CONTRIBUTING.md)
666
+
667
+ Bugs? Please check the [open issues](https://github.com/OpenAccess-AI-Collective/axolotl/issues/bug) else create a new Issue.
668
 
669
  PRs are **greatly welcome**!
670