Skip to content

Commit 9849a2c

Browse files
committed
always run black
1 parent ed20948 commit 9849a2c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/dash-core-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"private::format.black": "black dash_core_components_base/ tests/ setup.py",
1616
"private::format.eslint": "eslint src --fix",
1717
"private::format.prettier": "prettier --config .prettierrc --write src/**/*.js",
18-
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python312') !== 'python38'){process.exit(1)} \" || black --check dash_core_components_base/ tests/ setup.py",
18+
"private::lint.black": "black --check dash_core_components_base/ tests/ setup.py",
1919
"private::lint.eslint": "eslint src",
2020
"private::lint.flake8": "flake8 --exclude=dash_core_components,node_modules,venv",
2121
"private::lint.prettier": "prettier --config .prettierrc src/**/*.js --list-different",

components/dash-table/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"private::format.black": "black dash_table_base tests",
2424
"private::lint.ts": "eslint ./src ./tests",
2525
"private::lint.flake": "flake8 dash_table_base tests",
26-
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python312') !== 'python38'){process.exit(1)} \" || black --check dash_table_base tests",
26+
"private::lint.black": "black --check dash_table_base tests",
2727
"private::lint.prettier": "prettier --config .prettierrc \"{src,tests,demo}/**/*.{js,ts,tsx}\" --list-different",
2828
"private::test.python": "python -m unittest tests/unit/format_test.py",
2929
"private::test.unit": "karma start karma.conf.js --single-run",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"private::cibuild.renderer": "cd dash/dash-renderer && renderer build",
1212
"private::build.renderer": "cd dash/dash-renderer && renderer build",
1313
"private::build.jupyterlab": "cd \\@plotly/dash-jupyterlab && jlpm install && jlpm build:pack",
14-
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python312') !== 'python38'){process.exit(1)} \" || black dash tests --exclude metadata_test.py --check",
14+
"private::lint.black": "black dash tests --exclude metadata_test.py --check",
1515
"private::lint.flake8": "flake8 --exclude=metadata_test.py dash tests",
1616
"private::lint.pylint-dash": "pylint dash setup.py --rcfile=.pylintrc",
1717
"private::lint.pylint-tests": "pylint tests/unit tests/integration -d all -e C0410,C0413,W0109 --rcfile=.pylintrc",

0 commit comments

Comments
 (0)