From 49b5b5b0024631eb1041d7e52eafc71e7d2dbd0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20M=C3=BChlbauer?= <64252269+ls-alexander-muehlbauer@users.noreply.github.com> Date: Fri, 4 Mar 2022 12:37:42 +0100 Subject: [PATCH] Install pre-commit-hooks as dependency (#28) * pre-commit-hooks as dependency * remove pre-commit-hooks as submodule * rename package * Update .pre-commit-hooks.yaml Co-authored-by: Jad El Kik <64258942+ls-jad-elkik@users.noreply.github.com> --- .gitmodules | 3 - .pre-commit-config.yaml | 2 +- .pre-commit-hooks.yaml | 252 ++++++++++++++---- README.md | 38 +-- .../__init__.py | 0 .../circleci-config-pack.sh | 0 .../circleci-config-validate.sh | 0 .../google-java-code-format.sh | 0 .../maven-checkstyle.sh | 0 .../poetry-pytest.sh | 0 .../shfmt.sh | 0 .../tidy-xml-format.sh | 0 poetry.lock | 169 ++++++++---- pyproject.toml | 16 +- submodule_pre_commit_hooks | 1 - 15 files changed, 334 insertions(+), 147 deletions(-) rename {pre_commit_hooks => ls_pre_commit_hooks}/__init__.py (100%) rename {pre_commit_hooks => ls_pre_commit_hooks}/circleci-config-pack.sh (100%) rename {pre_commit_hooks => ls_pre_commit_hooks}/circleci-config-validate.sh (100%) rename {pre_commit_hooks => ls_pre_commit_hooks}/google-java-code-format.sh (100%) rename {pre_commit_hooks => ls_pre_commit_hooks}/maven-checkstyle.sh (100%) rename {pre_commit_hooks => ls_pre_commit_hooks}/poetry-pytest.sh (100%) rename {pre_commit_hooks => ls_pre_commit_hooks}/shfmt.sh (100%) rename {pre_commit_hooks => ls_pre_commit_hooks}/tidy-xml-format.sh (100%) delete mode 160000 submodule_pre_commit_hooks diff --git a/.gitmodules b/.gitmodules index 6629ef0..6263902 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -[submodule "pre-commit-hooks"] - path = submodule_pre_commit_hooks - url = git@github.com:pre-commit/pre-commit-hooks.git [submodule "submodule_syntaqx_git_hooks"] path = submodule_syntaqx_git_hooks url = git@github.com:syntaqx/git-hooks.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb98b3c..057e175 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: . - rev: v0.7.5 + rev: v0.7.7 hooks: - id: end-of-file-fixer - id: trailing-whitespace diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index b8f879a..0759f18 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,22 +5,19 @@ language: python entry: black files: \.(py)$ - - id: circleci-config-pack name: CircleCI config pack description: Pack the config, creating the config.yml file - entry: pre_commit_hooks/circleci-config-pack.sh + entry: ls_pre_commit_hooks/circleci-config-pack.sh language: script files: ^.circleci/config/ pass_filenames: false - - id: circleci-config-validate name: CircleCI config validation description: Test if the CircleCI config is well formed. - entry: pre_commit_hooks/circleci-config-validate.sh + entry: ls_pre_commit_hooks/circleci-config-validate.sh language: script files: ^.circleci/config.yml$ - - id: detect-secrets name: Detect secrets description: Detects high entropy strings that are likely to be passwords. @@ -28,38 +25,26 @@ entry: detect-secrets-hook args: ["--base64-limit", "4.5", "--hex-limit", "3"] files: .* - -- id: end-of-file-fixer - name: end of file fixer - description: end of file fixer - entry: end-of-file-fixer - language: python - types: [text] - stages: [commit, push, manual] - - id: flake8 name: flake8 description: flake8 - Python style guide enforcement language: python entry: flake8 files: \.py$ - - id: google-java-code-format name: Format Java with Google formatter - entry: pre_commit_hooks/google-java-code-format.sh + entry: ls_pre_commit_hooks/google-java-code-format.sh language: script types: [text] files: \.(java)$ stages: [commit, push, manual] require_serial: true - - id: isort name: isort description: isort - Sorting Python imports language: python entry: isort files: \.(py)$ - - id: mypy name: mypy description: Executes static type checking for python @@ -69,22 +54,13 @@ args: ["--ignore-missing-imports", "--scripts-are-modules"] require_serial: true additional_dependencies: [] - - id: poetry-pytest name: Pytest within poetry shell description: Use poetry to run pytest - entry: pre_commit_hooks/poetry-pytest.sh + entry: ls_pre_commit_hooks/poetry-pytest.sh language: script pass_filenames: false always_run: true - -- id: pretty-format-json - name: Pretty format JSON - description: This hook sets a standard for formatting JSON files. - entry: pretty-format-json - language: python - types: [json] - - id: pylint name: pylint description: pylint - It's not just a linter that annoys you! @@ -92,14 +68,6 @@ entry: pylint files: \.(py)$ require_serial: true - -- id: requirements-txt-fixer - name: Fix requirements.txt - description: Sorts entries in requirements.txt - entry: requirements-txt-fixer - language: python - files: requirements.*\.txt$ - - id: shellcheck name: Test shell scripts with shellcheck description: Shell scripts conform to shellcheck @@ -108,7 +76,6 @@ types: [shell] exclude_types: [csh, perl, python, ruby, tcsh, zsh] args: [-e, SC1091] - - id: shfmt name: Check shell style with shfmt language: script @@ -116,35 +83,220 @@ types: [shell] exclude_types: [csh, perl, python, ruby, tcsh, zsh] args: ["-l", "-i", "2", "-ci"] - - id: tidy-xml-format name: Format XML with Tidy - entry: pre_commit_hooks/tidy-xml-format.sh + entry: ls_pre_commit_hooks/tidy-xml-format.sh language: script types: [text] files: \.(xml)$ stages: [commit, push, manual] - -- id: trailing-whitespace - name: Trim Trailing Whitespace - description: This hook trims trailing whitespace. - entry: trailing-whitespace-fixer - language: python - types: [text] - stages: [commit, push, manual] - - id: yamllint name: yamllint description: This hook runs yamllint. entry: yamllint language: python types: [file, yaml] - - id: checkstyle name: checkstyle description: | Runs checkstyle style check with mvn. mvn executable is expected to be installed. - entry: pre_commit_hooks/maven-checkstyle.sh + entry: ls_pre_commit_hooks/maven-checkstyle.sh language: script pass_filenames: false +# pre-commit-hooks is installed as a dependency (in pyproject.toml), adding hooks from: +# https://github.com/pre-commit/pre-commit-hooks/blob/v4.1.0/.pre-commit-hooks.yaml +- id: check-added-large-files + name: check for added large files + description: prevents giant files from being committed. + entry: check-added-large-files + language: python +- id: check-ast + name: check python ast + description: simply checks whether the files parse as valid python. + entry: check-ast + language: python + types: [python] +- id: check-byte-order-marker + name: 'check BOM - deprecated: use fix-byte-order-marker' + description: forbids files which have a utf-8 byte-order marker. + entry: check-byte-order-marker + language: python + types: [text] +- id: check-builtin-literals + name: check builtin type constructor use + description: requires literal syntax when initializing empty or zero python builtin types. + entry: check-builtin-literals + language: python + types: [python] +- id: check-case-conflict + name: check for case conflicts + description: checks for files that would conflict in case-insensitive filesystems. + entry: check-case-conflict + language: python +- id: check-docstring-first + name: check docstring is first + description: checks a common error of defining a docstring after code. + entry: check-docstring-first + language: python + types: [python] +- id: check-executables-have-shebangs + name: check that executables have shebangs + description: ensures that (non-binary) executables have a shebang. + entry: check-executables-have-shebangs + language: python + types: [text, executable] + stages: [commit, push, manual] +- id: check-json + name: check json + description: checks json files for parseable syntax. + entry: check-json + language: python + types: [json] +- id: check-shebang-scripts-are-executable + name: check that scripts with shebangs are executable + description: ensures that (non-binary) files with a shebang are executable. + entry: check-shebang-scripts-are-executable + language: python + types: [text] + stages: [commit, push, manual] +- id: pretty-format-json + name: pretty format json + description: sets a standard for formatting json files. + entry: pretty-format-json + language: python + types: [json] +- id: check-merge-conflict + name: check for merge conflicts + description: checks for files that contain merge conflict strings. + entry: check-merge-conflict + language: python + types: [text] +- id: check-symlinks + name: check for broken symlinks + description: checks for symlinks which do not point to anything. + entry: check-symlinks + language: python + types: [symlink] +- id: check-toml + name: check toml + description: checks toml files for parseable syntax. + entry: check-toml + language: python + types: [toml] +- id: check-vcs-permalinks + name: check vcs permalinks + description: ensures that links to vcs websites are permalinks. + entry: check-vcs-permalinks + language: python + types: [text] +- id: check-xml + name: check xml + description: checks xml files for parseable syntax. + entry: check-xml + language: python + types: [xml] +- id: check-yaml + name: check yaml + description: checks yaml files for parseable syntax. + entry: check-yaml + language: python + types: [yaml] +- id: debug-statements + name: debug statements (python) + description: checks for debugger imports and py37+ `breakpoint()` calls in python source. + entry: debug-statement-hook + language: python + types: [python] +- id: destroyed-symlinks + name: detect destroyed symlinks + description: detects symlinks which are changed to regular files with a content of a path which that symlink was pointing to. + entry: destroyed-symlinks + language: python + types: [file] +- id: detect-aws-credentials + name: detect aws credentials + description: detects *your* aws credentials from the aws cli credentials file. + entry: detect-aws-credentials + language: python + types: [text] +- id: detect-private-key + name: detect private key + description: detects the presence of private keys. + entry: detect-private-key + language: python + types: [text] +- id: double-quote-string-fixer + name: fix double quoted strings + description: replaces double quoted strings with single quoted strings. + entry: double-quote-string-fixer + language: python + types: [python] +- id: end-of-file-fixer + name: fix end of files + description: ensures that a file is either empty, or ends with one newline. + entry: end-of-file-fixer + language: python + types: [text] + stages: [commit, push, manual] +- id: file-contents-sorter + name: file contents sorter + description: sorts the lines in specified files (defaults to alphabetical). you must provide list of target files as input in your .pre-commit-config.yaml file. + entry: file-contents-sorter + language: python + files: '^$' +- id: fix-byte-order-marker + name: fix utf-8 byte order marker + description: removes utf-8 byte order marker. + entry: fix-byte-order-marker + language: python + types: [text] +- id: fix-encoding-pragma + name: fix python encoding pragma + description: 'adds # -*- coding: utf-8 -*- to the top of python files.' + language: python + entry: fix-encoding-pragma + types: [python] +- id: forbid-new-submodules + name: forbid new submodules + description: prevents addition of new git submodules. + language: python + entry: forbid-new-submodules + types: [directory] +- id: mixed-line-ending + name: mixed line ending + description: replaces or checks mixed line ending. + entry: mixed-line-ending + language: python + types: [text] +- id: name-tests-test + name: python tests naming + description: this verifies that test files are named correctly. + entry: name-tests-test + language: python + files: (^|/)tests/.+\.py$ +- id: no-commit-to-branch + name: "don't commit to branch" + entry: no-commit-to-branch + language: python + pass_filenames: false + always_run: true +- id: requirements-txt-fixer + name: fix requirements.txt + description: sorts entries in requirements.txt. + entry: requirements-txt-fixer + language: python + files: requirements.*\.txt$ +- id: sort-simple-yaml + name: sort simple yaml files + description: sorts simple yaml files which consist only of top-level keys, preserving comments and blocks. + language: python + entry: sort-simple-yaml + files: '^$' +- id: trailing-whitespace + name: trim trailing whitespace + description: trims trailing whitespace. + entry: trailing-whitespace-fixer + language: python + types: [text] + stages: [commit, push, manual] diff --git a/README.md b/README.md index 9ad44e1..6f3f20e 100644 --- a/README.md +++ b/README.md @@ -41,23 +41,24 @@ Create a new git tag with the new version and [create a release based on the tag ## Available hooks +### From [pre-commit-hooks](https://github.com/pre-commit/pre-commit-hooks/tree/v4.1.0#hooks-available) + +All hooks are defined in [.pre-commit-hooks-yaml](.pre-commit-hooks-yaml). For further information and usage [check this list of available hooks here](https://github.com/pre-commit/pre-commit-hooks/tree/v4.1.0#hooks-available). + +### Hooks added in this repo + - `black`: Python Code Formatter - `circleci-config-validate`: Test if the CircleCI config file is well formed. - `circleci-config-pack`: Pack the CircleCI config and build the config.yml - `detect-secrets`: Scan for secrets committed into the repo -- `end-of-file-fixer`: Checks that all your JSON files are pretty. - `flake8`: Tool For Python Style Guide Enforcement - `google-java-code-format` - `isort`: Python import sorting - `poetry-pytest`: Use poetry to create a virtual-env and run pytest -- `pretty-format-json`: Checks that all your JSON files are pretty. -- `requirements-txt-fixer` - `shellcheck` - `shfmt` -- `tidy-xml-format` -- `trailing-whitespace`: Trims trailing whitespace. - `yamllint` -- `checkstyle` - runs `mvn checkstyle:check` +- `checkstyle`: runs `mvn checkstyle:check` ### Options @@ -73,31 +74,8 @@ relatively out of sync from the mainstream, but it should work fine for our need - Install the correct version of detect-secrets: ```console - python3 -m pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@0.13.1+ibm.45.dss#egg=detect-secrets" + python3 -m pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@0.13.1+ibm.47.dss#egg=detect-secrets" ``` - Run the baseline scan: `detect-secrets scan --base64-limit 4.5 --hex-limit 3 --update .secrets.baseline` - Set `args: ['--baseline', '.secrets.baseline']` in your pre-commit config - -#### `pretty-format-json` - -Checks that all your JSON files are pretty. "Pretty" -here means that keys are sorted and indented. You can configure this with -the following command-line options: - -- `--autofix` - automatically format json files -- `--indent ...` - Control the indentation (either a number for a number of spaces or a string of whitespace). Defaults to 2 spaces. -- `--no-ensure-ascii` preserve unicode characters instead of converting to escape sequences -- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys) -- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings. - -#### `trailing-whitespace` - -Trims trailing whitespace: - -- To preserve Markdown [hard line-breaks](https://github.github.com/gfm/#hard-line-break) - use `args: [--markdown-linebreak-ext=md]` (or other extensions used - by your markdown-files). If for some reason you want to treat all files - as markdown, use `--markdown-linebreak-ext=*`. -- By default, this hook trims all whitespace from the ends of lines. - To specify a custom set of characters to trim instead, use `args: [--chars,""]`. diff --git a/pre_commit_hooks/__init__.py b/ls_pre_commit_hooks/__init__.py similarity index 100% rename from pre_commit_hooks/__init__.py rename to ls_pre_commit_hooks/__init__.py diff --git a/pre_commit_hooks/circleci-config-pack.sh b/ls_pre_commit_hooks/circleci-config-pack.sh similarity index 100% rename from pre_commit_hooks/circleci-config-pack.sh rename to ls_pre_commit_hooks/circleci-config-pack.sh diff --git a/pre_commit_hooks/circleci-config-validate.sh b/ls_pre_commit_hooks/circleci-config-validate.sh similarity index 100% rename from pre_commit_hooks/circleci-config-validate.sh rename to ls_pre_commit_hooks/circleci-config-validate.sh diff --git a/pre_commit_hooks/google-java-code-format.sh b/ls_pre_commit_hooks/google-java-code-format.sh similarity index 100% rename from pre_commit_hooks/google-java-code-format.sh rename to ls_pre_commit_hooks/google-java-code-format.sh diff --git a/pre_commit_hooks/maven-checkstyle.sh b/ls_pre_commit_hooks/maven-checkstyle.sh similarity index 100% rename from pre_commit_hooks/maven-checkstyle.sh rename to ls_pre_commit_hooks/maven-checkstyle.sh diff --git a/pre_commit_hooks/poetry-pytest.sh b/ls_pre_commit_hooks/poetry-pytest.sh similarity index 100% rename from pre_commit_hooks/poetry-pytest.sh rename to ls_pre_commit_hooks/poetry-pytest.sh diff --git a/pre_commit_hooks/shfmt.sh b/ls_pre_commit_hooks/shfmt.sh similarity index 100% rename from pre_commit_hooks/shfmt.sh rename to ls_pre_commit_hooks/shfmt.sh diff --git a/pre_commit_hooks/tidy-xml-format.sh b/ls_pre_commit_hooks/tidy-xml-format.sh similarity index 100% rename from pre_commit_hooks/tidy-xml-format.sh rename to ls_pre_commit_hooks/tidy-xml-format.sh diff --git a/poetry.lock b/poetry.lock index e32d29e..93c20e5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -59,7 +59,7 @@ uvloop = ["uvloop (>=0.15.2)"] [[package]] name = "boxsdk" -version = "3.0.1" +version = "3.1.0" description = "Official Box Python SDK" category = "main" optional = false @@ -67,17 +67,17 @@ python-versions = "*" [package.dependencies] attrs = ">=17.3.0" -cryptography = {version = ">=3,<3.5.0", optional = true, markers = "extra == \"jwt\""} +cryptography = {version = ">=3", optional = true, markers = "extra == \"jwt\""} pyjwt = {version = ">=1.3.0", optional = true, markers = "extra == \"jwt\""} requests = ">=2.4.3" requests-toolbelt = ">=0.4.0,<1.0.0" wrapt = ">=1.10.1" [package.extras] -all = ["pyjwt (>=1.3.0)", "cryptography (>=3,<3.5.0)", "redis (>=2.10.3)"] -jwt = ["pyjwt (>=1.3.0)", "cryptography (>=3,<3.5.0)"] +all = ["pyjwt (>=1.3.0)", "cryptography (>=3)", "redis (>=2.10.3)"] +jwt = ["pyjwt (>=1.3.0)", "cryptography (>=3)"] redis = ["redis (>=2.10.3)"] -test = ["bottle", "jsonpatch (>1.14)", "mock (>=2.0.0,<4.0.0)", "pycodestyle", "pylint", "sphinx", "sqlalchemy (<1.4.0)", "tox", "pytest (>=2.8.3,<4.0.0)", "pytest-cov", "pytest-xdist (<1.28.0)", "python-coveralls", "coverage (<5.0)", "pytz"] +test = ["bottle", "jsonpatch (>1.14)", "pycodestyle", "pylint", "sphinx", "sqlalchemy (<1.4.0)", "tox", "pytest", "pytest-cov", "pytest-xdist", "coveralls", "coverage", "tox-gh-actions", "pytz"] [[package]] name = "certifi" @@ -100,7 +100,7 @@ pycparser = "*" [[package]] name = "charset-normalizer" -version = "2.0.11" +version = "2.0.12" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." category = "main" optional = false @@ -111,7 +111,7 @@ unicode_backport = ["unicodedata2"] [[package]] name = "click" -version = "8.0.3" +version = "8.0.4" description = "Composable command line interface toolkit" category = "main" optional = false @@ -131,7 +131,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [[package]] name = "cryptography" -version = "3.4.8" +version = "36.0.1" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." category = "main" optional = false @@ -142,11 +142,11 @@ cffi = ">=1.12" [package.extras] docs = ["sphinx (>=1.6.5,!=1.8.0,!=3.1.0,!=3.1.1)", "sphinx-rtd-theme"] -docstest = ["doc8", "pyenchant (>=1.6.11)", "twine (>=1.12.0)", "sphinxcontrib-spelling (>=4.0.1)"] +docstest = ["pyenchant (>=1.6.11)", "twine (>=1.12.0)", "sphinxcontrib-spelling (>=4.0.1)"] pep8test = ["black", "flake8", "flake8-import-order", "pep8-naming"] -sdist = ["setuptools-rust (>=0.11.4)"] +sdist = ["setuptools_rust (>=0.11.4)"] ssh = ["bcrypt (>=3.1.5)"] -test = ["pytest (>=6.0)", "pytest-cov", "pytest-subtests", "pytest-xdist", "pretend", "iso8601", "pytz", "hypothesis (>=1.11.4,!=3.79.2)"] +test = ["pytest (>=6.2.0)", "pytest-cov", "pytest-subtests", "pytest-xdist", "pretend", "iso8601", "pytz", "hypothesis (>=1.11.4,!=3.79.2)"] [[package]] name = "detect-secrets" @@ -197,7 +197,7 @@ python-versions = ">=3.5" [[package]] name = "importlib-metadata" -version = "4.10.1" +version = "4.11.2" description = "Read metadata from Python packages" category = "main" optional = false @@ -208,9 +208,9 @@ typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""} zipp = ">=0.5" [package.extras] -docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"] +docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"] perf = ["ipython"] -testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy", "importlib-resources (>=1.3)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"] [[package]] name = "iniconfig" @@ -297,7 +297,7 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" [[package]] name = "platformdirs" -version = "2.4.1" +version = "2.5.1" description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." category = "main" optional = false @@ -322,6 +322,18 @@ importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} dev = ["pre-commit", "tox"] testing = ["pytest", "pytest-benchmark"] +[[package]] +name = "pre-commit-hooks" +version = "4.1.0" +description = "Some out-of-the-box hooks for pre-commit." +category = "main" +optional = false +python-versions = ">=3.6.1" + +[package.dependencies] +"ruamel.yaml" = ">=0.15" +toml = "*" + [[package]] name = "py" version = "1.11.0" @@ -455,6 +467,29 @@ python-versions = "*" [package.dependencies] requests = ">=2.0.1,<3.0.0" +[[package]] +name = "ruamel.yaml" +version = "0.17.21" +description = "ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order" +category = "main" +optional = false +python-versions = ">=3" + +[package.dependencies] +"ruamel.yaml.clib" = {version = ">=0.2.6", markers = "platform_python_implementation == \"CPython\" and python_version < \"3.11\""} + +[package.extras] +docs = ["ryd"] +jinja2 = ["ruamel.yaml.jinja2 (>=0.2)"] + +[[package]] +name = "ruamel.yaml.clib" +version = "0.2.6" +description = "C version of reader, parser and emitter for ruamel.yaml derived from libyaml" +category = "main" +optional = false +python-versions = ">=3.5" + [[package]] name = "toml" version = "0.10.2" @@ -465,7 +500,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" [[package]] name = "tomli" -version = "2.0.0" +version = "2.0.1" description = "A lil' TOML parser" category = "main" optional = false @@ -481,7 +516,7 @@ python-versions = "*" [[package]] name = "typing-extensions" -version = "4.0.1" +version = "4.1.1" description = "Backported and Experimental Type Hints for Python 3.6+" category = "main" optional = false @@ -535,7 +570,7 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest- [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "920a454be7cecfaf877698c4d0a8ba19c8c131130128cba63292ce411d3abc97" +content-hash = "3e88d6b7f2cdf5aa43764180ea540e1a0620ec646fd94f97dbb51818ec4e8e35" [metadata.files] astroid = [ @@ -576,8 +611,8 @@ black = [ {file = "black-22.1.0.tar.gz", hash = "sha256:a7c0192d35635f6fc1174be575cb7915e92e5dd629ee79fdaf0dcfa41a80afb5"}, ] boxsdk = [ - {file = "boxsdk-3.0.1-py2.py3-none-any.whl", hash = "sha256:a57978ece697482c8c1d44d1611aa130a0cad1ddca553db2524f43a98e8b4a96"}, - {file = "boxsdk-3.0.1.tar.gz", hash = "sha256:0d378c51088681b43b1c2f052c082043c683978eaba19437c1f9f73185c46c3e"}, + {file = "boxsdk-3.1.0-py2.py3-none-any.whl", hash = "sha256:b181ae3ef2d58e7c801a328bddee7c6dd5533d08a788e5681665329a2e97789b"}, + {file = "boxsdk-3.1.0.tar.gz", hash = "sha256:6ea68bfbfea96e20ec01243800768bfdea9366a316ffedd0ce8249df9dbc7eec"}, ] certifi = [ {file = "certifi-2021.10.8-py2.py3-none-any.whl", hash = "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"}, @@ -636,37 +671,38 @@ cffi = [ {file = "cffi-1.15.0.tar.gz", hash = "sha256:920f0d66a896c2d99f0adbb391f990a84091179542c205fa53ce5787aff87954"}, ] charset-normalizer = [ - {file = "charset-normalizer-2.0.11.tar.gz", hash = "sha256:98398a9d69ee80548c762ba991a4728bfc3836768ed226b3945908d1a688371c"}, - {file = "charset_normalizer-2.0.11-py3-none-any.whl", hash = "sha256:2842d8f5e82a1f6aa437380934d5e1cd4fcf2003b06fed6940769c164a480a45"}, + {file = "charset-normalizer-2.0.12.tar.gz", hash = "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"}, + {file = "charset_normalizer-2.0.12-py3-none-any.whl", hash = "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"}, ] click = [ - {file = "click-8.0.3-py3-none-any.whl", hash = "sha256:353f466495adaeb40b6b5f592f9f91cb22372351c84caeb068132442a4518ef3"}, - {file = "click-8.0.3.tar.gz", hash = "sha256:410e932b050f5eed773c4cda94de75971c89cdb3155a72a0831139a79e5ecb5b"}, + {file = "click-8.0.4-py3-none-any.whl", hash = "sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1"}, + {file = "click-8.0.4.tar.gz", hash = "sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb"}, ] colorama = [ {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, ] cryptography = [ - {file = "cryptography-3.4.8-cp36-abi3-macosx_10_10_x86_64.whl", hash = "sha256:a00cf305f07b26c351d8d4e1af84ad7501eca8a342dedf24a7acb0e7b7406e14"}, - {file = "cryptography-3.4.8-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:f44d141b8c4ea5eb4dbc9b3ad992d45580c1d22bf5e24363f2fbf50c2d7ae8a7"}, - {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:0a7dcbcd3f1913f664aca35d47c1331fce738d44ec34b7be8b9d332151b0b01e"}, - {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:34dae04a0dce5730d8eb7894eab617d8a70d0c97da76b905de9efb7128ad7085"}, - {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1eb7bb0df6f6f583dd8e054689def236255161ebbcf62b226454ab9ec663746b"}, - {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl", hash = "sha256:9965c46c674ba8cc572bc09a03f4c649292ee73e1b683adb1ce81e82e9a6a0fb"}, - {file = "cryptography-3.4.8-cp36-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:3c4129fc3fdc0fa8e40861b5ac0c673315b3c902bbdc05fc176764815b43dd1d"}, - {file = "cryptography-3.4.8-cp36-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:695104a9223a7239d155d7627ad912953b540929ef97ae0c34c7b8bf30857e89"}, - {file = "cryptography-3.4.8-cp36-abi3-win32.whl", hash = "sha256:21ca464b3a4b8d8e86ba0ee5045e103a1fcfac3b39319727bc0fc58c09c6aff7"}, - {file = "cryptography-3.4.8-cp36-abi3-win_amd64.whl", hash = "sha256:3520667fda779eb788ea00080124875be18f2d8f0848ec00733c0ec3bb8219fc"}, - {file = "cryptography-3.4.8-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d2a6e5ef66503da51d2110edf6c403dc6b494cc0082f85db12f54e9c5d4c3ec5"}, - {file = "cryptography-3.4.8-pp36-pypy36_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a305600e7a6b7b855cd798e00278161b681ad6e9b7eca94c721d5f588ab212af"}, - {file = "cryptography-3.4.8-pp36-pypy36_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:3fa3a7ccf96e826affdf1a0a9432be74dc73423125c8f96a909e3835a5ef194a"}, - {file = "cryptography-3.4.8-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:d9ec0e67a14f9d1d48dd87a2531009a9b251c02ea42851c060b25c782516ff06"}, - {file = "cryptography-3.4.8-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:5b0fbfae7ff7febdb74b574055c7466da334a5371f253732d7e2e7525d570498"}, - {file = "cryptography-3.4.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94fff993ee9bc1b2440d3b7243d488c6a3d9724cc2b09cdb297f6a886d040ef7"}, - {file = "cryptography-3.4.8-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:8695456444f277af73a4877db9fc979849cd3ee74c198d04fc0776ebc3db52b9"}, - {file = "cryptography-3.4.8-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:cd65b60cfe004790c795cc35f272e41a3df4631e2fb6b35aa7ac6ef2859d554e"}, - {file = "cryptography-3.4.8.tar.gz", hash = "sha256:94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c"}, + {file = "cryptography-36.0.1-cp36-abi3-macosx_10_10_universal2.whl", hash = "sha256:73bc2d3f2444bcfeac67dd130ff2ea598ea5f20b40e36d19821b4df8c9c5037b"}, + {file = "cryptography-36.0.1-cp36-abi3-macosx_10_10_x86_64.whl", hash = "sha256:2d87cdcb378d3cfed944dac30596da1968f88fb96d7fc34fdae30a99054b2e31"}, + {file = "cryptography-36.0.1-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:74d6c7e80609c0f4c2434b97b80c7f8fdfaa072ca4baab7e239a15d6d70ed73a"}, + {file = "cryptography-36.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl", hash = "sha256:6c0c021f35b421ebf5976abf2daacc47e235f8b6082d3396a2fe3ccd537ab173"}, + {file = "cryptography-36.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d59a9d55027a8b88fd9fd2826c4392bd487d74bf628bb9d39beecc62a644c12"}, + {file = "cryptography-36.0.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a817b961b46894c5ca8a66b599c745b9a3d9f822725221f0e0fe49dc043a3a3"}, + {file = "cryptography-36.0.1-cp36-abi3-manylinux_2_24_x86_64.whl", hash = "sha256:94ae132f0e40fe48f310bba63f477f14a43116f05ddb69d6fa31e93f05848ae2"}, + {file = "cryptography-36.0.1-cp36-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:7be0eec337359c155df191d6ae00a5e8bbb63933883f4f5dffc439dac5348c3f"}, + {file = "cryptography-36.0.1-cp36-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:e0344c14c9cb89e76eb6a060e67980c9e35b3f36691e15e1b7a9e58a0a6c6dc3"}, + {file = "cryptography-36.0.1-cp36-abi3-win32.whl", hash = "sha256:4caa4b893d8fad33cf1964d3e51842cd78ba87401ab1d2e44556826df849a8ca"}, + {file = "cryptography-36.0.1-cp36-abi3-win_amd64.whl", hash = "sha256:391432971a66cfaf94b21c24ab465a4cc3e8bf4a939c1ca5c3e3a6e0abebdbcf"}, + {file = "cryptography-36.0.1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:bb5829d027ff82aa872d76158919045a7c1e91fbf241aec32cb07956e9ebd3c9"}, + {file = "cryptography-36.0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ebc15b1c22e55c4d5566e3ca4db8689470a0ca2babef8e3a9ee057a8b82ce4b1"}, + {file = "cryptography-36.0.1-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:596f3cd67e1b950bc372c33f1a28a0692080625592ea6392987dba7f09f17a94"}, + {file = "cryptography-36.0.1-pp38-pypy38_pp73-macosx_10_10_x86_64.whl", hash = "sha256:30ee1eb3ebe1644d1c3f183d115a8c04e4e603ed6ce8e394ed39eea4a98469ac"}, + {file = "cryptography-36.0.1-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:ec63da4e7e4a5f924b90af42eddf20b698a70e58d86a72d943857c4c6045b3ee"}, + {file = "cryptography-36.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca238ceb7ba0bdf6ce88c1b74a87bffcee5afbfa1e41e173b1ceb095b39add46"}, + {file = "cryptography-36.0.1-pp38-pypy38_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:ca28641954f767f9822c24e927ad894d45d5a1e501767599647259cbf030b903"}, + {file = "cryptography-36.0.1-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:39bdf8e70eee6b1c7b289ec6e5d84d49a6bfa11f8b8646b5b3dfe41219153316"}, + {file = "cryptography-36.0.1.tar.gz", hash = "sha256:53e5c1dc3d7a953de055d77bef2ff607ceef7a2aac0353b5d630ab67f7423638"}, ] detect-secrets = [] flake8 = [ @@ -678,8 +714,8 @@ idna = [ {file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"}, ] importlib-metadata = [ - {file = "importlib_metadata-4.10.1-py3-none-any.whl", hash = "sha256:899e2a40a8c4a1aec681feef45733de8a6c58f3f6a0dbed2eb6574b4387a77b6"}, - {file = "importlib_metadata-4.10.1.tar.gz", hash = "sha256:951f0d8a5b7260e9db5e41d429285b5f451e928479f19d80818878527d36e95e"}, + {file = "importlib_metadata-4.11.2-py3-none-any.whl", hash = "sha256:d16e8c1deb60de41b8e8ed21c1a7b947b0bc62fab7e1d470bcdf331cea2e6735"}, + {file = "importlib_metadata-4.11.2.tar.gz", hash = "sha256:b36ffa925fe3139b2f6ff11d6925ffd4fa7bc47870165e3ac260ac7b4f91e6ac"}, ] iniconfig = [ {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"}, @@ -770,13 +806,17 @@ pathspec = [ {file = "pathspec-0.9.0.tar.gz", hash = "sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"}, ] platformdirs = [ - {file = "platformdirs-2.4.1-py3-none-any.whl", hash = "sha256:1d7385c7db91728b83efd0ca99a5afb296cab9d0ed8313a45ed8ba17967ecfca"}, - {file = "platformdirs-2.4.1.tar.gz", hash = "sha256:440633ddfebcc36264232365d7840a970e75e1018d15b4327d11f91909045fda"}, + {file = "platformdirs-2.5.1-py3-none-any.whl", hash = "sha256:bcae7cab893c2d310a711b70b24efb93334febe65f8de776ee320b517471e227"}, + {file = "platformdirs-2.5.1.tar.gz", hash = "sha256:7535e70dfa32e84d4b34996ea99c5e432fa29a708d0f4e394bbcb2a8faa4f16d"}, ] pluggy = [ {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, ] +pre-commit-hooks = [ + {file = "pre_commit_hooks-4.1.0-py2.py3-none-any.whl", hash = "sha256:ba95316b79038e56ce998cdacb1ce922831ac0e41744c77bcc2b9677bf183206"}, + {file = "pre_commit_hooks-4.1.0.tar.gz", hash = "sha256:b6361865d1877c5da5ac3a944aab19ce6bd749a534d2ede28e683d07194a57e1"}, +] py = [ {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"}, {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"}, @@ -852,13 +892,40 @@ requests-toolbelt = [ {file = "requests-toolbelt-0.9.1.tar.gz", hash = "sha256:968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"}, {file = "requests_toolbelt-0.9.1-py2.py3-none-any.whl", hash = "sha256:380606e1d10dc85c3bd47bf5a6095f815ec007be7a8b69c878507068df059e6f"}, ] +"ruamel.yaml" = [ + {file = "ruamel.yaml-0.17.21-py3-none-any.whl", hash = "sha256:742b35d3d665023981bd6d16b3d24248ce5df75fdb4e2924e93a05c1f8b61ca7"}, + {file = "ruamel.yaml-0.17.21.tar.gz", hash = "sha256:8b7ce697a2f212752a35c1ac414471dc16c424c9573be4926b56ff3f5d23b7af"}, +] +"ruamel.yaml.clib" = [ + {file = "ruamel.yaml.clib-0.2.6-cp35-cp35m-macosx_10_6_intel.whl", hash = "sha256:cfdb9389d888c5b74af297e51ce357b800dd844898af9d4a547ffc143fa56751"}, + {file = "ruamel.yaml.clib-0.2.6-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:7b2927e92feb51d830f531de4ccb11b320255ee95e791022555971c466af4527"}, + {file = "ruamel.yaml.clib-0.2.6-cp35-cp35m-win32.whl", hash = "sha256:ada3f400d9923a190ea8b59c8f60680c4ef8a4b0dfae134d2f2ff68429adfab5"}, + {file = "ruamel.yaml.clib-0.2.6-cp35-cp35m-win_amd64.whl", hash = "sha256:de9c6b8a1ba52919ae919f3ae96abb72b994dd0350226e28f3686cb4f142165c"}, + {file = "ruamel.yaml.clib-0.2.6-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d67f273097c368265a7b81e152e07fb90ed395df6e552b9fa858c6d2c9f42502"}, + {file = "ruamel.yaml.clib-0.2.6-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:72a2b8b2ff0a627496aad76f37a652bcef400fd861721744201ef1b45199ab78"}, + {file = "ruamel.yaml.clib-0.2.6-cp36-cp36m-win32.whl", hash = "sha256:9efef4aab5353387b07f6b22ace0867032b900d8e91674b5d8ea9150db5cae94"}, + {file = "ruamel.yaml.clib-0.2.6-cp36-cp36m-win_amd64.whl", hash = "sha256:846fc8336443106fe23f9b6d6b8c14a53d38cef9a375149d61f99d78782ea468"}, + {file = "ruamel.yaml.clib-0.2.6-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0847201b767447fc33b9c235780d3aa90357d20dd6108b92be544427bea197dd"}, + {file = "ruamel.yaml.clib-0.2.6-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:78988ed190206672da0f5d50c61afef8f67daa718d614377dcd5e3ed85ab4a99"}, + {file = "ruamel.yaml.clib-0.2.6-cp37-cp37m-win32.whl", hash = "sha256:a49e0161897901d1ac9c4a79984b8410f450565bbad64dbfcbf76152743a0cdb"}, + {file = "ruamel.yaml.clib-0.2.6-cp37-cp37m-win_amd64.whl", hash = "sha256:bf75d28fa071645c529b5474a550a44686821decebdd00e21127ef1fd566eabe"}, + {file = "ruamel.yaml.clib-0.2.6-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a32f8d81ea0c6173ab1b3da956869114cae53ba1e9f72374032e33ba3118c233"}, + {file = "ruamel.yaml.clib-0.2.6-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:7f7ecb53ae6848f959db6ae93bdff1740e651809780822270eab111500842a84"}, + {file = "ruamel.yaml.clib-0.2.6-cp38-cp38-win32.whl", hash = "sha256:89221ec6d6026f8ae859c09b9718799fea22c0e8da8b766b0b2c9a9ba2db326b"}, + {file = "ruamel.yaml.clib-0.2.6-cp38-cp38-win_amd64.whl", hash = "sha256:31ea73e564a7b5fbbe8188ab8b334393e06d997914a4e184975348f204790277"}, + {file = "ruamel.yaml.clib-0.2.6-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:dc6a613d6c74eef5a14a214d433d06291526145431c3b964f5e16529b1842bed"}, + {file = "ruamel.yaml.clib-0.2.6-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:1866cf2c284a03b9524a5cc00daca56d80057c5ce3cdc86a52020f4c720856f0"}, + {file = "ruamel.yaml.clib-0.2.6-cp39-cp39-win32.whl", hash = "sha256:3fb9575a5acd13031c57a62cc7823e5d2ff8bc3835ba4d94b921b4e6ee664104"}, + {file = "ruamel.yaml.clib-0.2.6-cp39-cp39-win_amd64.whl", hash = "sha256:825d5fccef6da42f3c8eccd4281af399f21c02b32d98e113dbc631ea6a6ecbc7"}, + {file = "ruamel.yaml.clib-0.2.6.tar.gz", hash = "sha256:4ff604ce439abb20794f05613c374759ce10e3595d1867764dd1ae675b85acbd"}, +] toml = [ {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, ] tomli = [ - {file = "tomli-2.0.0-py3-none-any.whl", hash = "sha256:b5bde28da1fed24b9bd1d4d2b8cba62300bfb4ec9a6187a957e8ddb9434c5224"}, - {file = "tomli-2.0.0.tar.gz", hash = "sha256:c292c34f58502a1eb2bbb9f5bbc9a5ebc37bee10ffb8c2d6bbdfa8eb13cc14e1"}, + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] typed-ast = [ {file = "typed_ast-1.4.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:2068531575a125b87a41802130fa7e29f26c09a2833fea68d9a40cf33902eba6"}, @@ -893,8 +960,8 @@ typed-ast = [ {file = "typed_ast-1.4.3.tar.gz", hash = "sha256:fb1bbeac803adea29cedd70781399c99138358c26d05fcbd23c13016b7f5ec65"}, ] typing-extensions = [ - {file = "typing_extensions-4.0.1-py3-none-any.whl", hash = "sha256:7f001e5ac290a0c0401508864c7ec868be4e701886d5b573a9528ed3973d9d3b"}, - {file = "typing_extensions-4.0.1.tar.gz", hash = "sha256:4ca091dea149f945ec56afb48dae714f21e8692ef22a395223bcd328961b6a0e"}, + {file = "typing_extensions-4.1.1-py3-none-any.whl", hash = "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2"}, + {file = "typing_extensions-4.1.1.tar.gz", hash = "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42"}, ] urllib3 = [ {file = "urllib3-1.26.8-py2.py3-none-any.whl", hash = "sha256:000ca7f471a233c2251c6c7023ee85305721bfdf18621ebff4fd17a8653427ed"}, diff --git a/pyproject.toml b/pyproject.toml index 9dffbf2..fe3c860 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,19 +1,12 @@ [tool.poetry] -name = "pre-commit-hooks" -version = "0.7.5" -description = "" +name = "ls-pre-commit-hooks" +version = "0.7.8" +description = "A collection of useful pre-commit hooks used in Lightspeed Hospitality" authors = ["Your Name "] include = [ - "pre_commit_hooks/*", - "submodule_pre_commit_hooks/pre_commit_hooks/*" + "ls_pre_commit_hooks/*" ] -[tool.poetry.scripts] -end-of-file-fixer="submodule_pre_commit_hooks.pre_commit_hooks.end_of_file_fixer:main" -trailing-whitespace-fixer="submodule_pre_commit_hooks.pre_commit_hooks.trailing_whitespace_fixer:main" -pretty-format-json="submodule_pre_commit_hooks.pre_commit_hooks.pretty_format_json:main" -requirements-txt-fixer="submodule_pre_commit_hooks.pre_commit_hooks.requirements_txt_fixer:main" - [tool.poetry.dependencies] python = "^3.7" yamllint = "^v1.25.0" @@ -24,6 +17,7 @@ flake8 = "^3.9.2" mypy = "^0.910" isort = "^5.9.3" pylint = "^2.11.1" +pre-commit-hooks = "^4.1.0" [tool.poetry.dev-dependencies] diff --git a/submodule_pre_commit_hooks b/submodule_pre_commit_hooks deleted file mode 160000 index 11a2fdb..0000000 --- a/submodule_pre_commit_hooks +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 11a2fdbab88e927af4d64e28a238df0f3b8693d1