Skip to content

Commit

Permalink
chore: bump deps + remove docformatter (#423)
Browse files Browse the repository at this point in the history
and remove docformatter because 1.6.0 is inconsistently removing blank
lines after the docstring (see failed build on 7d62715)
  • Loading branch information
tekumara authored Apr 5, 2023
1 parent ce6d8e1 commit a28826b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ repos:
entry: .venv/bin/black
language: system
types: [python]
# use docformatter from the venv so that it reads from pyproject.toml
- id: docformatter
name: docformatter
entry: .venv/bin/docformatter
args: [--in-place]
language: system
types: [python]
- id: ruff
name: ruff
entry: .venv/bin/ruff
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ install: $(venv) node_modules $(if $(value CI),,install-hooks)
## format all code
format: $(venv)
$(venv)/bin/black .
$(venv)/bin/docformatter . --in-place -e build dist node_modules typings
$(venv)/bin/ruff .

## lint code and run static type check
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"devDependencies": {
"pyright": "1.1.298"
"pyright": "1.1.302"
}
}
22 changes: 7 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,23 @@ keywords = ["AWS", "EC2", "command line", "cli"]
classifiers = ["License :: OSI Approved :: MIT License"]
requires-python = ">=3.7"
dependencies = [
"boto3==1.26.89",
"boto3==1.26.106",
"importlib_resources==5.12.0",
"pytoml==0.1.21",
"pytz==2022.7.1",
"pytz==2023.3",
"requests==2.28.2",
"rich==13.3.2",
"rich==13.3.3",
"typing_extensions==4.5.0",
]

[project.optional-dependencies]
dev = [
"black~=23.1",
"build~=0.7",
"boto3-stubs[ec2,compute-optimizer,ssm,s3]==1.26.89",
"boto3-stubs[ec2,compute-optimizer,ssm,s3]",
"cogapp~=3.3",
"darglint~=1.8",
"docformatter~=1.5",
"moto[ec2]==4.1.4",
"moto[ec2]~=4.1",
"pre-commit~=2.20",
"pyfakefs~=5.1",
"pytest~=7.2",
Expand All @@ -46,15 +45,10 @@ requires = ["setuptools", "setuptools_scm[toml]", "wheel"]
# enable setuptools_scm to set the version based on git tags
[tool.setuptools_scm]

[tool.black]
# use PyCharm default line length of 120
line-length = 120

[tool.docformatter]
pre-summary-newline = true
recursive = true
wrap-descriptions = 120
wrap-summaries = 120
[tool.black]
line-length = 120

[tool.ruff]
line-length = 120
Expand Down Expand Up @@ -101,8 +95,6 @@ show-fixes = true
keep-runtime-typing = true

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

0 comments on commit a28826b

Please sign in to comment.