Skip to content

Commit c5cf454

Browse files
committed
Merge update to CoAL 2.0 removing retrocompatibility with cosmotech-api < 5.0
2 parents e418952 + 64ef99c commit c5cf454

File tree

165 files changed

+5471
-12552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+5471
-12552
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ omit =
44
*/tests/*
55
*/site-packages/*
66
*/__pycache__/*
7+
cosmotech/coal/utils/decorator.py
78

89
[report]
910
exclude_lines =

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 120
3+
exclude = __init__.py

.pre-commit-config.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ repos:
66
- id: end-of-file-fixer
77
- id: check-added-large-files
88

9+
- repo: https://github.com/PyCQA/autoflake
10+
rev: v2.3.1
11+
hooks:
12+
- id: autoflake
13+
14+
- repo: https://github.com/pycqa/isort
15+
rev: 7.0.0
16+
hooks:
17+
- id: isort
18+
args: ["--profile", "black", "--filter-files"]
19+
920
- repo: https://github.com/psf/black
1021
rev: 24.3.0
1122
hooks:
@@ -15,7 +26,7 @@ repos:
1526
hooks:
1627
- id: pytest-check
1728
name: pytest-check
18-
entry: pytest tests/unit/coal/ --cov=cosmotech.coal --cov-report=term-missing --cov-fail-under=70
29+
entry: pytest tests/unit/coal/ --cov=cosmotech.coal --cov-report=term-missing
1930
language: system
2031
pass_filenames: false
2132
always_run: true

cosmotech/coal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# etc., to any person is prohibited unless it has been previously and
66
# specifically authorized by written means by Cosmo Tech.
77

8-
__version__ = "1.1.0"
8+
__version__ = "2.0.0"

cosmotech/coal/aws/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,4 @@
1212
"""
1313

1414
# Re-export S3 functions for easier importing
15-
from cosmotech.coal.aws.s3 import (
16-
create_s3_client,
17-
create_s3_resource,
18-
upload_file,
19-
upload_folder,
20-
download_files,
21-
upload_data_stream,
22-
delete_objects,
23-
)
15+
from cosmotech.coal.aws.s3 import S3

0 commit comments

Comments
 (0)