diff --git a/.cruft.json b/.cruft.json index 9c20d48..9b8bbe0 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/ScreenPyHQ/cookiecutter_screenpy/", - "commit": "05800cb3c5bfcad6cecb13fe3225d7ecdab32ce1", + "commit": "2b69298215c08160678dd749884c426a55828dce", "checkout": null, "context": { "cookiecutter": { @@ -10,7 +10,6 @@ "is_sub_package": true, "author": "Perry Goy", "author_email": "perry.goy@gmail.com", - "license": "MIT", "github_username": "ScreenPyHQ", "_template": "https://github.com/ScreenPyHQ/cookiecutter_screenpy/" } diff --git a/.github/workflows/cruft.yml b/.github/workflows/cruft.yml new file mode 100644 index 0000000..22b3572 --- /dev/null +++ b/.github/workflows/cruft.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 45a29cd..13aceaf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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' @@ -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 . diff --git a/.github/workflows/poetry.yml b/.github/workflows/poetry.yml index 6d0f8e5..354b1ba 100644 --- a/.github/workflows/poetry.yml +++ b/.github/workflows/poetry.yml @@ -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 }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7331b46..34d17e2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -23,7 +23,7 @@ jobs: pip install poetry --user - - name: Build ScreenPy Selenium + - name: "Build ScreenPy Selenium" run: >- python -m poetry diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7e33854..a04214a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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' diff --git a/pyproject.toml b/pyproject.toml index 48d3827..455787c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,6 +98,7 @@ extend-safe-fixes = [ "PT003", "PT006", "PT018", "RET504", "UP006", "UP007", + "W291", ] [tool.ruff.lint.flake8-pytest-style]