qentinelqi / qweb

Keyword driven automation for the web
https://github.com/qentinelqi/qweb
Apache License 2.0
39 stars 17 forks source link

Pre commit hook with ruff #146

Closed turunenm closed 5 months ago

turunenm commented 5 months ago

Add pre-commit hook and configuration to the repo.

Added pre-commit and ruff to _requirementstest.txt .pre-commit-config.yaml

Currently ruff check and ruff format use default settings except for line length which is set to 100 Ruff settings are configured in ruff.toml

Added new duty: format which autoformats files with ruff Added ruff format and ruff check to _staticanalysis.yml Github action

Updated CONTRIBUTING.md for pre-commit install, duty format and duty lint

Ran ruff format and added linting ignores where needed.