Skip to content

Commit f2870e2

Browse files
authored
Merge branch '0.2' into doc
2 parents 67f73a6 + 1320f52 commit f2870e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3499
-1657
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixes #ISSUE_NUMBER

.pylintrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ logging-modules=logging
214214

215215

216216
[FORMAT]
217+
217218
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
218219
expected-line-ending-format=
219220

@@ -249,8 +250,6 @@ single-line-if-stmt=no
249250

250251

251252
[BASIC]
252-
# Allow redefinition of input builtins
253-
allowed-redefined-builtins=input
254253

255254
# Naming hint for argument names
256255
argument-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
@@ -402,7 +401,7 @@ max-returns=6
402401
max-statements=50
403402

404403
# Minimum number of public methods for a class (see R0903).
405-
min-public-methods=0
404+
min-public-methods=2
406405

407406

408407
[CLASSES]

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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 at
63+
pina.mathlab@gmail.com.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

Lines changed: 94 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,94 @@
1-
## How to contribute
2-
We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
3-
4-
### Submitting a patch
5-
6-
1. It's generally best to start by opening a new issue describing the bug or
7-
feature you're intending to fix. Even if you think it's relatively minor,
8-
it's helpful to know what people are working on. Mention in the initial
9-
issue that you are planning to work on that bug or feature so that it can
10-
be assigned to you.
11-
12-
2. Follow the normal process of [forking][] the project, and setup a new
13-
branch to work in. It's important that each group of changes be done in
14-
separate branches in order to ensure that a pull request only includes the
15-
commits related to that bug or feature.
16-
17-
3. To ensure properly formatted code, please make sure to use 4
18-
spaces to indent the code. The easy way is to run on your bash the provided
19-
script: ./code_formatter.sh. You should also run [pylint][] over your code.
20-
It's not strictly necessary that your code be completely "lint-free",
21-
but this will help you find common style issues.
22-
23-
4. Any significant changes should almost always be accompanied by tests. The
24-
project already has good test coverage, so look at some of the existing
25-
tests if you're unsure how to go about it. We're using [coveralls][] that
26-
is an invaluable tools for seeing which parts of your code aren't being
27-
exercised by your tests.
28-
29-
5. Do your best to have [well-formed commit messages][] for each change.
30-
This provides consistency throughout the project, and ensures that commit
31-
messages are able to be formatted properly by various git tools.
32-
33-
6. Finally, push the commits to your fork and submit a [pull request][]. Please,
34-
remember to rebase properly in order to maintain a clean, linear git history.
35-
36-
[forking]: https://help.github.com/articles/fork-a-repo
37-
[pylint]: https://www.pylint.org/
38-
[coveralls]: https://coveralls.io
39-
[well-formed commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
40-
[pull request]: https://help.github.com/articles/creating-a-pull-request
1+
# Contributing to PINA
2+
3+
First off, thanks for taking the time to contribute to **PINA**! 🎉 Your help makes the project better for everyone. This document outlines the process for contributing, reporting issues, suggesting features, and submitting pull requests.
4+
5+
---
6+
7+
## Table of Contents
8+
9+
1. [How to Contribute](#how-to-contribute)
10+
2. [Reporting Bugs](#reporting-bugs)
11+
3. [Suggesting Enhancements](#suggesting-enhancements)
12+
4. [Pull Request Process](#pull-request-process)
13+
5. [Code Style & Guidelines](#code-style--guidelines)
14+
6. [Community Standards](#community-standards)
15+
16+
---
17+
18+
## How to Contribute
19+
20+
You can contribute in several ways:
21+
- Reporting bugs
22+
- Suggesting features/enhancements
23+
- Submitting fixes or improvements via Pull Requests (PRs)
24+
- Improving documentation
25+
26+
We encourage all contributions, big or small!
27+
28+
---
29+
30+
## Reporting Bugs
31+
32+
If you find a bug, please open an [issue](https://github.com/mathLab/PINA/issues) and include:
33+
- A clear and descriptive title
34+
- Steps to reproduce the problem
35+
- What you expected to happen
36+
- What actually happened
37+
- Any relevant logs, screenshots, or error messages
38+
- Environment info (OS, Python version, dependencies, etc.)
39+
40+
---
41+
42+
## Suggesting Enhancements
43+
44+
We welcome new ideas! If you have an idea to improve PINA:
45+
1. Check the [issue tracker](https://github.com/mathLab/PINA/issues) or the [discussions](https://github.com/mathLab/PINA/discussions) to see if someone has already suggested it.
46+
2. If not, open a new issue describing:
47+
- The enhancement you'd like
48+
- Why it would be useful
49+
- Any ideas on how to implement it (optional but helpful)
50+
3. If you are not sure about (something of) the enhancement, we suggest to open a discussion to collaborate on it with the PINA community
51+
52+
---
53+
54+
## Pull Request Process
55+
56+
Before submitting a PR:
57+
58+
1. Ensure there’s an open issue related to your contribution (or create one).
59+
2. [Fork](https://help.github.com/articles/fork-a-repo) the repository and create a new branch from `master`:
60+
```bash
61+
git checkout -b feature/my-feature
62+
```
63+
3. Make your changes:
64+
- Write clear, concise, and well-documented code
65+
- Add or update tests where appropriate
66+
- Update documentation if necessary
67+
4. Verify your changes by running tests:
68+
```bash
69+
pytest
70+
```
71+
5. Properly format your code. If you want save time, simply run:
72+
```bash
73+
bash code_formatter.sh
74+
```
75+
7. Submit a [pull request](https://help.github.com/articles/creating-a-pull-request) with a clear explanation of your changes and reference the related issue if applicable.
76+
77+
### Pull Request Checklist
78+
- [ ] Code follows the project’s style guidelines
79+
- [ ] Tests have been added or updated
80+
- [ ] Documentation has been updated if necessary
81+
- [ ] Pull request is linked to an open issue (if applicable)
82+
83+
---
84+
85+
## Code Style & Guidelines
86+
- Follow PEP8 for Python code.
87+
- Use descriptive commit messages (e.g. `Fix parser crash on empty input`).
88+
- Write clear docstrings for public classes, methods, and functions.
89+
- Keep functions small and focused; do one thing and do it well.
90+
91+
---
92+
93+
## Community Standards
94+
By participating in this project, you agree to abide by our Code of Conduct. We are committed to maintaining a welcoming and inclusive community.

SECURITY.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Security Policy
2+
3+
Security and bug fixes are generally provided only for the last minor version. Fixes are released either as part of the next minor version or as an on-demand patch version.
4+
5+
Security fixes are given priority and might be enough to cause a new version to be released.
6+
7+
8+
## Supported Versions
9+
10+
11+
| Version | Supported |
12+
| ------- | ------------------ |
13+
| 0.2 ||
14+
| 0.1 ||
15+
16+
## Reporting a Vulnerability
17+
18+
To ensure vulnerability reports reach the maintainers as quickly as possible, the preferred way is to use the ["Report a vulnerability"](https://github.com/mathLab/PINA/security/advisories/new) button under the "Security" tab of the associated GitHub project. This creates a private communication channel between the reporter and the maintainers.

0 commit comments

Comments
 (0)