Skip to content

Commit

Permalink
Run black on CI #11
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Sep 26, 2024
1 parent cba897c commit 544107d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[code-analysis]
- name: Run black
run: black --check --line-length 120
- name: Run pylint
run: pylint object_storage_api test

Expand Down
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ dependencies = [

[project.optional-dependencies]
code-analysis = [
"black==24.8.0",
"pylint==3.2.7",
"object-storage-api[test]"
]

formatting = [
"black==24.8.0"
]

test = [
"pytest==8.3.3",
"pytest-asyncio==0.24.0",
Expand All @@ -36,7 +32,6 @@ test = [

dev = [
"object-storage-api[code-analysis]",
"object-storage-api[formatting]",
"object-storage-api[test]",
]

Expand Down
4 changes: 3 additions & 1 deletion test/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ def fixture_cleanup_object_storage_bucket():
# If nothing uploaded there is no contents (Could happen if there are errors or if a test doesn't upload anything)
if "Contents" in objects:
objects = list(map(lambda x: {"Key": x["Key"]}, objects["Contents"]))
s3_client.delete_objects(Bucket=object_storage_config.bucket_name.get_secret_value(), Delete={"Objects": objects})
s3_client.delete_objects(
Bucket=object_storage_config.bucket_name.get_secret_value(), Delete={"Objects": objects}
)

0 comments on commit 544107d

Please sign in to comment.