Skip to content

Commit 8e20683

Browse files
authored
Update ci and git hooks (#30)
* update pre-commit hook versions * re-enable blackdoc
1 parent acd1874 commit 8e20683

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
repos:
33
# isort should run before black as black sometimes tweaks the isort output
44
- repo: https://github.com/timothycrosley/isort
5-
rev: 4.3.21
5+
rev: 5.4.2
66
hooks:
77
- id: isort
88
# https://github.com/python/black#version-control-integration
99
- repo: https://github.com/python/black
10-
rev: stable
10+
rev: 20.8b1
1111
hooks:
1212
- id: black
1313
- repo: https://github.com/keewis/blackdoc
14-
rev: stable
14+
rev: v0.1.2
1515
hooks:
1616
- id: blackdoc
1717
- repo: https://gitlab.com/pycqa/flake8
18-
rev: 3.8.1
18+
rev: 3.8.3
1919
hooks:
2020
- id: flake8

azure-pipelines.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ jobs:
7070
- bash: python -m black --check .
7171
displayName: black formatting check
7272

73-
# - job: FormattingBlackdoc
74-
# variables:
75-
# python.version: '3.8'
76-
# pool:
77-
# vmImage: 'ubuntu-20.04'
78-
# steps:
79-
# - task: UsePythonVersion@0
80-
# inputs:
81-
# versionSpec: '$(python.version)'
82-
# displayName: 'Use Python $(python.version)'
83-
# - bash: python -m pip install blackdoc
84-
# displayName: Install blackdoc
85-
# - bash: python -m pip list
86-
# displayName: Version Info
87-
# - bash: python -m blackdoc --check .
88-
# displayName: blackdoc formatting check
73+
- job: FormattingBlackdoc
74+
variables:
75+
python.version: '3.8'
76+
pool:
77+
vmImage: 'ubuntu-20.04'
78+
steps:
79+
- task: UsePythonVersion@0
80+
inputs:
81+
versionSpec: '$(python.version)'
82+
displayName: 'Use Python $(python.version)'
83+
- bash: python -m pip install blackdoc
84+
displayName: Install blackdoc
85+
- bash: python -m pip list
86+
displayName: Version Info
87+
- bash: python -m blackdoc --check .
88+
displayName: blackdoc formatting check

0 commit comments

Comments
 (0)