blob: b72aa64522e2942f62dd04457efe320362cf198d [file] [log] [blame]
Anthony Sottile1a5a5a22019-02-27 22:12:12 -08001[metadata]
2name = pre_commit_hooks
Anthony Sottilef71fa2c2022-11-23 14:35:47 -05003version = 4.4.0
Anthony Sottile1a5a5a22019-02-27 22:12:12 -08004description = Some out-of-the-box hooks for pre-commit.
5long_description = file: README.md
6long_description_content_type = text/markdown
7url = https://github.com/pre-commit/pre-commit-hooks
8author = Anthony Sottile
9author_email = asottile@umich.edu
10license = MIT
pre-commit-ci[bot]d05d4d72023-06-06 03:14:39 +000011license_files = LICENSE
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080012classifiers =
13 License :: OSI Approved :: MIT License
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080014 Programming Language :: Python :: 3
Anthony Sottilef5c42a02020-02-05 11:10:42 -080015 Programming Language :: Python :: 3 :: Only
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080016 Programming Language :: Python :: Implementation :: CPython
17 Programming Language :: Python :: Implementation :: PyPy
18
19[options]
20packages = find:
21install_requires =
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080022 ruamel.yaml>=0.15
Daniël van Noordfc88f3f2022-05-24 08:44:13 +020023 tomli>=1.1.0;python_version<"3.11"
Anthony Sottile50a9fef2023-07-01 15:41:17 -040024python_requires = >=3.8
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080025
pre-commit-ci[bot]c144e2b2021-03-15 17:01:52 +000026[options.packages.find]
27exclude =
28 tests*
29 testing*
30
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080031[options.entry_points]
32console_scripts =
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080033 check-added-large-files = pre_commit_hooks.check_added_large_files:main
34 check-ast = pre_commit_hooks.check_ast:main
35 check-builtin-literals = pre_commit_hooks.check_builtin_literals:main
36 check-byte-order-marker = pre_commit_hooks.check_byte_order_marker:main
37 check-case-conflict = pre_commit_hooks.check_case_conflict:main
38 check-docstring-first = pre_commit_hooks.check_docstring_first:main
39 check-executables-have-shebangs = pre_commit_hooks.check_executables_have_shebangs:main
40 check-json = pre_commit_hooks.check_json:main
41 check-merge-conflict = pre_commit_hooks.check_merge_conflict:main
Ville Skyttäbb4eef12021-05-16 13:23:23 +030042 check-shebang-scripts-are-executable = pre_commit_hooks.check_shebang_scripts_are_executable:main
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080043 check-symlinks = pre_commit_hooks.check_symlinks:main
Semyon Maryasinae70f7e2019-03-28 01:13:45 +030044 check-toml = pre_commit_hooks.check_toml:main
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080045 check-vcs-permalinks = pre_commit_hooks.check_vcs_permalinks:main
46 check-xml = pre_commit_hooks.check_xml:main
47 check-yaml = pre_commit_hooks.check_yaml:main
48 debug-statement-hook = pre_commit_hooks.debug_statement_hook:main
Mikhail Khvoinitsky1e87d592020-08-02 21:25:07 +030049 destroyed-symlinks = pre_commit_hooks.destroyed_symlinks:main
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080050 detect-aws-credentials = pre_commit_hooks.detect_aws_credentials:main
51 detect-private-key = pre_commit_hooks.detect_private_key:main
52 double-quote-string-fixer = pre_commit_hooks.string_fixer:main
53 end-of-file-fixer = pre_commit_hooks.end_of_file_fixer:main
54 file-contents-sorter = pre_commit_hooks.file_contents_sorter:main
Jeremiah Gowdyd18bd5b2020-10-04 18:45:54 -070055 fix-byte-order-marker = pre_commit_hooks.fix_byte_order_marker:main
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080056 fix-encoding-pragma = pre_commit_hooks.fix_encoding_pragma:main
57 forbid-new-submodules = pre_commit_hooks.forbid_new_submodules:main
58 mixed-line-ending = pre_commit_hooks.mixed_line_ending:main
59 name-tests-test = pre_commit_hooks.tests_should_end_in_test:main
60 no-commit-to-branch = pre_commit_hooks.no_commit_to_branch:main
Anthony Sottileb9cc9d72020-05-14 16:00:29 -070061 pre-commit-hooks-removed = pre_commit_hooks.removed:main
Anthony Sottile1a5a5a22019-02-27 22:12:12 -080062 pretty-format-json = pre_commit_hooks.pretty_format_json:main
63 requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:main
64 sort-simple-yaml = pre_commit_hooks.sort_simple_yaml:main
65 trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:main
66
Anthony Sottile3a325ee2018-04-30 09:33:25 -040067[bdist_wheel]
Anthony Sottile775a7902016-08-12 10:24:39 -070068universal = True
Anthony Sottile8bb09ce2019-05-08 14:30:29 -070069
Anthony Sottilea7f73432020-02-29 20:34:45 -080070[coverage:run]
71plugins = covdefaults
72
Anthony Sottile8bb09ce2019-05-08 14:30:29 -070073[mypy]
74check_untyped_defs = true
75disallow_any_generics = true
76disallow_incomplete_defs = true
77disallow_untyped_defs = true
Anthony Sottile8041dff2021-06-21 19:15:42 -070078warn_redundant_casts = true
79warn_unused_ignores = true
Anthony Sottile8bb09ce2019-05-08 14:30:29 -070080
81[mypy-testing.*]
82disallow_untyped_defs = false
83
84[mypy-tests.*]
85disallow_untyped_defs = false