Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
2bef103
Runtime code fixes
wch Mar 21, 2024
5c60398
Remove six dependency
wch Mar 23, 2024
e08f9c1
Fixes for http_support
wch Mar 26, 2024
8dc65a4
Rename TaskStatus to TaskStatusV0
wch Mar 26, 2024
1c4a828
Fixes for models.py
wch Mar 26, 2024
6e564b0
Fixes for json_web_token
wch Mar 26, 2024
833ca0c
Fixes for log
wch Mar 26, 2024
c3238d0
Remove click.get_current_context() check
wch Mar 26, 2024
58be270
Fixes in actions_content
wch Mar 26, 2024
210cd2b
Fixes in api
wch Mar 26, 2024
45cfe00
Consolidate ApiAppRecord and ContentItem
wch Mar 27, 2024
d3914e6
Fixes for api
wch Mar 27, 2024
1b2e2f4
Update _handle_bad_response to return input and do type narrowing
wch Mar 27, 2024
e83b8fa
Replace ContentItem with ContentItemV0 and ContentItemV1
wch Mar 27, 2024
66e9515
Add check for None
wch Mar 27, 2024
de79b59
Add TaskStatusV1
wch Mar 27, 2024
10ba57d
Fixes in actions_content
wch Mar 27, 2024
d970e57
Make Environment fields non-Optional
wch Mar 27, 2024
2f1d758
Add typing for app_upload
wch Mar 27, 2024
a5cddd9
Add pyright ignore comments
wch Mar 27, 2024
7fc2f34
Add accessor function for content_build_store
wch Mar 27, 2024
319a053
Convert Environment to dataclass
wch Mar 27, 2024
28ca0aa
Add type for ServerSettings
wch Mar 27, 2024
29a8b32
Add PyInfo type
wch Mar 27, 2024
a7ecbc3
Add types for cache API
wch Mar 27, 2024
e9c4057
Add type for app_config
wch Mar 27, 2024
09f814b
Add type for bootstrap
wch Mar 27, 2024
e068cb8
Small type fixes
wch Mar 27, 2024
0f12e1f
Update ContentItemV0 and ContentItemV1
wch Mar 27, 2024
edb125e
Fix bootstrapdto formatting
wch Mar 27, 2024
a3ae499
Small typing fix
wch Mar 27, 2024
7161e3a
Use Mapping type
wch Mar 27, 2024
a2a9f85
Remove checks for string encode method
wch Mar 27, 2024
1cb23c5
Fixes for TaskStatusV0 and BuildOutputDTO
wch Mar 27, 2024
fdba481
Switch from mypy to pyright
wch Mar 28, 2024
c82d4a6
Small type fixes
wch Mar 28, 2024
8050031
Enable CI for pull request
wch Mar 28, 2024
4ec3639
Remove unused import
wch Mar 28, 2024
483076b
Add types for PositClient API
wch Mar 28, 2024
407e6db
More API typing
wch Mar 28, 2024
dfc5ae2
Change init_content_build_store to ensure_content_build_store
wch Mar 28, 2024
11f7fab
Remove reset() and drop_context() methods
wch Mar 28, 2024
d74e8c6
Check class of client instead of using cast()
wch Mar 28, 2024
2fea71e
Remove unused import
wch Mar 28, 2024
9f29ef5
Remove unused deprecated functions
wch Mar 28, 2024
2b42944
Remove unused functions from actions.py
wch Mar 29, 2024
c318698
Refactor RSConnectExecutor and make all args explicit
wch Mar 29, 2024
2d9424b
Switch type from BinaryIO to IO[bytes]
wch Mar 29, 2024
2925857
Small cleanups
wch Mar 29, 2024
71d5f75
Remove unused functions
wch Mar 29, 2024
f81f3ab
In handle_bad_response(), add is_httpresponse param
wch Mar 29, 2024
dce878f
Use explicit args instead of locals()
wch Mar 29, 2024
d003107
Small cleanups
wch Mar 29, 2024
d67dada
Remove unnecessary @property
wch Mar 29, 2024
3b395e0
Rename type
wch Mar 29, 2024
59b63a0
Move contents of state dictionary into RSConnectExecutor class
wch Apr 1, 2024
a70b4ab
Use Paramspec for make_bundle
wch Apr 1, 2024
efe8fa0
Remove unused kwargs
wch Apr 1, 2024
cf1f2fd
Cleanup for validate_server()
wch Apr 1, 2024
94ee0ab
Remove unused params for validate_server()
wch Apr 2, 2024
8fd6cc3
Fixes for actions_content.py
wch Apr 2, 2024
da40b48
Fixes for bundly.py
wch Apr 2, 2024
a19bce8
Cleanups in api.py
wch Apr 2, 2024
497e250
Add comment
wch Apr 2, 2024
26e0353
Add leading - to make command
wch Apr 2, 2024
a0f1ed2
Typing fixes
wch Apr 3, 2024
f5ca6e5
Fix for LoggerAdapter not being generic in Python<=3.11
wch Apr 3, 2024
76a871a
Fixes for Python 3.8
wch Apr 3, 2024
b4ebd2a
Fixes for unit tests
wch Apr 3, 2024
2ed8b70
Remove unused import
wch Apr 3, 2024
da5c68d
Use Union instead of | for Python 3.8
wch Apr 3, 2024
8e350e0
More uses of Union
wch Apr 3, 2024
be37379
Use List instead of list for Python 3.8
wch Apr 3, 2024
7bcc14b
Don't handle bad responses in RSConnectClient.bootstrap()
wch Apr 3, 2024
d1df87c
Add VS Code settings file
wch Apr 3, 2024
89f855d
Update pyproject.toml
wch Apr 3, 2024
667795f
Revert change to GHA workflow
wch Apr 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/.local/
/.pipenv-requires
/.venv/
/.vscode/
/build/
/dist/
/docs/docs/changelog.md
Expand All @@ -27,6 +26,7 @@ htmlcov
test-home/
venv
coverage.xml
/typings/

# Temporary dev files
vetiver-testing/rsconnect_api_keys.json
Expand Down
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-python.vscode-pylance",
"ms-python.black-formatter"
]
}
27 changes: 27 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"editor.tabSize": 4,
"files.encoding": "utf8",
"files.eol": "\n",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.tabSize": 4,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.rulers": [120],
},
"isort.args": ["--profile", "black"],
"files.exclude": {
"**/__pycache__": true,
"build/**": true,
"venv/**": true,
},
"search.exclude": {
"**/__pycache__": true,
"build/**": true,
"venv/**": true,
},
}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ lint-%:
$(RUNNER) 'black --check --diff rsconnect/'
$(RUNNER) 'flake8 rsconnect/'
$(RUNNER) 'flake8 tests/'
$(RUNNER) 'mypy -p rsconnect'
# Temporarily use leading '-' so it will continue even if pyright finds issues.
-$(RUNNER) 'pyright rsconnect/'

.PHONY: .lint-unsupported
.lint-unsupported:
Expand All @@ -70,7 +71,6 @@ lint-%:
clean:
$(RM) -r \
./.coverage \
./.mypy_cache \
./.pytest_cache \
./build \
./dist \
Expand Down
12 changes: 2 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ requires-python = ">=3.8"

dependencies = [
"typing-extensions>=4.10.0",
"six>=1.14.0",
Comment thread
wch marked this conversation as resolved.
"pip>=10.0.0",
"semver>=2.0.0,<3.0.0",
"pyjwt>=2.4.0",
Expand All @@ -29,16 +28,14 @@ test = [
"flake8",
"httpretty",
"ipykernel",
"mypy",
"nbconvert",
"pyright",
"pytest-cov",
"pytest-mypy",
"pytest",
"setuptools>=61",
"setuptools_scm[toml]>=3.4",
"twine",
"types-Flask",
"types-six",
]

[project.urls]
Expand All @@ -53,7 +50,6 @@ universal = true

[tool.black]
line-length = 120
target-version = ['py35']

[tool.coverage.run]
omit = ["tests/*"]
Expand All @@ -75,10 +71,6 @@ exclude = [".git", ".venv", ".venv2", ".venv3", "__pycache__", ".cache"]
extend_ignore = ["E203", "E231", "E302"]
per-file-ignores = ["tests/test_metadata.py: E501"]

[tool.mypy]
ignore_missing_imports = true
strict_optional = false

[tool.setuptools]
packages = ["rsconnect"]

Expand All @@ -92,4 +84,4 @@ markers = ["vetiver: tests for vetiver"]
typeCheckingMode = "strict"
reportPrivateUsage = "none"
reportUnnecessaryIsInstance = "none"
reportUnnecessaryComparison = "none"
reportUnnecessaryComparison = "none"
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ flake8-pyproject
flake8
httpretty
ipykernel
mypy
nbconvert
pyright
pytest-cov
pytest-mypy
pytest
setuptools_scm[toml]
twine
Expand Down
Loading