blob: 87e45641af2fd1b376caa657145dbc00ba9aca65 [file] [log] [blame]
Anthony Sottilee5774322017-09-07 19:22:03 -07001repos:
Anthony Sottile3a3a7a12015-12-25 09:37:18 -08002- repo: https://github.com/pre-commit/pre-commit-hooks
Anthony Sottilec4a0b882023-10-07 14:04:19 -04003 rev: v4.5.0
Anthony Sottile4fc86a82014-03-14 14:23:08 -07004 hooks:
Anthony Sottile3e36dfe2014-03-23 23:10:35 -07005 - id: trailing-whitespace
Anthony Sottile3e36dfe2014-03-23 23:10:35 -07006 - id: end-of-file-fixer
Anthony Sottile84fbf052014-04-03 22:23:50 -07007 - id: check-yaml
Anthony Sottile84fbf052014-04-03 22:23:50 -07008 - id: debug-statements
Anthony Sottile8626e262019-02-11 19:57:37 -08009 - id: double-quote-string-fixer
Anthony Sottile1e48e902022-03-25 14:12:21 -040010 - id: name-tests-test
Anthony Sottileb08f8342015-01-04 16:05:20 -080011 - id: requirements-txt-fixer
Anthony Sottile1e48e902022-03-25 14:12:21 -040012- repo: https://github.com/asottile/setup-cfg-fmt
pre-commit-ci[bot]038e3dd2023-10-03 08:58:19 +000013 rev: v2.5.0
Anthony Sottile63cc3412019-01-30 00:15:11 -080014 hooks:
Anthony Sottile1e48e902022-03-25 14:12:21 -040015 - id: setup-cfg-fmt
pre-commit-ci[bot]894c7c42023-05-09 04:04:00 +000016- repo: https://github.com/asottile/reorder-python-imports
pre-commit-ci[bot]038e3dd2023-10-03 08:58:19 +000017 rev: v3.12.0
Anthony Sottileb08f8342015-01-04 16:05:20 -080018 hooks:
19 - id: reorder-python-imports
Anthony Sottile50a9fef2023-07-01 15:41:17 -040020 args: [--py38-plus, --add-import, 'from __future__ import annotations']
Anthony Sottile2a902e02017-07-12 18:35:24 -070021- repo: https://github.com/asottile/add-trailing-comma
pre-commit-ci[bot]7bf53fa2023-09-05 06:46:56 +000022 rev: v3.1.0
Anthony Sottile2a902e02017-07-12 18:35:24 -070023 hooks:
24 - id: add-trailing-comma
Anthony Sottile1e48e902022-03-25 14:12:21 -040025- repo: https://github.com/asottile/pyupgrade
pre-commit-ci[bot]16f52392024-02-20 00:02:27 +000026 rev: v3.15.1
Anthony Sottilef5c42a02020-02-05 11:10:42 -080027 hooks:
Anthony Sottile1e48e902022-03-25 14:12:21 -040028 - id: pyupgrade
Anthony Sottile50a9fef2023-07-01 15:41:17 -040029 args: [--py38-plus]
pre-commit-ci[bot]7bf53fa2023-09-05 06:46:56 +000030- repo: https://github.com/hhatto/autopep8
pre-commit-ci[bot]baa65892023-08-29 05:38:18 +000031 rev: v2.0.4
Anthony Sottile1e48e902022-03-25 14:12:21 -040032 hooks:
33 - id: autopep8
34- repo: https://github.com/PyCQA/flake8
pre-commit-ci[bot]8e040422024-01-08 20:21:22 +000035 rev: 7.0.0
Anthony Sottile1e48e902022-03-25 14:12:21 -040036 hooks:
37 - id: flake8
Anthony Sottile030bfac2019-01-31 19:19:10 -080038- repo: https://github.com/pre-commit/mirrors-mypy
pre-commit-ci[bot]bda540f2024-03-13 00:16:08 +000039 rev: v1.9.0
Anthony Sottile030bfac2019-01-31 19:19:10 -080040 hooks:
41 - id: mypy
Anthony Sottilefabe3d82021-06-14 11:30:37 -070042 additional_dependencies: [types-all]