|
| 1 | +[build-system] |
| 2 | +build-backend = "setuptools.build_meta" |
| 3 | +requires = [ |
| 4 | + "setuptools >= 65.3.0", |
| 5 | + "setuptools_scm[toml] >= 7.0.5" |
| 6 | +] |
| 7 | + |
| 8 | +[options] |
| 9 | +packages = "find:" |
| 10 | +install_requires = [ |
| 11 | + "ruamel.yaml>=0.15", |
| 12 | + 'tomli>=1.1.0;python_version<"3.11"' |
| 13 | +] |
| 14 | +python_requires = ">=3.9" |
| 15 | + |
| 16 | +[project] |
| 17 | +name = "pre_commit_hooks" |
| 18 | +version = "5.0.0" |
| 19 | +description = "Some out-of-the-box hooks for pre-commit." |
| 20 | +readme = "README.md" |
| 21 | +authors = [{ "email" = "[email protected]", "name" = "Anthony Sottile"}] |
| 22 | +license = "MIT" |
| 23 | +classifiers = [ |
| 24 | + "Programming Language :: Python :: 3", |
| 25 | + "Programming Language :: Python :: 3 :: Only", |
| 26 | + "Programming Language :: Python :: Implementation :: CPython", |
| 27 | + "Programming Language :: Python :: Implementation :: PyPy" |
| 28 | +] |
| 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 | +[project.urls] |
| 64 | +homepage = "https://github.com/pre-commit/pre-commit-hooks" |
| 65 | + |
| 66 | +[tool.coverage.run] |
| 67 | +plugins = ["covdefaults"] |
| 68 | + |
| 69 | +[tool.mypy] |
| 70 | +check_untyped_defs = true |
| 71 | +disallow_any_generics = true |
| 72 | +disallow_incomplete_defs = true |
| 73 | +disallow_untyped_defs = true |
| 74 | +warn_redundant_casts = true |
| 75 | +warn_unused_ignores = true |
| 76 | + |
| 77 | +[[tool.mypy.overrides]] |
| 78 | +module = [ |
| 79 | + "tests.*", |
| 80 | + "testing.*" |
| 81 | +] |
| 82 | +disallow_untyped_defs = false |
| 83 | + |
| 84 | +[tool.setuptools.packages.find] |
| 85 | +exclude = [ |
| 86 | + "tests*", |
| 87 | + "testing*" |
| 88 | +] |
0 commit comments