Bug reports, feature suggestions and other contributions are greatly appreciated! While I can't promise to implement everything, I will always respond in a timely manner.
- Submit bug reports and feature requests at GitHub
- Make pull requests to the
develop
branch
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, which could include:
- log file (use the
-l
option, check that it doesn't contain personal details) - the problematic part of your
.tex
file,.bib
file and/or.bbl
file
- log file (use the
Feel free to add additional configuration examples. This should include, in the style of the existing examples, a minimal working example (no more than the bare minimum to get it working and show how the configuration behaves). You must include:
- the configuration file (include all relevant settings -- don't rely on latexdiffcite's defaults to stay consistent across versions)
- an example
.bib
file or.bbl
file - an example
.tex
file - the output latexdiffcite would produce after replacing citation commands
Please run your JSON through a JSON validator and formatter before adding it to the docs.
The best way to send feedback is to file an issue at GitHub.
If you are proposing a feature:
- 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 contributions are welcome :)
To set up latexdiffcite for local development:
Fork latexdiffcite on GitHub.
Clone your fork locally:
git clone git@github.com:your_name_here/latexdiffcite.git
Create a branch for local development:
git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally. If you add functionality, also add a test in
tests/test_latexdiffcite.py
. The tests are run withpy.test
and can be written as normal functions (starting withtest_
) containing a standardassert
statement for testing output.When you're done making changes, run all the checks, doc builder and spell checker with tox:[1]
tox
Commit your changes and push your branch to GitHub:
git add . git commit -m "Brief description of your changes." git push origin name-of-your-bugfix-or-feature
Submit a pull request through the GitHub website. Pull requests should be made to the
develop
branch.
If you need some code review or feedback while you're developing the code, just make a pull request.
For merging, you should:
- Write passing tests for new functionality (run
tox
). [1] - Update/add documentation if relevant.
- Add yourself to
AUTHORS.rst
.
[1] | (1, 2) If you don't have all the necessary python versions available locally you can rely on Travis -- it will run the tests for each change you add in the pull request. It will be a bit slower than testing locally, though. |
To run a subset of tests:
tox -e envname -- py.test -k test_myfeature
To run all the test environments in parallel (you need to pip install detox
):
detox