Skip to content

Commit ebf67f5

Browse files
committed
address @jakirkham review
1 parent 1461163 commit ebf67f5

File tree

4 files changed

+37
-28
lines changed

4 files changed

+37
-28
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
<!--
2-
31
For bug reports, please follow the template below. For enhancement proposals, feel free
42
to use whatever template makes sense.
53

6-
-->
7-
84
#### Minimal, reproducible code sample, a copy-pastable example if possible
95

106
```python
@@ -27,5 +23,5 @@ Please provide the following:
2723
* Operating system (Linux/Windows/Mac)
2824
* How Zarr was installed (e.g., "using pip into virtual environment", or "using conda")
2925

30-
Also, if you think it might be relevant, please provide the output from ``pip list`` or
31-
``conda list`` depending on which was used to install Zarr.
26+
Also, if you think it might be relevant, please provide the output from ``pip freeze`` or
27+
``conda env export`` depending on which was used to install Zarr.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
[Description of PR]
22

33
TODO:
4-
* [ ] Unit tests and/or doctests in docstrings
5-
* [ ] ``tox -e py36`` passes locally
6-
* [ ] ``tox -e py27`` passes locally
7-
* [ ] Docstrings and API docs for any new/modified user-facing classes and functions
4+
* [ ] Add unit tests and/or doctests in docstrings
5+
* [ ] Unit tests and doctests pass locally under Python 3.6 (e.g., run ``tox -e py36`` or
6+
``pytest -v --doctest-modules zarr``)
7+
* [ ] Unit tests pass locally under Python 2.7 (e.g., run ``tox -e py27`` or
8+
``pytest -v zarr``)
9+
* [ ] PEP8 checks pass (e.g., run ``tox -e py36`` or ``flake8 --max-line-length=100 zarr``)
10+
* [ ] Add docstrings and API docs for any new/modified user-facing classes and functions
811
* [ ] New/modified features documented in docs/tutorial.rst
12+
* [ ] Doctests in tutorial pass (e.g., run ``tox -e py36`` or ``python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst``)
913
* [ ] Changes documented in docs/release.rst
10-
* [ ] ``tox -e docs`` passes locally
14+
* [ ] Docs build locally (e.g., run ``tox -e docs``)
1115
* [ ] AppVeyor and Travis CI passes
1216
* [ ] Test coverage to 100% (Coveralls passes)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 Zarr Developers <https://github.com/zarr-developers>
3+
Copyright (c) 2015-2018 Zarr Developers <https://github.com/zarr-developers>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/contributing.rst

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ a bug report:
2828

2929

3030
```python
31-
>>> import zarr
32-
>>> g = zarr.group()
33-
...
31+
import zarr
32+
g = zarr.group()
33+
# etc.
3434
```
3535

36-
2. Information about the version of Zarr, along with versions of dependencies and the
36+
2. An explanation of why the current behaviour is wrong/not desired, and what you
37+
expect instead.
38+
39+
3. Information about the version of Zarr, along with versions of dependencies and the
3740
Python interpreter, and installation information. The version of Zarr can be obtained
3841
from the ``zarr.__version__`` property. Please also state how Zarr was installed,
3942
e.g., "installed via pip into a virtual environment", or "installed using conda".
40-
Information about other packages installed can be obtained by executing ``pip list``
41-
(if using pip to install packages) or ``conda list`` (if using conda to install
43+
Information about other packages installed can be obtained by executing ``pip freeze``
44+
(if using pip to install packages) or ``conda env export`` (if using conda to install
4245
packages) from the operating system command prompt. The version of the Python
4346
interpreter can be obtained by running a Python interactive session, e.g.::
4447

4548
$ python
4649
Python 3.6.1 (default, Mar 22 2017, 06:17:05)
4750
[GCC 6.3.0 20170321] on linux
4851

49-
3. An explanation of why the current behaviour is wrong/not desired, and what you
50-
expect instead.
51-
5252
Enhancement proposals
5353
---------------------
5454

@@ -60,7 +60,7 @@ mind that we are likely to be conservative in accepting proposals for new featur
6060
reasons for this are that we would like to keep the Zarr code base lean and focused on
6161
a core set of functionalities, and available time for development, review and maintenance
6262
of new features is limited. But if you have a great idea, please don't let that stop
63-
you posting it on GitHub, just please don't be offended if we respond cautiously.
63+
you from posting it on GitHub, just please don't be offended if we respond cautiously.
6464

6565
Contributing code and/or documentation
6666
--------------------------------------
@@ -103,6 +103,9 @@ To verify that your development environment is working, you can run the unit tes
103103
Creating a branch
104104
~~~~~~~~~~~~~~~~~
105105

106+
Before you do any new work or submit a pull request, please open an issue on GitHub to
107+
report the bug or propose the feature you'd like to add.
108+
106109
It's best to create a new, separate branch for each piece of work you want to do. E.g.::
107110

108111
git fetch upstream
@@ -113,16 +116,20 @@ this branch specific to one bug or feature so it is clear what the branch brings
113116
Zarr.
114117

115118
To update this branch with latest code from Zarr, you can retrieve the changes from
116-
the master branch::
119+
the master branch and perform a rebase::
117120

118121
git fetch upstream
119122
git rebase upstream/master
120123

121124
This will replay your commits on top of the latest Zarr git master. If this leads to
122125
merge conflicts, these need to be resolved before submitting a pull request.
126+
Alternatively, you can merge the changes in from upstream/master instead of rebasing,
127+
which can be simpler::
123128

124-
Before you do any new work or submit a pull request, please open an issue on GitHub to
125-
report the bug or propose the feature you'd like to add.
129+
git fetch upstream
130+
git merge upstream/master
131+
132+
Again, any conflicts need to be resolved before submitting a pull request.
126133

127134
Running the test suite
128135
~~~~~~~~~~~~~~~~~~~~~~
@@ -152,7 +159,9 @@ tox environment runs the doctests, i.e., doctests only need to succeed under Pyt
152159

153160
All tests are automatically run via Travis (Linux) and AppVeyor (Windows) continuous
154161
integration services for every pull request. Tests must pass under both services before
155-
code can be accepted.
162+
code can be accepted. Test coverage is also collected automatically via the Coveralls
163+
service, and total coverage over all builds must be 100% (although individual builds
164+
may be lower due to Python 2/3 or other differences).
156165

157166
Code standards
158167
~~~~~~~~~~~~~~
@@ -183,8 +192,8 @@ Documentation
183192

184193
Docstrings for user-facing classes and functions should follow the `numpydoc
185194
<https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt>`_ standard,
186-
including sections for Parameters and Examples. All examples will be run as doctests
187-
under Python 3.6.
195+
including sections for Parameters and Examples. All examples should run as doctests
196+
under Python 3.6 only.
188197

189198
Zarr uses Sphinx for documentation, hosted on readthedocs.org. Documentation is
190199
written in the RestructuredText markup language (.rst files) in the ``docs`` folder.

0 commit comments

Comments
 (0)