Skip to content

Commit

Permalink
fix: CI/CD pipeline (#15)
Browse files Browse the repository at this point in the history
* fix: move top-level files filter to per-hook

* chore: update requests dependency

* chore: formatting

* fix: install poetry in GH CI
  • Loading branch information
Barabazs authored Jun 6, 2024
1 parent 35704e9 commit 4c0444f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name: Pre Commit
uses: pre-commit/action@v3.0.1
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
files: \.py$
default_stages: [commit]
fail_fast: true

Expand All @@ -13,12 +12,14 @@ repos:
rev: 24.4.0
hooks:
- id: black
files: \.py$
- repo: https://github.com/PyCQA/isort
rev: 5.13.0
hooks:
# Use isort for sorting imports.
- id: isort
additional_dependencies: ["toml"]
files: \.py$
- repo: local
hooks:
- id: poetry-check
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Archivooor

Archivooor is a Python package for interacting with the archive.org API.

It's main purpose is to provide a convenient way to submit webpages to the Wayback Machine.
Archivooor uses multithreading and automatic retries to ensure that webpages are archived successfully.

Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ archivooor = 'archivooor.__main__:main'

[tool.poetry.dependencies]
python = "^3.8,<4.0"
requests = "^2.32.0"
requests = "^2.32.1"
urllib3 = "^1.26.18"
python-dotenv = "0.21.0"

Expand Down

0 comments on commit 4c0444f

Please sign in to comment.