-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup github actions, fixup setup.py, add pyproject.toml, replace myp…
…y and prospector with ruff
- Loading branch information
1 parent
4572706
commit abdea76
Showing
10 changed files
with
125 additions
and
127 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 |
---|---|---|
|
@@ -8,19 +8,16 @@ jobs: | |
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up python | ||
uses: actions/setup-python@v2 | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- name: install dependencies | ||
run: | | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./setup.py | ||
sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./bucketstore.py | ||
- name: build and publish | ||
env: | ||
- env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USER }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -10,42 +10,32 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
prospector: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: jpetrucciani/prospector-check@master | ||
mypy: | ||
runs-on: ubuntu-latest | ||
ruff: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: jpetrucciani/mypy-check@master | ||
with: | ||
path: 'bucketstore.py' | ||
- uses: actions/[email protected] | ||
- uses: jpetrucciani/ruff-check@main | ||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: jpetrucciani/black-check@master | ||
with: | ||
path: 'bucketstore.py' | ||
tests: | ||
runs-on: ubuntu-latest | ||
needs: [mypy, prospector, black] | ||
needs: [ruff, black] | ||
strategy: | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] | ||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | ||
name: python ${{ matrix.python-version }} tests | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: install requirements | ||
run: | | ||
- run: | | ||
pip install -r requirements.txt | ||
pip install -r requirements.dev.txt | ||
- name: run Tox | ||
run: tox -e py | ||
- run: tox -e py |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
[tool.ruff] | ||
line-length = 100 | ||
lint.select = [ | ||
"A", | ||
"ANN", | ||
"ARG", | ||
"B", | ||
"C4", | ||
"D", | ||
"E", | ||
"F", | ||
"ICN", | ||
"ISC", | ||
"N", | ||
"PD", | ||
"PGH", | ||
"PLR", | ||
"PLW", | ||
"PIE", | ||
"PT", | ||
"Q", | ||
"RET", | ||
"RUF", | ||
"S", | ||
"SIM", | ||
"TID", | ||
"UP", | ||
"W", | ||
"YTT", | ||
] | ||
lint.ignore = [ | ||
"A001", | ||
"A003", | ||
"ANN101", | ||
"ANN102", | ||
"ANN401", | ||
"B008", | ||
"B017", | ||
"B019", | ||
"C405", | ||
"D103", | ||
"D107", | ||
"D200", | ||
"D202", | ||
"D203", | ||
"D205", | ||
"D212", | ||
"D400", | ||
"D401", | ||
"D403", | ||
"D404", | ||
"D415", | ||
"E501", | ||
"N818", | ||
"PGH003", | ||
"PGH004", | ||
"PLR2004", | ||
"PT011", | ||
"PT012", | ||
"RUF013", | ||
"S101", | ||
"S105", | ||
"S108", | ||
"S311", | ||
"W605", | ||
] | ||
target-version = "py38" | ||
exclude = [ | ||
".direnv", | ||
".git", | ||
".mypy_cache", | ||
".pytest_cache", | ||
".ruff_cache", | ||
"__pypackages__", | ||
] |
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.