Debian Codegraph @

citeproc/data/schema/CONTRIBUTING.md

raw
1 # How to Contribute
2
3 ## Pull Requests
4
5 We encourage pull requests. Please use the following guidelines:
6
7 - in general, follow [these recommendations](https://www.freecodecamp.org/news/writing-good-commit-messages-a-practical-guide/) on writing good commit messages
8 - make sure your PRs are focused, and link where possible to existing issues
9 - follow the instructions on the PR template
10
11 ## Issues
12
13 Regardless of the change, however, the current status of CSL requires us to be fairly conservative. For issue reports, please follow the template instructions, and include all specified information. It's important for us to be able to quickly understand what you are requesting, how broad the need is, and what implementation options there are.
14
15 ## Versioning
16
17 ### Changes to the CSL Schema
18
19 At this point, changes to the CSL RELAX NG schema consist of the following:
20
21 <dl>
22 <dt>Changes to csl-categories.rnc, csl-terms.rnc, csl-types.rnc, or csl-variables.rnc</dt>
23 <dd>Adding new variables, item types, locators, or terms; these can usually be added to minor x.x.x version changes.</dd>
24 <dt>Changes to csl.rnc</dt>
25 <dd>These are often more significant and may have an impact on compatability, and so are typically reserved for major x.x version changes.</dd>
26 </dl>
27
28 ### Changes to the CSL-JSON Schema
29
30 The data schemas are intended to mirror the `rnc` files, and so follow similar conventions. Ideally when we add variables, we add to both at the same time.
31
32 ## Pre-Commit Hooks
33
34 The repository includes a [pre-commit](https://pre-commit.com) configuration file, and a pre-commit hook, which will run linters for changes on any `rnc`, `json`, or `yaml` files.
35 To install them, do the following from your local repo:
36
37 ``` console
38 pip install pre-commit
39 pre-commit install
40 ```
41