Skip to content

Commit a7b0978

Browse files
authored
Update dependancies (#274)
1 parent dadba61 commit a7b0978

File tree

5 files changed

+49
-36
lines changed

5 files changed

+49
-36
lines changed

Makefile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ install:
77
pip install -r requirements/all.txt
88
pip install -e .
99

10+
.PHONY: refresh-lockfiles
11+
refresh-lockfiles:
12+
@echo "Updating requirements/*.txt files using pip-compile"
13+
find requirements/ -name '*.txt' ! -name 'all.txt' -type f -delete
14+
pip-compile -q --no-emit-index-url --resolver backtracking -o requirements/linting.txt requirements/linting.in
15+
pip-compile -q --no-emit-index-url --resolver backtracking -o requirements/testing.txt requirements/testing.in
16+
pip-compile -q --no-emit-index-url --resolver backtracking --extra toml --extra yaml -o requirements/pyproject.txt pyproject.toml
17+
pip install --dry-run -r requirements/all.txt
18+
1019
.PHONY: format
1120
format:
12-
black $(sources)
13-
ruff --fix $(sources)
21+
ruff check --fix $(sources)
22+
ruff format $(sources)
1423

1524
.PHONY: lint
1625
lint:
17-
ruff $(sources)
18-
black $(sources) --check --diff
26+
ruff check $(sources)
27+
ruff format --check $(sources)
1928

2029
.PHONY: mypy
2130
mypy:

pyproject.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,20 @@ source = [
8585

8686
[tool.ruff]
8787
line-length = 120
88+
target-version = 'py38'
89+
90+
[tool.ruff.lint.pyupgrade]
91+
keep-runtime-typing = true
92+
93+
[tool.ruff.lint]
8894
extend-select = ['Q', 'RUF100', 'C90', 'UP', 'I']
8995
flake8-quotes = {inline-quotes = 'single', multiline-quotes = 'double'}
90-
mccabe = { max-complexity = 14 }
9196
isort = { known-first-party = ['pydantic_settings', 'tests'] }
92-
target-version = 'py38'
97+
mccabe = { max-complexity = 14 }
98+
pydocstyle = { convention = 'google' }
9399

94-
[tool.black]
95-
color = true
96-
line-length = 120
97-
target-version = ['py310']
98-
skip-string-normalization = true
100+
[tool.ruff.format]
101+
quote-style = 'single'
99102

100103
[tool.mypy]
101104
python_version = '3.10'

requirements/linting.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22
# This file is autogenerated by pip-compile with Python 3.8
33
# by the following command:
44
#
5-
# pip-compile --output-file=requirements/linting.txt requirements/linting.in
5+
# pip-compile --no-emit-index-url --output-file=requirements/linting.txt requirements/linting.in
66
#
7-
black==24.2.0
7+
black==24.4.0
88
# via -r requirements/linting.in
99
cfgv==3.4.0
1010
# via pre-commit
1111
click==8.1.7
1212
# via black
1313
distlib==0.3.8
1414
# via virtualenv
15-
filelock==3.13.1
15+
filelock==3.13.4
1616
# via virtualenv
17-
identify==2.5.34
17+
identify==2.5.36
1818
# via pre-commit
19-
mypy==1.8.0
19+
mypy==1.9.0
2020
# via -r requirements/linting.in
2121
mypy-extensions==1.0.0
2222
# via
2323
# black
2424
# mypy
2525
nodeenv==1.8.0
2626
# via pre-commit
27-
packaging==23.2
27+
packaging==24.0
2828
# via black
2929
pathspec==0.12.1
3030
# via black
@@ -34,27 +34,27 @@ platformdirs==4.2.0
3434
# virtualenv
3535
pre-commit==3.5.0
3636
# via -r requirements/linting.in
37-
pyupgrade==3.15.0
37+
pyupgrade==3.15.2
3838
# via -r requirements/linting.in
3939
pyyaml==6.0.1
4040
# via
4141
# -r requirements/linting.in
4242
# pre-commit
43-
ruff==0.2.2
43+
ruff==0.4.1
4444
# via -r requirements/linting.in
4545
tokenize-rt==5.2.0
4646
# via pyupgrade
4747
tomli==2.0.1
4848
# via
4949
# black
5050
# mypy
51-
types-pyyaml==6.0.12.12
51+
types-pyyaml==6.0.12.20240311
5252
# via -r requirements/linting.in
53-
typing-extensions==4.9.0
53+
typing-extensions==4.11.0
5454
# via
5555
# black
5656
# mypy
57-
virtualenv==20.25.0
57+
virtualenv==20.25.3
5858
# via pre-commit
5959

6060
# The following packages are considered to be unsafe in a requirements file:

requirements/pyproject.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.8
33
# by the following command:
44
#
5-
# pip-compile --extra=toml --extra=yaml,toml --output-file=requirements/pyproject.txt pyproject.toml
5+
# pip-compile --extra=toml --extra=yaml --no-emit-index-url --output-file=requirements/pyproject.txt pyproject.toml
66
#
77
annotated-types==0.6.0
88
# via pydantic
@@ -16,7 +16,8 @@ pyyaml==6.0.1
1616
# via pydantic-settings (pyproject.toml)
1717
tomli==2.0.1
1818
# via pydantic-settings (pyproject.toml)
19-
typing-extensions==4.9.0
19+
typing-extensions==4.11.0
2020
# via
21+
# annotated-types
2122
# pydantic
2223
# pydantic-core

requirements/testing.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# This file is autogenerated by pip-compile with Python 3.8
33
# by the following command:
44
#
5-
# pip-compile --output-file=requirements/testing.txt requirements/testing.in
5+
# pip-compile --no-emit-index-url --output-file=requirements/testing.txt requirements/testing.in
66
#
7-
black==24.2.0
7+
black==24.4.0
88
# via pytest-examples
99
click==8.1.7
1010
# via black
11-
coverage[toml]==7.4.1
11+
coverage[toml]==7.4.4
1212
# via -r requirements/testing.in
13-
exceptiongroup==1.2.0
13+
exceptiongroup==1.2.1
1414
# via pytest
1515
iniconfig==2.0.0
1616
# via pytest
@@ -20,40 +20,40 @@ mdurl==0.1.2
2020
# via markdown-it-py
2121
mypy-extensions==1.0.0
2222
# via black
23-
packaging==23.2
23+
packaging==24.0
2424
# via
2525
# black
2626
# pytest
2727
pathspec==0.12.1
2828
# via black
2929
platformdirs==4.2.0
3030
# via black
31-
pluggy==1.4.0
31+
pluggy==1.5.0
3232
# via pytest
3333
pygments==2.17.2
3434
# via rich
35-
pytest==8.0.1
35+
pytest==8.1.1
3636
# via
3737
# -r requirements/testing.in
3838
# pytest-examples
3939
# pytest-mock
4040
# pytest-pretty
4141
pytest-examples==0.0.10
4242
# via -r requirements/testing.in
43-
pytest-mock==3.12.0
43+
pytest-mock==3.14.0
4444
# via -r requirements/testing.in
4545
pytest-pretty==1.2.0
4646
# via -r requirements/testing.in
47-
rich==13.7.0
47+
rich==13.7.1
4848
# via pytest-pretty
49-
ruff==0.2.2
49+
ruff==0.4.1
5050
# via pytest-examples
5151
tomli==2.0.1
5252
# via
5353
# black
5454
# coverage
5555
# pytest
56-
typing-extensions==4.9.0
56+
typing-extensions==4.11.0
5757
# via
5858
# black
5959
# rich

0 commit comments

Comments
 (0)