File tree Expand file tree Collapse file tree 3 files changed +21
-31
lines changed Expand file tree Collapse file tree 3 files changed +21
-31
lines changed Original file line number Diff line number Diff line change @@ -3,28 +3,22 @@ default_language_version:
3
3
fail_fast : true
4
4
repos :
5
5
- repo : git://github.com/pre-commit/pre-commit-hooks
6
- rev : c8bad492e1b1d65d9126dba3fe3bd49a5a52b9d6 # v2.1.0
6
+ rev : v2.1.0
7
7
hooks :
8
- - id : check-merge-conflict
9
- - id : check-yaml
10
- - id : debug-statements
11
- - id : end-of-file-fixer
12
- exclude : ^docs/.*$
13
- - id : trailing-whitespace
14
- exclude : README.md
8
+ - id : check-merge-conflict
9
+ - id : check-yaml
10
+ - id : debug-statements
11
+ - id : end-of-file-fixer
12
+ exclude : ^docs/.*$
13
+ - id : trailing-whitespace
14
+ exclude : README.md
15
+ - id : flake8
15
16
- repo : https://github.com/pre-commit/mirrors-mypy
16
17
rev : v0.701
17
18
hooks :
18
19
- id : mypy
19
- language_version : python3.7
20
20
args : [--ignore-missing-imports, --no-strict-optional]
21
- - repo : https://github.com/pre-commit/pre-commit-hooks
22
- rev : v2.0.0
23
- hooks :
24
- - id : flake8
25
- language_version : python3.7
26
21
- repo : https://github.com/python/black
27
22
rev : stable
28
23
hooks :
29
24
- id : black
30
- language_version : python3.7
Original file line number Diff line number Diff line change 7
7
"pydantic>=0.25,<0.30" ,
8
8
]
9
9
10
- tests_require = [
11
- "pytest==4.6.3" ,
12
- "pytest-cov==2.7.1" ,
10
+ dev_requirements = [
11
+ "tox==3.7.0" , # Should be kept in sync with tox.ini
12
+ "mypy==0.701" ,
13
+ "black==19.3b0" ,
14
+ "pre-commit==1.14.4" ,
13
15
]
16
+ test_requirements = ["pytest==4.6.3" , "pytest-cov==2.7.1" ]
14
17
15
18
setup (
16
19
name = "graphene-pydantic" ,
32
35
keywords = "api graphql protocol rest relay graphene pydantic model" ,
33
36
packages = find_packages (exclude = ["tests" ]),
34
37
install_requires = requirements ,
35
- extras_require = {
36
- "dev" : [
37
- "tox==3.7.0" , # Should be kept in sync with tox.ini
38
- "pre-commit==1.14.4" ,
39
- ],
40
- "test" : tests_require ,
41
- },
42
- tests_require = tests_require ,
38
+ extras_require = {"dev" : dev_requirements , "test" : test_requirements },
39
+ tests_require = test_requirements ,
43
40
)
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist = pre-commit,py{36,37}
3
- skipsdist = true
3
+ skipsdist = {env:TOXBUILD:false}
4
4
5
5
[testenv]
6
6
deps =
7
+ .[dev]
7
8
.[test]
8
- mypy
9
- black
10
9
commands =
11
10
pytest tests/ --cov-report =term-missing --cov =graphene_pydantic {posargs}
12
11
mypy --ignore-missing-imports --no-strict-optional -m graphene_pydantic
13
12
black --check graphene_pydantic
14
13
15
14
[testenv:pre-commit]
16
- basepython = python3.7
15
+ basepython = python3.7
17
16
deps =
18
17
.[dev]
19
18
commands =
20
- pre-commit {posargs:run --all-files}
19
+ pre-commit {posargs:run --all-files}
You can’t perform that action at this time.
0 commit comments