This commit does not run pre-commit on the repo, it just adds it as a dev dependency, and adds the following checks.
prevents commits to the main branch
remove unused imports from python files
modifies all imports to be absolute for python files
removes commented out code in python files
runs isort on imports for python files
runs black on python files (formatting)
runs ruff on python files (linting)
fixes for the setup.cfg file
ensures json, yaml, and toml files are parseable (ignores the conda.recipe/meta.yaml file)
uses local installs of eslint and prettier for linting and formatting any [java|type]script files.
Also, three additional files have been added.
ipywidgets_bokeh/.eslintrc.js
ipywidgets_bokeh/.prettierrc
These files contain the formatting and linting rules as outlined in Bokeh.
The last file is a project.toml file that for the time being only contains preferences for ruff. In the future we can use it for complying with setuptools installs.
The package*.json files have also been modified to include eslint and prettier, as well as updating the lint script from a TODO to an actual linting action. This helps with the requests in #75
This commit does not run pre-commit on the repo, it just adds it as a dev dependency, and adds the following checks.
main
branchisort
on imports for python filesblack
on python files (formatting)ruff
on python files (linting)setup.cfg
filejson
,yaml
, andtoml
files are parseable (ignores the conda.recipe/meta.yaml file)Also, three additional files have been added.
ipywidgets_bokeh/.eslintrc.js
ipywidgets_bokeh/.prettierrc
These files contain the formatting and linting rules as outlined in Bokeh.
The last file is a
project.toml
file that for the time being only contains preferences forruff
. In the future we can use it for complying withsetuptools
installs.The
package*.json
files have also been modified to include eslint and prettier, as well as updating thelint
script from aTODO
to an actual linting action. This helps with the requests in #75Resolves #80