Skip to content

Commit a69de84

Browse files
committed
chore: add repository documentation and templates
Signed-off-by: suin <[email protected]>
1 parent 78c13c7 commit a69de84

File tree

7 files changed

+282
-0
lines changed

7 files changed

+282
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Module Name**
11+
Which module has the bug? (e.g., filepath)
12+
13+
**Describe the bug**
14+
A clear description of what the bug is.
15+
16+
**To Reproduce**
17+
Steps to reproduce the behavior:
18+
1. Import module '...'
19+
2. Use function '....'
20+
3. With input '....'
21+
4. See error
22+
23+
**Expected behavior**
24+
What you expected to happen.
25+
26+
**Actual behavior**
27+
What actually happened.
28+
29+
**Code Example**
30+
```python
31+
# Add your KCL code here
32+
```
33+
34+
**Environment:**
35+
- OS: [e.g., macOS]
36+
- KCL Version: [e.g., 0.5.0]
37+
- Module Version: [e.g., 1.0.0]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Module Name**
11+
Which module is this feature request for? (e.g., filepath, or "New Module" if proposing a new one)
12+
13+
**Is your feature request related to a problem? Please describe.**
14+
A clear description of what the problem is. Ex. I'm always frustrated when [...]
15+
16+
**Describe the solution you'd like**
17+
A clear description of what you want to happen.
18+
19+
**Describe alternatives you've considered**
20+
A clear description of any alternative solutions or features you've considered.
21+
22+
**Example Usage**
23+
If possible, show how you would like to use this feature in KCL code:
24+
25+
```python
26+
# Your example KCL code here
27+
```
28+
29+
**Additional context**
30+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Description
2+
3+
Please include:
4+
- What changes does this PR introduce?
5+
- Which module is affected?
6+
- Why was this change needed?
7+
8+
## Type of change
9+
10+
- [ ] Bug fix
11+
- [ ] New feature
12+
- [ ] Documentation update
13+
- [ ] Performance improvement
14+
- [ ] Code cleanup or refactor
15+
16+
## How Has This Been Tested?
17+
18+
Please describe the tests you added or the existing tests that cover this change.
19+
20+
## Checklist:
21+
22+
- [ ] My code follows the style guidelines of this project
23+
- [ ] I have added tests that prove my fix is effective or that my feature works
24+
- [ ] I have updated the documentation accordingly
25+
- [ ] My changes generate no new warnings
26+
- [ ] I have added examples to demonstrate the new feature (if applicable)
27+
28+
## Additional Notes
29+
30+
Any additional information that would be helpful for reviewers.

CODE_OF_CONDUCT.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
## Scope
47+
48+
This Code of Conduct applies within all community spaces, and also applies when
49+
an individual is officially representing the community in public spaces.
50+
51+
## Enforcement
52+
53+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
54+
reported to the community leaders responsible for enforcement through GitHub issues.
55+
All complaints will be reviewed and investigated promptly and fairly.
56+
57+
## Attribution
58+
59+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
60+
version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

CONTRIBUTING.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributing to KCL Modules
2+
3+
Thank you for your interest in contributing to our KCL Modules! This document provides guidelines and instructions for contributing.
4+
5+
## Code of Conduct
6+
7+
This project and everyone participating in it is governed by our [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
8+
9+
## How to Contribute
10+
11+
### Reporting Bugs
12+
13+
1. Check if the bug has already been reported in our [Issues](https://github.com/appthrust/kcl-modules/issues)
14+
2. If not, create a new issue using the bug report template
15+
3. Include as much detail as possible:
16+
- Which module you're using
17+
- What you expected to happen
18+
- What actually happened
19+
- Steps to reproduce
20+
- Code examples
21+
22+
### Suggesting Enhancements
23+
24+
1. Check if the enhancement has already been suggested in our [Issues](https://github.com/appthrust/kcl-modules/issues)
25+
2. If not, create a new issue using the feature request template
26+
3. Describe your use case and why this enhancement would be useful
27+
28+
### Pull Requests
29+
30+
1. Fork the repository
31+
2. Create a new branch for your changes
32+
3. Make your changes
33+
4. Add or update tests as needed
34+
5. Update documentation if needed
35+
6. Submit a pull request using our pull request template
36+
37+
## Development Setup
38+
39+
1. Install KCL
40+
2. Clone the repository
41+
3. Install dependencies:
42+
```bash
43+
nix develop
44+
```
45+
46+
## Adding a New Module
47+
48+
1. Create a new directory for your module
49+
2. Include:
50+
- README.md with documentation
51+
- kcl.mod file
52+
- Source code files
53+
- Test files
54+
3. Update the top-level README.md to include your module
55+
56+
## Testing
57+
58+
- Write tests for any new functionality
59+
- Run tests using:
60+
```bash
61+
kcl test ./...
62+
```
63+
64+
## Documentation
65+
66+
- Keep READMEs up to date
67+
- Document all public functions and types
68+
- Include examples in documentation
69+
- Update the changelog when making changes
70+
71+
## Questions?
72+
73+
Feel free to create an issue for any questions about contributing.
74+
75+
Thank you for contributing to KCL Modules!

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 AppThrust
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# KCL Modules
2+
3+
This is a monorepo containing useful KCL modules that help you write better KCL code.
4+
5+
## Available Modules
6+
7+
### filepath
8+
9+
A module that helps you work with file paths safely and consistently. [Learn more](./filepath/README.md)
10+
11+
## Installation
12+
13+
Each module can be installed using the KCL package manager. For example:
14+
15+
```bash
16+
# Install filepath module
17+
kcl mod add oci://ghcr.io/appthrust/kcl/filepath
18+
```
19+
20+
## Contributing
21+
22+
We welcome contributions! Please see our [Contributing Guide](./CONTRIBUTING.md) for details.
23+
24+
## License
25+
26+
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.

0 commit comments

Comments
 (0)