|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.2"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "pre_commit_hooks" |
| 7 | +version = "6.0.0" |
| 8 | +description = "Some out-of-the-box hooks for pre-commit." |
| 9 | +authors = [{name = "Anthony Sottile", email = "asottile@umich.edu"}] |
| 10 | +license = {text = "MIT"} |
| 11 | +classifiers = [ |
| 12 | + "Programming Language :: Python :: 3", |
| 13 | + "Programming Language :: Python :: 3 :: Only", |
| 14 | + "Programming Language :: Python :: Implementation :: CPython", |
| 15 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 16 | +] |
| 17 | +requires-python = ">=3.10" |
| 18 | +dependencies = [ |
| 19 | + "ruamel.yaml>=0.15", |
| 20 | + 'tomli>=1.1.0;python_version<"3.11"', |
| 21 | +] |
| 22 | + |
| 23 | +[project.readme] |
| 24 | +file = "README.md" |
| 25 | +content-type = "text/markdown" |
| 26 | + |
| 27 | +[project.urls] |
| 28 | +Homepage = "https://github.com/pre-commit/pre-commit-hooks" |
| 29 | + |
| 30 | +[project.scripts] |
| 31 | +check-added-large-files = "pre_commit_hooks.check_added_large_files:main" |
| 32 | +check-ast = "pre_commit_hooks.check_ast:main" |
| 33 | +check-builtin-literals = "pre_commit_hooks.check_builtin_literals:main" |
| 34 | +check-case-conflict = "pre_commit_hooks.check_case_conflict:main" |
| 35 | +check-docstring-first = "pre_commit_hooks.check_docstring_first:main" |
| 36 | +check-executables-have-shebangs = "pre_commit_hooks.check_executables_have_shebangs:main" |
| 37 | +check-json = "pre_commit_hooks.check_json:main" |
| 38 | +check-merge-conflict = "pre_commit_hooks.check_merge_conflict:main" |
| 39 | +check-shebang-scripts-are-executable = "pre_commit_hooks.check_shebang_scripts_are_executable:main" |
| 40 | +check-symlinks = "pre_commit_hooks.check_symlinks:main" |
| 41 | +check-toml = "pre_commit_hooks.check_toml:main" |
| 42 | +check-vcs-permalinks = "pre_commit_hooks.check_vcs_permalinks:main" |
| 43 | +check-xml = "pre_commit_hooks.check_xml:main" |
| 44 | +check-yaml = "pre_commit_hooks.check_yaml:main" |
| 45 | +debug-statement-hook = "pre_commit_hooks.debug_statement_hook:main" |
| 46 | +destroyed-symlinks = "pre_commit_hooks.destroyed_symlinks:main" |
| 47 | +detect-aws-credentials = "pre_commit_hooks.detect_aws_credentials:main" |
| 48 | +detect-private-key = "pre_commit_hooks.detect_private_key:main" |
| 49 | +double-quote-string-fixer = "pre_commit_hooks.string_fixer:main" |
| 50 | +end-of-file-fixer = "pre_commit_hooks.end_of_file_fixer:main" |
| 51 | +file-contents-sorter = "pre_commit_hooks.file_contents_sorter:main" |
| 52 | +fix-byte-order-marker = "pre_commit_hooks.fix_byte_order_marker:main" |
| 53 | +forbid-new-submodules = "pre_commit_hooks.forbid_new_submodules:main" |
| 54 | +mixed-line-ending = "pre_commit_hooks.mixed_line_ending:main" |
| 55 | +name-tests-test = "pre_commit_hooks.tests_should_end_in_test:main" |
| 56 | +no-commit-to-branch = "pre_commit_hooks.no_commit_to_branch:main" |
| 57 | +pre-commit-hooks-removed = "pre_commit_hooks.removed:main" |
| 58 | +pretty-format-json = "pre_commit_hooks.pretty_format_json:main" |
| 59 | +requirements-txt-fixer = "pre_commit_hooks.requirements_txt_fixer:main" |
| 60 | +sort-simple-yaml = "pre_commit_hooks.sort_simple_yaml:main" |
| 61 | +trailing-whitespace-fixer = "pre_commit_hooks.trailing_whitespace_fixer:main" |
| 62 | + |
| 63 | +[tool.setuptools] |
| 64 | +license-files = ["LICENSE"] |
| 65 | +include-package-data = false |
| 66 | + |
| 67 | +[tool.setuptools.packages.find] |
| 68 | +exclude = [ |
| 69 | + "tests*", |
| 70 | + "testing*", |
| 71 | +] |
| 72 | +namespaces = false |
| 73 | + |
| 74 | +[tool.distutils.bdist_wheel] |
| 75 | +universal = true |
| 76 | + |
| 77 | +[tool.coverage.run] |
| 78 | +plugins = ["covdefaults"] |
| 79 | + |
| 80 | +[tool.mypy] |
| 81 | +check_untyped_defs = true |
| 82 | +disallow_any_generics = true |
| 83 | +disallow_incomplete_defs = true |
| 84 | +disallow_untyped_defs = true |
| 85 | +warn_redundant_casts = true |
| 86 | +warn_unused_ignores = true |
| 87 | + |
| 88 | +[[tool.mypy.overrides]] |
| 89 | +module = ["testing.*"] |
| 90 | +disallow_untyped_defs = false |
| 91 | + |
| 92 | +[[tool.mypy.overrides]] |
| 93 | +module = ["tests.*"] |
| 94 | +disallow_untyped_defs = false |
0 commit comments