diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6ad9af6 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +div = $(shell printf '=%.0s' {1..120}) + +setup-dev: + @echo "Setting up development environment..." + @echo "Installing dev dependencies..." + @~/.chat/mamba/envs/devchat-commands/bin/pip install -r requirements-dev.txt + @echo "Done!" + +check: + @echo ${div} + ~/.chat/mamba/envs/devchat-commands/bin/python -m ruff check . + ~/.chat/mamba/envs/devchat-commands/bin/python -m ruff format . --check + @echo "Done!" + +fix: + @echo ${div} + ~/.chat/mamba/envs/devchat-commands/bin/python -m ruff format . + @echo ${div} + ~/.chat/mamba/envs/devchat-commands/bin/python -m ruff check . --fix + @echo "Done!" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..97f6efc --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[tool.ruff] +line-length = 100 + +[tool.ruff.lint] +extend-select = ["E501"] # explicitly adding the rules \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..d2aa615 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1 @@ +ruff~=0.1.7