Skip to content

Commit d106920

Browse files
authored
🔨 Update code formatting and linting configurations (#144)
* 🔨 Update code formatting and linting configurations * ⬆️ Update linting and testing dependencies * ♻️ lint files * ⬆️ Update pre-commit hooks version to v4.5.0
1 parent 10386a9 commit d106920

33 files changed

+945
-982
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
55
- id: check-yaml
66
args: ['--unsafe']
@@ -22,9 +22,3 @@ repos:
2222
types: [python]
2323
language: system
2424
pass_filenames: false
25-
- id: pyupgrade
26-
name: Pyupgrade
27-
entry: pyupgrade --py37-plus
28-
types: [python]
29-
language: system
30-
exclude: "pydantic_extra_types/types/phone_numbers.py"

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,18 @@ refresh-lockfiles:
1818

1919
.PHONY: format
2020
format:
21-
black $(sources)
2221
ruff --fix $(sources)
22+
ruff format $(sources)
2323

2424
.PHONY: lint
2525
lint:
2626
ruff $(sources)
27-
black $(sources) --check --diff
27+
ruff format --check $(sources)
2828

2929
.PHONY: mypy
3030
mypy:
3131
mypy pydantic_extra_types
3232

33-
.PHONY: pyupgrade
34-
pyupgrade:
35-
pyupgrade --py37-plus `find pydantic_extra_types tests -name "*.py" -type f`
36-
3733
.PHONY: test
3834
test:
3935
coverage run -m pytest --durations=10

pydantic_extra_types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.5.0'
1+
__version__ = "2.5.0"

0 commit comments

Comments
 (0)