Bug reports, feature suggestions, and other contributions are greatly appreciated! pysat is a community-driven project and welcomes both feedback and contributions.
-
Submit bug reports, feature requests, and questions at GitHub
-
Make pull requests to the
develop
branch
Bug reports, questions, and feature requests should all be made as GitHub Issues. Templates are provided for each type of issue, to help you include all the necessary information.
Questions ^^^^^^^^^
Not sure how something works? Ask away! The more information you provide, the easier the question will be to answer.
Bug reports ^^^^^^^^^^^
When reporting a bug please include:
-
Your operating system name and version
-
Any details about your local setup that might be helpful in troubleshooting
-
Detailed steps to reproduce the bug
Feature requests and feedback ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The best way to send feedback is to file an issue.
If you are proposing a new feature or a change in something that already exists:
-
Explain in detail how it would work.
-
Keep the scope as narrow as possible, to make it easier to implement.
-
Remember that this is a volunteer-driven project, and that code contributions are welcome :)
To set up conjugate_map
for local development:
-
Clone your fork locally:
git clone [email protected]:your_name_here/conjugate_map.git
- Create a branch for local development:
git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
Tests for custom functions should be added to the appropriately named file once we develop unit tests.
-
When you're done making changes, check for pylint or flake8 for style:
flake8 . --count --select=D,E,F,H,W --show-source --statistics
-
Update/add documentation in the docstrings. Even if you don't think it's relevant, check to see if any existing examples have changed.
-
Add your name to the .zenodo.json file as an author
-
Commit your changes:
git add . git commit -m "Brief description of your changes"
-
Once you are happy with the local changes, push to GitHub:
git push origin name-of-your-bugfix-or-feature
Note that each push will trigger the Continuous Integration workflow.
-
Submit a pull request through the GitHub website. Pull requests should be made to the
develop
branch. Note that automated tests will be run on GitHub Actions, but these must be initialized by a project developer for first-time contributors.
If you need some code review or feedback while you're developing the code, just
make a pull request. Pull requests should be made to the develop
branch.
For merging, you should:
- Include an example for use
- Add a note to
CHANGELOG.md
about the changes - Update the author list in
zenodo.json
andCITATION.cff
, if applicable - Ensure that all checks passed (current checks include GitHub Actions)
If you don't have all the necessary Python versions available locally or have trouble building all the testing environments, you can rely on GitHub Actions to run the tests for each change you add in the pull request. Because testing here will delay tests by other developers, please ensure that the code passes all tests on your local system first.
In general, conjugate_map
follows PEP8. Pylint
checks for style. However, there are certain additional style elements that
have been adopted to ensure the project maintains a consistent coding style.
These include:
- Line breaks should occur before a binary operator (ignoring flake8 W503)
- Combine long strings using
join
- Preferably break long lines on open parentheses rather than using
\
- Use no more than 79 characters per line
- Several dependent packages have common nicknames, including:
import datetime as dt
import numpy as np
import pandas as pd
- When incrementing a timestamp, use
dt.timedelta
instead ofpd.DateOffset
when possible to reduce program runtime - All classes should have
__repr__
and__str__
functions - Try to avoid creating a try/except statement where except passes
- Block and inline comments should use proper English grammar and punctuation with the exception of single sentences in a block, which may then omit the final period
- When casting is necessary, use
np.int64
andnp.float64
to ensure operating system agnosticism