File tree Expand file tree Collapse file tree 11 files changed +44
-44
lines changed Expand file tree Collapse file tree 11 files changed +44
-44
lines changed Original file line number Diff line number Diff line change 21
21
22
22
- run : pip install -r requirements/linting.txt -r requirements/pyproject.txt
23
23
24
- - run : make lint
24
+ - run : mypy devtools
25
+
26
+ -
uses :
pre-commit/[email protected]
27
+ with :
28
+ extra_args : --all-files --verbose
25
29
26
30
test :
27
31
name : test py${{ matrix.python-version }} on ${{ matrix.os }}
Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/pre-commit/pre-commit-hooks
3
+ rev : v4.3.0
4
+ hooks :
5
+ - id : check-yaml
6
+ - id : check-toml
7
+ - id : end-of-file-fixer
8
+ - id : trailing-whitespace
9
+
10
+ - repo : local
11
+ hooks :
12
+ - id : ruff
13
+ name : Ruff
14
+ entry : ruff
15
+ args : [--fix, --exit-non-zero-on-fix]
16
+ types : [python]
17
+ language : system
18
+ files : ^devtools/|^tests/
19
+ - id : black
20
+ name : Black
21
+ entry : black
22
+ types : [python]
23
+ language : system
24
+ files : ^devtools/|^tests/
25
+ exclude : test_expr_render.py
Original file line number Diff line number Diff line change 14
14
15
15
## v0.7.0 (2021-09-03)
16
16
17
- * switch to [ ` executing ` ] ( https://pypi.org/project/executing/ ) and [ ` asttokens ` ] ( https://pypi.org/project/asttokens/ )
17
+ * switch to [ ` executing ` ] ( https://pypi.org/project/executing/ ) and [ ` asttokens ` ] ( https://pypi.org/project/asttokens/ )
18
18
for finding and printing debug arguments, #82 , thanks @alexmojaki
19
19
* correct changelog links, #76 , thanks @Cielquan
20
20
* return ` debug() ` arguments, #87
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ sources = devtools tests docs/plugins.py
3
3
4
4
.PHONY : install
5
5
install :
6
- python -m pip install -U pip
6
+ python -m pip install -U pip pre-commit
7
7
pip install -U -r requirements/all.txt
8
8
pip install -e .
9
+ pre-commit install
9
10
10
11
.PHONY : refresh-lockfiles
11
12
refresh-lockfiles :
Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ outputs:
64
64
devtools can be used without ` from devtools import debug ` if you add ` debug ` into ` __builtins__ `
65
65
in ` sitecustomize.py ` .
66
66
67
- For instructions on adding ` debug ` to ` __builtins__ ` ,
67
+ For instructions on adding ` debug ` to ` __builtins__ ` ,
68
68
see the [ installation docs] ( https://python-devtools.helpmanual.io/usage/#usage-without-import ) .
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Two ways to do this:
96
96
### Automatic install
97
97
98
98
!!! warning
99
- This is experimental, please [ create an issue] ( https://github.com/samuelcolvin/python-devtools/issues )
99
+ This is experimental, please [ create an issue] ( https://github.com/samuelcolvin/python-devtools/issues )
100
100
if you encounter any problems.
101
101
102
102
To install ` debug ` into ` __builtins__ ` automatically, run:
Original file line number Diff line number Diff line change 1
1
#
2
- # This file is autogenerated by pip-compile with Python 3.7
2
+ # This file is autogenerated by pip-compile with Python 3.10
3
3
# by the following command:
4
4
#
5
5
# pip-compile --output-file=requirements/docs.txt --resolver=backtracking requirements/docs.in
@@ -11,11 +11,7 @@ click==8.1.3
11
11
ghp-import==2.1.0
12
12
# via mkdocs
13
13
importlib-metadata==6.1.0
14
- # via
15
- # ansi2html
16
- # click
17
- # markdown
18
- # mkdocs
14
+ # via mkdocs
19
15
jinja2==3.1.2
20
16
# via
21
17
# mkdocs
@@ -65,8 +61,6 @@ pyyaml-env-tag==0.1
65
61
# via mkdocs
66
62
six==1.16.0
67
63
# via python-dateutil
68
- typing-extensions==4.5.0
69
- # via importlib-metadata
70
64
watchdog==3.0.0
71
65
# via mkdocs
72
66
zipp==3.15.0
Original file line number Diff line number Diff line change 1
1
#
2
- # This file is autogenerated by pip-compile with Python 3.7
2
+ # This file is autogenerated by pip-compile with Python 3.10
3
3
# by the following command:
4
4
#
5
5
# pip-compile --output-file=requirements/linting.txt --resolver=backtracking requirements/linting.in
@@ -8,10 +8,6 @@ black==23.3.0
8
8
# via -r requirements/linting.in
9
9
click==8.1.3
10
10
# via black
11
- importlib-metadata==6.1.0
12
- # via
13
- # click
14
- # sqlalchemy
15
11
mypy==0.971
16
12
# via -r requirements/linting.in
17
13
mypy-extensions==1.0.0
@@ -32,16 +28,7 @@ tomli==2.0.1
32
28
# via
33
29
# black
34
30
# mypy
35
- typed-ast==1.5.4
36
- # via
37
- # black
38
- # mypy
39
31
typing-extensions==4.5.0
40
32
# via
41
- # black
42
- # importlib-metadata
43
33
# mypy
44
- # platformdirs
45
34
# sqlalchemy
46
- zipp==3.15.0
47
- # via importlib-metadata
Original file line number Diff line number Diff line change 1
1
#
2
- # This file is autogenerated by pip-compile with Python 3.7
2
+ # This file is autogenerated by pip-compile with Python 3.10
3
3
# by the following command:
4
4
#
5
5
# pip-compile --output-file=requirements/pyproject.txt --resolver=backtracking pyproject.toml
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ pytest-pretty
6
6
# these packages are used in tests so install the latest version
7
7
pydantic
8
8
asyncpg
9
- numpy
10
- multidict
9
+ numpy; python_version>='3.8'
10
+ multidict; python_version>='3.8'
11
11
sqlalchemy
Original file line number Diff line number Diff line change 1
1
#
2
- # This file is autogenerated by pip-compile with Python 3.7
2
+ # This file is autogenerated by pip-compile with Python 3.10
3
3
# by the following command:
4
4
#
5
5
# pip-compile --output-file=requirements/testing.txt --resolver=backtracking requirements/testing.in
@@ -12,20 +12,15 @@ coverage[toml]==7.2.2
12
12
# via -r requirements/testing.in
13
13
exceptiongroup==1.1.1
14
14
# via pytest
15
- importlib-metadata==6.1.0
16
- # via
17
- # pluggy
18
- # pytest
19
- # sqlalchemy
20
15
iniconfig==2.0.0
21
16
# via pytest
22
17
markdown-it-py==2.2.0
23
18
# via rich
24
19
mdurl==0.1.2
25
20
# via markdown-it-py
26
- multidict==6.0.4
21
+ multidict==6.0.4 ; python_version >= "3.8"
27
22
# via -r requirements/testing.in
28
- numpy==1.21.6
23
+ numpy==1.24.2 ; python_version >= "3.8"
29
24
# via -r requirements/testing.in
30
25
packaging==23.0
31
26
# via pytest
@@ -56,11 +51,5 @@ tomli==2.0.1
56
51
# pytest
57
52
typing-extensions==4.5.0
58
53
# via
59
- # asyncpg
60
- # importlib-metadata
61
- # markdown-it-py
62
54
# pydantic
63
- # rich
64
55
# sqlalchemy
65
- zipp==3.15.0
66
- # via importlib-metadata
You can’t perform that action at this time.
0 commit comments