File tree Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,11 @@ repos:
14
14
pass_filenames : false
15
15
require_serial : true
16
16
args : ["."]
17
- - repo : local
17
+ - repo : https://github.com/psf/black
18
+ # WARNING: version should be the same as in `pyproject.toml` and `requirements.dev.txt`.
19
+ rev : ' refs/tags/22.3.0:refs/tags/22.3.0'
18
20
hooks :
19
- # using a local hook for black because of an issue that arises when using
20
- # pre-commit and setuptools-scm that results in version info being lost.
21
- # For more info see https://github.com/psf/black/issues/2493
22
- # Based on https://github.com/psf/black/blob/main/.pre-commit-hooks.yaml
23
21
- id : black
24
- name : black
25
- description : " Black: The uncompromising Python code formatter"
26
- entry : black
27
- language : python
28
- # WARNING: version should be the same as in `pyproject.toml` and `requirements.dev.txt`.
29
- additional_dependencies : ["black>=22.0,<23"]
30
- # This is here to defer file selection to black which will do it based on
31
- # black config.
32
22
pass_filenames : false
33
23
require_serial : true
34
24
args : ["."]
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This document describes the process and conventions to follow when
10
10
developing RDFLib code.
11
11
12
12
* Please be as Pythonic as possible (:pep: `8 `).
13
- * Code should be formatted using `black <https://github.com/psf/black >`_ and we use Black v22.1 .0, with the black config in ``pyproject.toml ``.
13
+ * Code should be formatted using `black <https://github.com/psf/black >`_ and we use Black v22.3 .0, with the black config in ``pyproject.toml ``.
14
14
* Code should also pass `flake8 <https://github.com/psf/black >`_ linting
15
15
and `mypy <http://mypy-lang.org/ >`_ type checking.
16
16
* You must supply tests for new code.
Original file line number Diff line number Diff line change 1
1
[tool .black ]
2
- required-version = " 22.1 .0"
2
+ required-version = " 22.3 .0"
3
3
line-length = " 88"
4
4
skip-string-normalization = true
5
5
target-version = [' py37' ]
Original file line number Diff line number Diff line change 1
- black==22.1 .0
1
+ black==22.3 .0
2
2
coverage
3
3
doctest-ignore-unicode==0.1.2
4
4
flake8
Original file line number Diff line number Diff line change 31
31
"berkeleydb" : ["berkeleydb" ],
32
32
"networkx" : ["networkx" ],
33
33
"dev" : [
34
- "black==22.1 .0" ,
34
+ "black==22.3 .0" ,
35
35
"mypy" ,
36
36
"flake8" ,
37
37
"flake8-black" ,
You can’t perform that action at this time.
0 commit comments