-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix/pagination' into rogues/python3.8
- Loading branch information
Showing
28 changed files
with
2,168 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
max-complexity = 18 | ||
# E999 Ignore syntax errors bc we use py3.11 | ||
# C901 Ignore complexity errors bc I don't feel like rewriting several files | ||
# A005 Shadowing built-in modules | ||
ignore = E203, E266, E501, W503, RST304, C901, E999, A005 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Feature branch | ||
on: | ||
push: | ||
branches-ignore: | ||
[master] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
uses: ./.github/workflows/lint.yaml | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Lint" | ||
on: workflow_call | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Set up SSH | ||
uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@bafa4d4adfc54e5fba0da6c1eb34001a4fdbaa4c # v1.0 | ||
with: | ||
version: 1.8.3 | ||
|
||
- name: Install Dependencies | ||
run: poetry install | ||
|
||
- name: Pre-Commit | ||
run: poetry run pre-commit run --all-files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Action for merging PRs into the main branch | ||
name: Main Branch | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
uses: ./.github/workflows/lint.yaml | ||
secrets: inherit | ||
|
||
release: | ||
name: Create GitHub Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Check if PR was merged | ||
run: | | ||
if [ ${{ github.event_name }} == 'pull_request' ]; then | ||
if [ ${{ github.event.pull_request.merged }} == 'false' ]; then | ||
echo "This PR was closed without merging. Exiting..." | ||
exit 0 | ||
fi | ||
fi | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: TOML Reader | ||
id: read_toml | ||
uses: SebRollen/toml-action@2bd04b06a3ebc3e6a3eb6060de115710cad16cd6 #v1.0.2 | ||
with: | ||
file: 'pyproject.toml' | ||
field: 'tool.poetry.version' | ||
|
||
- name: Define TAG | ||
run: | | ||
export VERSION="${{ steps.read_toml.outputs.value }}" | ||
echo "TAG=v$VERSION" >> $GITHUB_ENV | ||
- name: Check if tag exists | ||
id: check_tag | ||
uses: actions/github-script@v6 | ||
with: | ||
result-encoding: string | ||
script: | | ||
const tag = process.env.TAG; | ||
const { owner, repo } = context.repo; | ||
try { | ||
await github.rest.git.getRef({ | ||
owner, | ||
repo, | ||
ref: `tags/${tag}`, | ||
}); | ||
// If the API call doesn't throw an error, the tag exists | ||
return true; | ||
} catch (error) { | ||
// If the API call throws an error, the tag doesn't exist | ||
return false; | ||
} | ||
env: | ||
TAG: ${{ env.TAG }} | ||
|
||
- name: Create Release and Tag | ||
uses: actions/github-script@v6 | ||
with: | ||
result-encoding: string | ||
retries: 3 | ||
script: | | ||
github.rest.repos.createRelease({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
tag_name: process.env.TAG, | ||
target_commitish: context.sha, | ||
name: process.env.TAG, | ||
generate_release_notes: true | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
- repo: https://github.com/ambv/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: '6.1.0' | ||
hooks: | ||
- id: flake8 | ||
exclude: (tests|doc) | ||
additional_dependencies: [ | ||
'flake8-docstrings', | ||
'flake8-builtins', | ||
'flake8-logging-format', | ||
'flake8-rst-docstrings', | ||
'pygments', | ||
'pep8-naming' | ||
] | ||
default_language_version: | ||
python: python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
"""S3 MirrorPath package.""" | ||
from ._version import __version__ | ||
from ._version import __version__ | ||
|
||
__all__ = ["__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""Semantic versioning for S3MP.""" | ||
|
||
__version__ = "0.5.2" | ||
__version__ = "0.5.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.