Loading .pre-commit-config.yaml +10 −8 Changes for .pre-commit-config.yaml: 10 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -8,15 +8,17 @@ repos: name: black language: system entry: black require_serial: true types: [python] - repo: https://gitlab.com/pycqa/flake8 rev: 3.7.8 hooks: - id: flake8 name: flake8 language: system entry: flake8 types: [python] additional_dependencies: [flake8-bugbear] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.740 hooks: - id: mypy name: mypy language: system entry: mypy types: [python] exclude: ^docs/conf.py .travis.yml +7 −13 Changes for .travis.yml: 7 added lines, 13 removed lines. Original line number Diff line number Diff line dist: xenial language: python cache: pip cache: pip: true directories: - $HOME/.cache/pre-commit env: - TEST_CMD="coverage run tests/test_black.py" install: - pip install coverage coveralls flake8 flake8-bugbear mypy - pip install coverage coveralls pre-commit - pip install -e '.[d]' script: - $TEST_CMD Loading @@ -15,18 +17,10 @@ notifications: on_failure: always matrix: include: - name: "mypy" python: 3.6 env: - TEST_CMD="mypy black.py blackd.py tests/test_black.py" - name: "black" python: 3.7 env: - TEST_CMD="black --check --verbose ." - name: "flake8" - name: "lint" python: 3.7 env: - TEST_CMD="flake8 black.py blackd.py tests/test_black.py" - TEST_CMD="pre-commit run --all-files" - name: "3.6" python: 3.6 - name: "3.7" Loading Loading
.pre-commit-config.yaml +10 −8 Changes for .pre-commit-config.yaml: 10 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -8,15 +8,17 @@ repos: name: black language: system entry: black require_serial: true types: [python] - repo: https://gitlab.com/pycqa/flake8 rev: 3.7.8 hooks: - id: flake8 name: flake8 language: system entry: flake8 types: [python] additional_dependencies: [flake8-bugbear] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.740 hooks: - id: mypy name: mypy language: system entry: mypy types: [python] exclude: ^docs/conf.py
.travis.yml +7 −13 Changes for .travis.yml: 7 added lines, 13 removed lines. Original line number Diff line number Diff line dist: xenial language: python cache: pip cache: pip: true directories: - $HOME/.cache/pre-commit env: - TEST_CMD="coverage run tests/test_black.py" install: - pip install coverage coveralls flake8 flake8-bugbear mypy - pip install coverage coveralls pre-commit - pip install -e '.[d]' script: - $TEST_CMD Loading @@ -15,18 +17,10 @@ notifications: on_failure: always matrix: include: - name: "mypy" python: 3.6 env: - TEST_CMD="mypy black.py blackd.py tests/test_black.py" - name: "black" python: 3.7 env: - TEST_CMD="black --check --verbose ." - name: "flake8" - name: "lint" python: 3.7 env: - TEST_CMD="flake8 black.py blackd.py tests/test_black.py" - TEST_CMD="pre-commit run --all-files" - name: "3.6" python: 3.6 - name: "3.7" Loading