Skip to content

Commit e5ea4d5

Browse files
authored
Merge pull request #133 from pabs3/yaml
Fix document starts, indentation and line length in YAML files
2 parents 04b5e9c + e077193 commit e5ea4d5

2 files changed

Lines changed: 26 additions & 21 deletions

File tree

.pre-commit-config.yaml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
repos:
23
- repo: https://github.com/psf/black
34
rev: 19.10b0
@@ -7,34 +8,34 @@ repos:
78
- repo: https://github.com/pre-commit/pre-commit-hooks
89
rev: v3.1.0
910
hooks:
10-
- id: trailing-whitespace
11-
- id: end-of-file-fixer
12-
- id: fix-encoding-pragma
13-
args: [--remove]
14-
- id: check-yaml
15-
- id: debug-statements
16-
language_version: python3
11+
- id: trailing-whitespace
12+
- id: end-of-file-fixer
13+
- id: fix-encoding-pragma
14+
args: [--remove]
15+
- id: check-yaml
16+
- id: debug-statements
17+
language_version: python3
1718
- repo: https://gitlab.com/pycqa/flake8
1819
rev: 3.8.3
1920
hooks:
20-
- id: flake8
21-
language_version: python3
22-
additional_dependencies: [flake8-typing-imports==1.9.0]
21+
- id: flake8
22+
language_version: python3
23+
additional_dependencies: [flake8-typing-imports==1.9.0]
2324
- repo: https://github.com/asottile/reorder_python_imports
2425
rev: v2.3.2
2526
hooks:
26-
- id: reorder-python-imports
27-
args: ['--application-directories=.:src', --py3-plus]
27+
- id: reorder-python-imports
28+
args: ['--application-directories=.:src', --py3-plus]
2829
- repo: https://github.com/asottile/pyupgrade
2930
rev: v2.7.1
3031
hooks:
31-
- id: pyupgrade
32-
args: [--py3-plus]
32+
- id: pyupgrade
33+
args: [--py3-plus]
3334
- repo: local
3435
hooks:
35-
- id: rst
36-
name: rst
37-
entry: rst-lint --encoding utf-8
38-
files: ^(CHANGES.rst|README.rst)$
39-
language: python
40-
additional_dependencies: [pygments, restructuredtext_lint]
36+
- id: rst
37+
name: rst
38+
entry: rst-lint --encoding utf-8
39+
files: ^(CHANGES.rst|README.rst)$
40+
language: python
41+
additional_dependencies: [pygments, restructuredtext_lint]

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
language: python
23
python:
34
- 3.5
@@ -17,5 +18,8 @@ install:
1718
- pip install -q pre-commit
1819
- pre-commit install
1920
script:
20-
- if [[ "$TRAVIS_PYTHON_VERSION" > "3.5" ]] && [[ "$TRAVIS_PYTHON_VERSION" != pypy* ]]; then pre-commit run --all-files --show-diff-on-failure; fi
21+
- if [[ "$TRAVIS_PYTHON_VERSION" > "3.5" ]] &&
22+
[[ "$TRAVIS_PYTHON_VERSION" != pypy* ]]; then
23+
pre-commit run --all-files --show-diff-on-failure;
24+
fi
2125
- pytest

0 commit comments

Comments
 (0)