Scony / godot-gdscript-toolkit

Independent set of GDScript tools - parser, linter, formatter, and more
MIT License
1.01k stars 68 forks source link

Missing dependencies in .pre-commit-hooks.yaml #317

Open dementive opened 2 months ago

dementive commented 2 months ago

To run the linter or formatter with a pre-commit hook the setuptools library has to be installed into the pre-commit library. Currently the .pre-commit-hooks.yaml does not do this, updating it to this will fix it:

- id: gdlint
  name: gdlint
  description: "gdlint - linter for GDScript"
  entry: gdlint
  language: python
  language_version: python3
  additional_dependencies: [setuptools]
  require_serial: true
  types: [gdscript]
- id: gdformat
  name: gdformat
  description: "gdformat - formatter for GDScript"
  entry: gdformat
  language: python
  language_version: python3
  additional_dependencies: [setuptools]
  require_serial: true
  types: [gdscript]