Skip to content

Commit b0a5899

Browse files
committed
Add lint just for python files
1 parent 47e6e4c commit b0a5899

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ jobs:
8585
- 'venv'
8686

8787
- run:
88-
name: Run lint
88+
name: Run lint for Python files
8989
command: |
9090
. venv/bin/activate
91-
npm run lint
91+
npm run lint:python
9292
when: always
9393

9494
- run:

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"format.prettier": "prettier --config .prettierrc --write src/**/*.js src/**/**/*.js",
2222
"format.black": "black dash_cytoscape/ tests/ setup.py usage-advanced.py usage-elements.py usage-events.py usage-stylesheet.py usage.py",
2323
"format": "npm run format.eslint && npm run format.prettier && npm run format.black",
24-
"lint": "npm run lint.flake8 && npm run lint.pylint && npm run lint.eslint && npm run lint.prettier && npm run lint.black",
24+
"lint:js": "npm run lint.eslint && npm run lint.prettier",
25+
"lint:python": "npm run lint.flake8 && npm run lint.pylint && npm run lint.black",
26+
"lint:all": "npm run lint:python && npm run lint:js",
2527
"build:js-dev": "webpack --mode development",
2628
"build:js": "webpack --mode production",
2729
"build:js-dev-extra": "webpack --config webpack.dev.extra.config.js",

0 commit comments

Comments
 (0)