File tree 4 files changed +406
-18
lines changed 4 files changed +406
-18
lines changed Original file line number Diff line number Diff line change 14
14
jobs :
15
15
lint :
16
16
runs-on : ubuntu-latest
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ python-version : ['3.12']
21
+
17
22
steps :
18
23
- uses : actions/checkout@v4
19
24
20
25
- uses : astral-sh/setup-uv@v3
21
26
with :
22
27
enable-cache : true
23
28
24
- - run : uv sync --python 3.12 --frozen --no-dev --group lint
29
+ - name : Install dependencies
30
+ run : uv sync --python ${{ matrix.python-version }} --group lint --all-extras
25
31
26
32
- uses : pre-commit/action@v3.0.0
27
33
with :
@@ -48,10 +54,12 @@ jobs:
48
54
with :
49
55
enable-cache : true
50
56
51
- - name : Install Extra Dependencies
52
- run : uv sync --frozen --group all --all-extras
57
+ - name : Install extra dependencies
58
+ run : uv sync --group dev --all-extras
59
+
60
+ - name : Make coverage directory
61
+ run : mkdir coverage
53
62
54
- - run : mkdir coverage
55
63
- run : uv run --frozen coverage run -m pytest
56
64
env :
57
65
COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ sources = pydantic_extra_types tests
5
5
.uv :
6
6
@uv --version || echo ' Please install uv: https://docs.astral.sh/uv/getting-started/installation/'
7
7
8
- .PHONY : install # Install the package, dependencies, and pre-commit for local development
8
+ .PHONY : install # # Install the package, dependencies, and pre-commit for local development
9
9
install : .uv
10
10
uv sync --frozen --group all --all-extras
11
- uv run pre-commit install --install-hooks
11
+ uv pip install pre-commit
12
+ pre-commit install --install-hooks
12
13
13
14
.PHONY : rebuild-lockfiles # # Rebuild lockfiles from scratch, updating all dependencies
14
15
rebuild-lockfiles : .uv
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ dependencies = ['pydantic>=2.5.2','typing-extensions']
43
43
dynamic = [' version' ]
44
44
45
45
[project .optional-dependencies ]
46
- all = [
46
+ extra = [
47
47
' phonenumbers>=8,<9' ,
48
48
' pycountry>=23' ,
49
49
' semver>=3.0.2' ,
@@ -72,12 +72,15 @@ dev = [
72
72
" pytest-cov>=5.0.0" ,
73
73
]
74
74
lint = [
75
- " pre-commit>=3.5.0" ,
76
75
" ruff>=0.7.4" ,
77
76
" mypy>=0.910" ,
78
77
" annotated-types>=0.7.0" ,
79
78
" types-pytz>=2024.1.0.20240417" ,
80
79
]
80
+ all = [
81
+ { include-group = ' dev' },
82
+ { include-group = ' lint' },
83
+ ]
81
84
82
85
[project .urls ]
83
86
Homepage = ' https://github.com/pydantic/pydantic-extra-types'
You can’t perform that action at this time.
0 commit comments