File tree Expand file tree Collapse file tree 4 files changed +57
-2
lines changed Expand file tree Collapse file tree 4 files changed +57
-2
lines changed Original file line number Diff line number Diff line change
1
+ exclude : ' ^($|.*\.bin)'
2
+ repos :
3
+ - repo : https://github.com/ambv/black
4
+ rev : 18.6b4
5
+ hooks :
6
+ - id : black
7
+ args : [--safe, --quiet]
8
+ language_version : python3.6
9
+ - repo : https://github.com/pre-commit/pre-commit-hooks
10
+ rev : v1.3.0
11
+ hooks :
12
+ - id : trailing-whitespace
13
+ - id : end-of-file-fixer
14
+ - repo : local
15
+ hooks :
16
+ - id : rst
17
+ name : rst
18
+ entry : rst-lint --encoding utf-8
19
+ files : ^(CHANGELOG.rst|README.rst|HOWTORELEASE.rst|changelog/.*)$
20
+ language : python
21
+ additional_dependencies : [pygments, restructuredtext_lint]
22
+ python_version : python3.6
Original file line number Diff line number Diff line change
1
+ Here are the steps on how to make a new release.
2
+
3
+ 1. Create a ``release-VERSION `` branch from ``upstream/master ``.
4
+ 2. Update ``CHANGELOG.rst ``.
5
+ 3. Push a branch with the changes.
6
+ 4. Once all builds pass, push a tag to ``upstream ``.
7
+ 5. Merge the PR.
Original file line number Diff line number Diff line change @@ -322,6 +322,26 @@ temporarily:
322
322
return my_cm
323
323
324
324
325
+ Contributing
326
+ ============
327
+
328
+ Contributions are welcome! After cloning the repository, create a virtual env
329
+ and install ``pytest-mock `` in editable mode with ``dev `` extras:
330
+
331
+ .. code-block :: console
332
+
333
+ $ pip install --editable .[dev]
334
+ $ pre-commit install
335
+
336
+ Tests are run with ``tox ``, you can run the baseline environments before submitting a PR:
337
+
338
+ .. code-block :: console
339
+
340
+ $ tox -e py27,py36,linting
341
+
342
+ Style checks and formatting are done automatically during commit courtesy of
343
+ `pre-commit <https://pre-commit.com >`_.
344
+
325
345
License
326
346
=======
327
347
Original file line number Diff line number Diff line change 1
- from setuptools import setup
2
-
3
1
from io import open
4
2
3
+ from setuptools import setup
4
+
5
5
setup (
6
6
name = 'pytest-mock' ,
7
7
entry_points = {
23
23
description = 'Thin-wrapper around the mock package for easier use with py.test' ,
24
24
long_description = open ('README.rst' , encoding = 'utf-8' ).read (),
25
25
keywords = "pytest mock" ,
26
+ extras_require = {
27
+ "dev" : [
28
+ "pre-commit" ,
29
+ "tox" ,
30
+ ]
31
+ },
26
32
classifiers = [
27
33
'Development Status :: 5 - Production/Stable' ,
28
34
'Framework :: Pytest' ,
You can’t perform that action at this time.
0 commit comments