Skip to content

Commit a28826b

Browse files
authored
chore: bump deps + remove docformatter (#423)
and remove docformatter because 1.6.0 is inconsistently removing blank lines after the docstring (see failed build on 7d62715)
1 parent ce6d8e1 commit a28826b

File tree

4 files changed

+8
-24
lines changed

4 files changed

+8
-24
lines changed

.pre-commit-config.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ repos:
2222
entry: .venv/bin/black
2323
language: system
2424
types: [python]
25-
# use docformatter from the venv so that it reads from pyproject.toml
26-
- id: docformatter
27-
name: docformatter
28-
entry: .venv/bin/docformatter
29-
args: [--in-place]
30-
language: system
31-
types: [python]
3225
- id: ruff
3326
name: ruff
3427
entry: .venv/bin/ruff

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ install: $(venv) node_modules $(if $(value CI),,install-hooks)
3131
## format all code
3232
format: $(venv)
3333
$(venv)/bin/black .
34-
$(venv)/bin/docformatter . --in-place -e build dist node_modules typings
3534
$(venv)/bin/ruff .
3635

3736
## lint code and run static type check

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"devDependencies": {
3-
"pyright": "1.1.298"
3+
"pyright": "1.1.302"
44
}
55
}

pyproject.toml

+7-15
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,23 @@ keywords = ["AWS", "EC2", "command line", "cli"]
88
classifiers = ["License :: OSI Approved :: MIT License"]
99
requires-python = ">=3.7"
1010
dependencies = [
11-
"boto3==1.26.89",
11+
"boto3==1.26.106",
1212
"importlib_resources==5.12.0",
1313
"pytoml==0.1.21",
14-
"pytz==2022.7.1",
14+
"pytz==2023.3",
1515
"requests==2.28.2",
16-
"rich==13.3.2",
16+
"rich==13.3.3",
1717
"typing_extensions==4.5.0",
1818
]
1919

2020
[project.optional-dependencies]
2121
dev = [
2222
"black~=23.1",
2323
"build~=0.7",
24-
"boto3-stubs[ec2,compute-optimizer,ssm,s3]==1.26.89",
24+
"boto3-stubs[ec2,compute-optimizer,ssm,s3]",
2525
"cogapp~=3.3",
2626
"darglint~=1.8",
27-
"docformatter~=1.5",
28-
"moto[ec2]==4.1.4",
27+
"moto[ec2]~=4.1",
2928
"pre-commit~=2.20",
3029
"pyfakefs~=5.1",
3130
"pytest~=7.2",
@@ -46,15 +45,10 @@ requires = ["setuptools", "setuptools_scm[toml]", "wheel"]
4645
# enable setuptools_scm to set the version based on git tags
4746
[tool.setuptools_scm]
4847

49-
[tool.black]
5048
# use PyCharm default line length of 120
51-
line-length = 120
5249

53-
[tool.docformatter]
54-
pre-summary-newline = true
55-
recursive = true
56-
wrap-descriptions = 120
57-
wrap-summaries = 120
50+
[tool.black]
51+
line-length = 120
5852

5953
[tool.ruff]
6054
line-length = 120
@@ -101,8 +95,6 @@ show-fixes = true
10195
keep-runtime-typing = true
10296

10397
[tool.ruff.per-file-ignores]
104-
# imports in __init__.py don't need to be used in __init__.py
105-
"__init__.py" = ["F401"]
10698
# test functions don't need return types
10799
"tests/*" = ["ANN201", "ANN202"]
108100
# main.py can have long lines

0 commit comments

Comments
 (0)