Skip to content

Commit ccf5ba7

Browse files
committed
Infrastructure library updates
1 parent c1bf5fe commit ccf5ba7

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,5 @@ allure-report
136136
ignore-config.yaml
137137
gh-pages
138138
*.pub
139+
session_data/
140+
session_data_original/

.pre-commit-config.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v3.3.1
3+
rev: v3.15.0
44
hooks:
55
- id: pyupgrade
66
args: [--py39-plus]
77
- repo: https://github.com/PyCQA/autoflake
8-
rev: v2.0.0
8+
rev: v2.2.1
99
hooks:
1010
- id: autoflake
1111
args:
1212
- --in-place
1313
- --remove-all-unused-imports
1414
- repo: https://github.com/psf/black
15-
rev: 22.12.0
15+
rev: 23.9.1
1616
hooks:
1717
- id: black
1818
args:
1919
- --quiet
2020
files: ^((src|tests)/.+)?[^/]+\.py$
2121
- repo: https://github.com/codespell-project/codespell
22-
rev: v2.2.2
22+
rev: v2.2.6
2323
hooks:
2424
- id: codespell
2525
args:
2626
- --skip="./.*,*.csv,*.json"
2727
- --quiet-level=2
2828
exclude: ^tests/data/
2929
- repo: https://github.com/PyCQA/flake8
30-
rev: 6.0.0
30+
rev: 6.1.0
3131
hooks:
3232
- id: flake8
3333
additional_dependencies:
34-
- pycodestyle==2.10.0
35-
- pyflakes==3.0.1
36-
- flake8-docstrings==1.6.0
37-
- pydocstyle==6.1.1
38-
- flake8-comprehensions==3.10.1
39-
- flake8-noqa==1.3.0
40-
- mccabe==0.7.0
34+
- pycodestyle
35+
- pyflakes
36+
- flake8-docstrings
37+
- pydocstyle
38+
- flake8-comprehensions
39+
- flake8-noqa
40+
- mccabe
4141
files: ^(src|tests)/.+\.py$
4242
- repo: https://github.com/PyCQA/bandit
43-
rev: 1.7.4
43+
rev: 1.7.5
4444
hooks:
4545
- id: bandit
4646
args:
@@ -49,13 +49,13 @@ repos:
4949
- --configfile=tests/bandit.yaml
5050
files: ^(src|tests)/.+\.py$
5151
- repo: https://github.com/PyCQA/isort
52-
rev: 5.11.4
52+
rev: 5.12.0
5353
hooks:
5454
- id: isort
5555
args:
5656
- --profile=black
5757
- repo: https://github.com/pre-commit/pre-commit-hooks
58-
rev: v4.4.0
58+
rev: v4.5.0
5959
hooks:
6060
- id: check-executables-have-shebangs
6161
stages: [manual]
@@ -65,11 +65,11 @@ repos:
6565
args:
6666
- --branch=main
6767
- repo: https://github.com/adrienverge/yamllint.git
68-
rev: v1.29.0
68+
rev: v1.32.0
6969
hooks:
7070
- id: yamllint
7171
- repo: https://github.com/pre-commit/mirrors-prettier
72-
rev: v3.0.0-alpha.4
72+
rev: v3.0.3
7373
hooks:
7474
- id: prettier
7575
# - repo: https://github.com/cdce8p/python-typing-update

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,17 @@ It is strongly suggested to open file handles as binary rather than text to prev
322322
further down the line.
323323
324324
### Accessing App Data
325+
325326
The `get_app_node` method can be used to retrieve a node with app data (that is not shown in `api.drive.dir()`). This is where the individual apps store related documents.
326327
327328
```bash
328329
>>> node = api.drive.get_app_node("XXXXXXXXXX.com.apple.iMovie")
329330
```
331+
330332
Ids of individual app data can be found in `~/Library/Mobile Documents` (can only be accessed in Terminal). `~` must be replaced with `.`.
331333
332334
Node can then be used just like any other node, supporting `mkdir`, `rename`, `delete` and so on:
335+
333336
```
334337
>>> node.mkdir('2020')
335338
>>> node.rename('2020_copy')

icloudpy/services/photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def albums(self):
189189
folder_name = base64.b64decode(
190190
folder["fields"]["albumNameEnc"]["value"]
191191
).decode("utf-8")
192-
192+
193193
query_filter = [
194194
{
195195
"fieldName": "parentId",

pylintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,5 +440,4 @@ valid-metaclass-classmethod-first-arg=mcs
440440

441441
# Exceptions that will emit a warning when being caught. Defaults to
442442
# "Exception"
443-
overgeneral-exceptions=StandardError,
444-
BaseException
443+
overgeneral-exceptions=builtins.StandardError, builtins.BaseException

tests/bandit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ tests:
1313
- B318
1414
- B319
1515
- B320
16-
- B325
1716
- B601
1817
- B602
1918
- B604

0 commit comments

Comments
 (0)