Loading .gitlab-ci.yml 0 → 100644 +23 −0 Original line number Diff line number Diff line --- include: - project: shore/ci-templates file: templates/pre-commit.yml install: stage: test image: python:$tag before_script: - pip install docutils pygments script: - python setup.py check --verbose --metadata --restructuredtext --strict - pip install . variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ parallel: matrix: - tag: - "2.7-slim" - "3.6-slim" .pre-commit-config.yaml +92 −6 Original line number Diff line number Diff line - repo: git://github.com/pre-commit/pre-commit-hooks sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70 --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: check-added-large-files - id: check-yaml - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks - id: check-toml files: Pipfile - id: trailing-whitespace - repo: https://github.com/Yelp/detect-secrets rev: v0.14.3 hooks: - id: detect-secrets - repo: https://github.com/adrienverge/yamllint rev: v1.25.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint/ rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://github.com/ambv/black rev: 20.8b1 hooks: - id: black args: - | --line-length=79 - repo: https://github.com/Lucas-C/pre-commit-hooks-markup rev: v1.0.1 hooks: - id: rst-linter - repo: https://github.com/myint/rstcheck.git rev: master hooks: - id: rstcheck - repo: https://github.com/PyCQA/prospector rev: 1.3.1 hooks: - id: prospector args: - |- --max-line-length=79 - |- --with-tool=pyroma - |- --with-tool=bandit - |- --without-tool=pep257 - |- --doc-warnings - |- --test-warnings - |- --full-pep8 - |- --strictness=high - |- --no-autodetect additional_dependencies: - bandit - pyroma - repo: https://gitlab.com/pycqa/flake8.git rev: 3.8.4 hooks: - id: flake8 args: - |- --doctests additional_dependencies: - flake8-bugbear - repo: https://github.com/mgedmin/check-manifest rev: '0.45' hooks: - id: check-manifest - repo: https://github.com/pre-commit/pre-commit.git rev: v2.9.3 hooks: - id: validate_manifest .travis.ymldeleted 100644 → 0 +0 −20 Original line number Diff line number Diff line --- language: python python: ["2.7", "3.6"] dist: trusty sudo: false group: beta cache: - pip - directories: - $HOME/.pre-commit install: - pip install pre-commit script: - pre-commit run --all-files - pip install . notifications: email: false MANIFEST.in 0 → 100644 +5 −0 Original line number Diff line number Diff line include *.txt include *.rst include VERSION exclude *.yml exclude *.yaml README.rst +6 −5 Original line number Diff line number Diff line Python pre-commit hooks ####################### .. image:: https://travis-ci.org/adarnimrod/python-pre-commit.svg?branch=master :target: https://travis-ci.org/adarnimrod/python-pre-commit .. image:: https://git.shore.co.il/nimrod/python-pre-commit/badges/master/pipeline.svg :target: https://git.shore.co.il/nimrod/python-pre-commit/-/commits/master :alt: pipeline status Ansible `pre-commit <http://pre-commit.com/>`_ hooks. Loading @@ -16,7 +17,7 @@ Add the following to your :code:`.pre-commit-config.yaml`: .. code:: yaml - repo: https://git.shore.co.il/nimrod/python-pre-commit.git sha: v0.2.0 rev: v0.2.0 hooks: - id: piprot Loading @@ -32,4 +33,4 @@ Author Information Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website <https://www.shore.co.il/>`_. Patches are welcome via `git send-email <http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located at: https://git.shore.co.il/nimrod/. at: https://git.shore.co.il/explore. Loading
.gitlab-ci.yml 0 → 100644 +23 −0 Original line number Diff line number Diff line --- include: - project: shore/ci-templates file: templates/pre-commit.yml install: stage: test image: python:$tag before_script: - pip install docutils pygments script: - python setup.py check --verbose --metadata --restructuredtext --strict - pip install . variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ parallel: matrix: - tag: - "2.7-slim" - "3.6-slim"
.pre-commit-config.yaml +92 −6 Original line number Diff line number Diff line - repo: git://github.com/pre-commit/pre-commit-hooks sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70 --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: check-added-large-files - id: check-yaml - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks - id: check-toml files: Pipfile - id: trailing-whitespace - repo: https://github.com/Yelp/detect-secrets rev: v0.14.3 hooks: - id: detect-secrets - repo: https://github.com/adrienverge/yamllint rev: v1.25.0 hooks: - id: yamllint - repo: https://github.com/amperser/proselint/ rev: 0.10.2 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://github.com/ambv/black rev: 20.8b1 hooks: - id: black args: - | --line-length=79 - repo: https://github.com/Lucas-C/pre-commit-hooks-markup rev: v1.0.1 hooks: - id: rst-linter - repo: https://github.com/myint/rstcheck.git rev: master hooks: - id: rstcheck - repo: https://github.com/PyCQA/prospector rev: 1.3.1 hooks: - id: prospector args: - |- --max-line-length=79 - |- --with-tool=pyroma - |- --with-tool=bandit - |- --without-tool=pep257 - |- --doc-warnings - |- --test-warnings - |- --full-pep8 - |- --strictness=high - |- --no-autodetect additional_dependencies: - bandit - pyroma - repo: https://gitlab.com/pycqa/flake8.git rev: 3.8.4 hooks: - id: flake8 args: - |- --doctests additional_dependencies: - flake8-bugbear - repo: https://github.com/mgedmin/check-manifest rev: '0.45' hooks: - id: check-manifest - repo: https://github.com/pre-commit/pre-commit.git rev: v2.9.3 hooks: - id: validate_manifest
.travis.ymldeleted 100644 → 0 +0 −20 Original line number Diff line number Diff line --- language: python python: ["2.7", "3.6"] dist: trusty sudo: false group: beta cache: - pip - directories: - $HOME/.pre-commit install: - pip install pre-commit script: - pre-commit run --all-files - pip install . notifications: email: false
MANIFEST.in 0 → 100644 +5 −0 Original line number Diff line number Diff line include *.txt include *.rst include VERSION exclude *.yml exclude *.yaml
README.rst +6 −5 Original line number Diff line number Diff line Python pre-commit hooks ####################### .. image:: https://travis-ci.org/adarnimrod/python-pre-commit.svg?branch=master :target: https://travis-ci.org/adarnimrod/python-pre-commit .. image:: https://git.shore.co.il/nimrod/python-pre-commit/badges/master/pipeline.svg :target: https://git.shore.co.il/nimrod/python-pre-commit/-/commits/master :alt: pipeline status Ansible `pre-commit <http://pre-commit.com/>`_ hooks. Loading @@ -16,7 +17,7 @@ Add the following to your :code:`.pre-commit-config.yaml`: .. code:: yaml - repo: https://git.shore.co.il/nimrod/python-pre-commit.git sha: v0.2.0 rev: v0.2.0 hooks: - id: piprot Loading @@ -32,4 +33,4 @@ Author Information Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website <https://www.shore.co.il/>`_. Patches are welcome via `git send-email <http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located at: https://git.shore.co.il/nimrod/. at: https://git.shore.co.il/explore.