# pre-commit vs Psalm

| Attribute | pre-commit | Psalm |
|---|---|---|
| **vioscaleAI score** | 66.1 (70% (medium)) | 63.7 (42% (low)) |
| activity.commits_last_30d | 16 | 100 |
| adoption.dependent_repos | 35,684 | 15,920 |
| adoption.github_stars | 15,626 | 5,896 |
| adoption.package_downloads_weekly | 33,971,661 | - |
| content.faq | `[{"answer":"A framework that automates the execution of code quality checks as git pre-commit hooks, eliminating the need for developers to manually install language-specific dependencies on their machines to run linters and formatters written in any programming language. It is indexed under Code Quality Tools.","source":"https://pre-commit.com","question":"What is pre-commit?","confidence":0.6},{"answer":"pre-commit offers a free tier, so you can start without paying. Pricing changes often, so verify at source before relying on it.","source":"https://pre-commit.com","question":"Is pre-commit free?","confidence":0.6},{"answer":"pre-commit supports a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.","source":"https://pre-commit.com","question":"What platforms does pre-commit support?","confidence":0.6},{"answer":"Yes. pre-commit can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.","source":"https://pre-commit.com","question":"Can pre-commit be self-hosted?","confidence":0.6},{"answer":"Yes. pre-commit is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/pre-commit/pre-commit","question":"Is pre-commit open source?","confidence":0.99}]` | `[{"answer":"Psalm is a free, open-source static analyzer for PHP that identifies type-related errors and bugs in codebases at their strictest settings. It can automatically fix many common issues and supports safe coding patterns used in other languages. It is indexed under Code Quality Tools.","source":"https://psalm.dev/","question":"What is Psalm?","confidence":0.6},{"answer":"Psalm is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Pricing changes often, so verify at source before relying on it.","source":"https://psalm.dev/","question":"Is Psalm free to use?","confidence":0.6},{"answer":"Psalm supports a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.","source":"https://psalm.dev/","question":"What platforms does Psalm support?","confidence":0.6},{"answer":"Yes. Psalm can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.","source":"https://psalm.dev/","question":"Can Psalm be self-hosted?","confidence":0.6},{"answer":"Yes. Psalm is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/vimeo/psalm","question":"Is Psalm open source?","confidence":0.95}]` |
| deployment.options | `{"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | Manages Git pre-commit hooks written in various languages, automatically running code checks to detect issues like missing semicolons, trailing whitespace, and debug statements before code review. | Psalm scans PHP codebases to discover potential problems and includes Psalter, a tool for automatically fixing identified issues with configurable safety measures and PHP version targeting. |
| features.capabilities | `{"autofix":false,"metrics":false,"function":"meta_runner","ci_gating":true,"deployment":"cli_local","incremental":false,"open_source":"oss","config_model":"config_file","custom_rules":true,"impl_language":"Python","pricing_model":"free","language_scope":"multi_language","editor_integration":false}` | `{"autofix":true,"metrics":true,"function":"static_analyzer","ci_gating":true,"deployment":"cli_local","open_source":"oss","config_model":"config_file","custom_rules":true,"impl_language":"PHP","pricing_model":"free","language_scope":"single_language","editor_integration":true}` |
| language.primary | Python | PHP |
| license.spdx | MIT | MIT |
| platform.support | `{"cli":true,"mac":true,"linux":true,"windows":true}` | `{"cli":true}` |
| pricing | `{"type":"free","sourceUrl":"https://pre-commit.com","retrievedAt":"2026-08-14T09:20:48.398Z"}` | `{"type":"open_source","plans":[{"free":true,"name":"Open Source","description":"Free and open-source static analysis tool for PHP","contactSales":false}],"summary":"Free and open-source. Optional paid support contracts available.","freeTier":true,"sourceUrl":"https://psalm.dev/","retrievedAt":"2026-08-03T22:32:46.041Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | commercial | commercial |
| pricing.price_level | free | free |
| pricing.transparent | yes | yes |
| release.cadence_days | 57 | 1 |
| release.history | `[{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.6.2","date":"2026-08-10T22:08:59Z","type":"stable","version":"v4.6.2"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.6.1","date":"2026-07-21T20:58:53Z","type":"stable","version":"v4.6.1"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.6.0","date":"2026-04-21T20:32:56Z","type":"stable","version":"v4.6.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.5.1","date":"2025-12-16T21:18:45Z","type":"stable","version":"v4.5.1"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.5.0","date":"2025-11-22T21:08:24Z","type":"stable","version":"v4.5.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.4.0","date":"2025-11-08T21:48:28Z","type":"stable","version":"v4.4.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.3.0","date":"2025-08-09T18:59:03Z","type":"stable","version":"v4.3.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.2.0","date":"2025-03-18T21:42:20Z","type":"stable","version":"v4.2.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.1.0","date":"2025-01-20T18:49:11Z","type":"stable","version":"v4.1.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.0.1","date":"2024-10-08T16:10:45Z","type":"stable","version":"v4.0.1"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v4.0.0","date":"2024-10-05T19:19:45Z","type":"stable","version":"v4.0.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.8.0","date":"2024-07-28T20:05:15Z","type":"stable","version":"v3.8.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.7.1","date":"2024-05-11T01:31:03Z","type":"stable","version":"v3.7.1"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.7.0","date":"2024-03-24T17:41:43Z","type":"stable","version":"v3.7.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.6.2","date":"2024-02-18T18:22:07Z","type":"stable","version":"v3.6.2"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.6.1","date":"2024-02-10T19:47:57Z","type":"stable","version":"v3.6.1"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.6.0","date":"2023-12-09T21:29:42Z","type":"stable","version":"v3.6.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.5.0","date":"2023-10-13T16:06:55Z","type":"stable","version":"v3.5.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.4.0","date":"2023-09-02T17:13:27Z","type":"stable","version":"v3.4.0"},{"url":"https://github.com/pre-commit/pre-commit/releases/tag/v3.3.3","date":"2023-06-13T23:12:35Z","type":"stable","version":"v3.3.3"}]` | `[{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-rc2","date":"2026-10-09T16:00:46Z","type":"prerelease","version":"7.0.0-rc2"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.20.0","date":"2026-10-09T16:01:25Z","type":"stable","version":"6.20.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.19.2","date":"2026-10-07T13:43:48Z","type":"stable","version":"6.19.2"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-rc1","date":"2026-10-05T12:46:32Z","type":"prerelease","version":"7.0.0-rc1"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta24","date":"2026-10-02T13:17:13Z","type":"prerelease","version":"7.0.0-beta24"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta23","date":"2026-10-01T09:39:24Z","type":"prerelease","version":"7.0.0-beta23"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.19.1","date":"2026-09-29T11:11:40Z","type":"stable","version":"6.19.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.19.0","date":"2026-09-28T14:00:35Z","type":"stable","version":"6.19.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.18.1","date":"2026-09-25T20:34:43Z","type":"stable","version":"6.18.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta22","date":"2026-09-21T11:24:43Z","type":"prerelease","version":"7.0.0-beta22"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.18.0","date":"2026-09-21T11:04:09Z","type":"stable","version":"6.18.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta21","date":"2026-09-15T12:56:42Z","type":"prerelease","version":"7.0.0-beta21"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.17.2","date":"2026-09-15T12:43:38Z","type":"stable","version":"6.17.2"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta20","date":"2026-09-14T10:19:25Z","type":"prerelease","version":"7.0.0-beta20"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.17.1","date":"2026-09-12T13:52:03Z","type":"stable","version":"6.17.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.17.0","date":"2026-09-10T12:43:54Z","type":"stable","version":"6.17.0"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta19","date":"2026-04-15T20:51:53Z","type":"prerelease","version":"7.0.0-beta19"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta18","date":"2026-04-15T18:57:09Z","type":"prerelease","version":"7.0.0-beta18"},{"url":"https://github.com/vimeo/psalm/releases/tag/6.16.1","date":"2026-03-19T11:07:58Z","type":"stable","version":"6.16.1"},{"url":"https://github.com/vimeo/psalm/releases/tag/7.0.0-beta17","date":"2026-03-17T11:28:08Z","type":"prerelease","version":"7.0.0-beta17"}]` |
| reliability.status_page | yes | - |
| security.scorecard | 4.7 | 4.7 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=pypi&package_name=pre-commit&per_page=100","last_12m":0,"max_severity":null}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=packagist&package_name=vimeo%2Fpsalm&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (Code Quality Tools)

| Capability | pre-commit | Psalm |
|---|:--:|:--:|
| **Core** |  |  |
| Function | Meta-runner | Static analyzer |
| Language scope | Multi-language | Single-language |
| Implementation language | Python | PHP |
| **Capability** |  |  |
| Autofix | ✗ | ✓ |
| **Config** |  |  |
| Config model | Config file | Config file |
| **Extensibility** |  |  |
| Custom rules | ✓ | ✓ |
| **Deployment** |  |  |
| Deployment | CLI-local | CLI-local |
| **Delivery** |  |  |
| Editor integration | ✗ | ✓ |
| CI / VCS gating | ✓ | ✓ |
| **Insight** |  |  |
| Code metrics | ✗ | ✓ |
| **Performance** |  |  |
| Incremental / monorepo aware | ✗ | - |
| **Licensing** |  |  |
| Open-source | OSS | OSS |
| **Commercial** |  |  |
| Pricing model | Free | Free |

*Source: vioscaleAI. Generated 2026-10-16T18:30:48.300Z. "-" = undocumented, not absent.*
