diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f62ae7d..9bd72608 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,12 @@ jobs: python-arch: x86 - os: macOS-latest python-arch: x86 + - os: macOS-latest + python-version: 3.8 + - os: macOS-latest + python-version: 3.9 + - os: macOS-latest + python-version: '3.10' - os: windows-2019 python-arch: x86 - os: windows-2019 @@ -150,5 +156,5 @@ jobs: path: ./dist - name: Publish - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.event.release.tag_name, 'v') uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ba6ae32..3c6e3f04 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 24.3.0 + rev: 24.8.0 hooks: - id: black diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 7478fbda..5d6074ab 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,7 @@ { "recommendations": [ + "ms-python.black-formatter", + "ms-python.isort", "ms-python.python", "ms-python.vscode-pylance" ] diff --git a/.vscode/settings.json b/.vscode/settings.json index 1393bb0f..461e6067 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { + "black-formatter.importStrategy": "fromEnvironment", "editor.formatOnSave": true, "editor.rulers": [ 80, @@ -6,7 +7,7 @@ ], "files.trimTrailingWhitespace": true, "editor.trimAutoWhitespace": true, - "python.formatting.provider": "black", + "isort.importStrategy": "fromEnvironment", "python.testing.pytestArgs": [ "tests", "-vv" @@ -14,12 +15,10 @@ "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, "[python]": { + "editor.defaultFoldingRangeProvider": "ms-python.black-formatter", "editor.codeActionsOnSave": { - "source.organizeImports": true + "source.organizeImports": "explicit" }, }, - "python.linting.ignorePatterns": [ - "tests/**" - ], "python.envFile": "${workspaceFolder}/.vscode/.env", } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 82c74f40..6f47d520 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 1.14.0 - TBD +## 1.14.0 - 2024-08-26 * Dropped support for Python 3.7 * `SMBDirEntryInformation.last_write_time` is now annotated as `datetime.datetime`. Previously, it was `datetime.date`. https://github.com/jborean93/smbprotocol/issues/279 diff --git a/requirements-dev.txt b/requirements-dev.txt index 9a9191d3..1a170fdd 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -black == 24.3.0 +black == 24.8.0 build cryptography >= 2.0 isort == 5.13.2