File tree Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ cache: pip
4
4
matrix :
5
5
fast_finish : true
6
6
include :
7
- - env : TOXENV=eslint
8
- - env : TOXENV=flake8
9
7
- env : TOXENV=style
10
8
- env : TOXENV=readme
11
9
- python : 3.5
Original file line number Diff line number Diff line change @@ -6,25 +6,22 @@ style: package-lock.json
6
6
isort .
7
7
black --target-version=py35 .
8
8
flake8
9
+ npx eslint --ignore-path .gitignore --fix .
9
10
npx prettier --ignore-path .gitignore --write $(PRETTIER_TARGETS )
10
11
11
12
style_check : package-lock.json
12
13
isort -c .
13
14
black --target-version=py35 --check .
14
- npx prettier --ignore-path .gitignore --check $(PRETTIER_TARGETS )
15
-
16
- flake8 :
17
15
flake8
16
+ npx eslint --ignore-path .gitignore .
17
+ npx prettier --ignore-path .gitignore --check $(PRETTIER_TARGETS )
18
18
19
19
example :
20
20
python example/manage.py migrate --noinput
21
21
-DJANGO_SUPERUSER_PASSWORD=p python example/manage.py createsuperuser \
22
22
--noinput --username=" $( USER) " --email=" $( USER) @mailinator.com"
23
23
python example/manage.py runserver
24
24
25
- eslint : package-lock.json
26
- npx eslint --ignore-path .gitignore .
27
-
28
25
package-lock.json : package.json
29
26
npm install
30
27
touch $@
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist =
3
- eslint
4
- flake8
5
3
style
6
4
readme
7
5
py{35,36,37,38}-dj22-sqlite
@@ -35,25 +33,15 @@ whitelist_externals = make
35
33
pip_pre = True
36
34
commands = make coverage TEST_ARGS =' {posargs:tests}'
37
35
38
- [testenv:flake8]
39
- basepython = python3
40
- commands = make flake8
41
- deps = flake8
42
- skip_install = true
43
-
44
36
[testenv:style]
45
37
basepython = python3
46
38
commands = make style_check
47
39
deps =
48
40
black>=19.10b0
41
+ flake8
49
42
isort>=5.0.2
50
43
skip_install = true
51
44
52
- [testenv:eslint]
53
- commands = make eslint
54
- deps =
55
- skip_install = true
56
-
57
45
[testenv:readme]
58
46
basepython = python3
59
47
commands = python setup.py check -r -s
You can’t perform that action at this time.
0 commit comments