Skip to content

Commit

Permalink
cruft sync
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Feb 20, 2024
1 parent 020cfa2 commit 6f797ad
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/ScreenPyHQ/cookiecutter_screenpy/",
"commit": "05800cb3c5bfcad6cecb13fe3225d7ecdab32ce1",
"commit": "2b69298215c08160678dd749884c426a55828dce",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -10,7 +10,6 @@
"is_sub_package": true,
"author": "Perry Goy",
"author_email": "[email protected]",
"license": "MIT",
"github_username": "ScreenPyHQ",
"_template": "https://github.com/ScreenPyHQ/cookiecutter_screenpy/"
}
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/cruft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Cruft

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run Cruft
run: |
cruft check
7 changes: 2 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand All @@ -29,9 +29,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run Cruft
run: |
cruft check
- name: Lint with black
run: |
black --check --diff .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
poetry-version: ["1.6.1"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Poetry
Expand All @@ -23,7 +23,7 @@ jobs:
pip install
poetry
--user
- name: Build ScreenPy Selenium
- name: "Build ScreenPy Selenium"
run: >-
python -m
poetry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ extend-safe-fixes = [
"PT003", "PT006", "PT018",
"RET504",
"UP006", "UP007",
"W291",
]

[tool.ruff.lint.flake8-pytest-style]
Expand Down

0 comments on commit 6f797ad

Please sign in to comment.