Skip to content

Commit

Permalink
build: Restore pre-commit requirement. ci: Add pre-commit automerge job.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 6, 2024
1 parent b713c12 commit be9b762
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
precommit:
if: ${{ github.event.pull_request.user.login == 'pre-commit-ci[bot]' }}
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr review --approve ${{ github.event.pull_request.html_url }}
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ repos:
rev: 0.4.4
hooks:
- id: pip-compile
name: pip-compile requirements_test.in
args: [requirements_test.in, -o, requirements_test.txt]
files: ^requirements_test\.(in|txt)$
name: pip-compile requirements_dev.in
args: [requirements_dev.in, -o, requirements_dev.txt]
files: ^requirements_dev\.(in|txt)$
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

4 changes: 4 additions & 0 deletions requirements_test.in → requirements_dev.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# .robot files (compare to "Library" instructions in tests/general.robot)
spoonbill
robotframework-archivelibrary
robotframework-csvlib
robotframework-debuglibrary
Expand All @@ -8,3 +9,6 @@ robotframework-seleniumlibrary

# .py files
polib

# lint
pre-commit
150 changes: 150 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements_dev.in -o requirements_dev.txt
attrs==23.1.0
# via
# cattrs
# outcome
# requests-cache
# trio
cattrs==24.1.0
# via requests-cache
certifi==2024.7.4
# via
# requests
# selenium
cfgv==3.4.0
# via pre-commit
charset-normalizer==3.2.0
# via requests
click==8.1.7
# via
# click-logging
# spoonbill
click-logging==1.0.1
# via spoonbill
distlib==0.3.8
# via virtualenv
et-xmlfile==1.1.0
# via openpyxl
exceptiongroup==1.1.3
# via trio-websocket
filelock==3.15.4
# via virtualenv
flatten-dict==0.4.2
# via spoonbill
h11==0.14.0
# via wsproto
identify==2.6.0
# via pre-commit
idna==3.7
# via
# requests
# trio
ijson==3.3.0
# via
# ocdskit
# spoonbill
importlib-resources==6.4.4
# via spoonbill
json-merge-patch==0.2
# via ocdsextensionregistry
jsonref==1.1.0
# via
# ocdsextensionregistry
# ocdskit
# ocdsmerge
# spoonbill
nodeenv==1.9.1
# via pre-commit
ocdsextensionregistry==0.3.8
# via
# ocdskit
# spoonbill
ocdskit==1.1.13
# via spoonbill
ocdsmerge==0.7.0
# via ocdskit
openpyxl==3.1.2
# via robotframework-excellib
outcome==1.2.0
# via trio
platformdirs==4.2.2
# via
# requests-cache
# virtualenv
polib==1.2.0
# via -r requirements_dev.in
pre-commit==3.8.0
# via -r requirements_dev.in
prompt-toolkit==2.0.10
# via robotframework-debuglibrary
pysocks==1.7.1
# via urllib3
pyyaml==6.0.2
# via pre-commit
requests==2.32.3
# via
# ocdsextensionregistry
# ocdsmerge
# requests-cache
# robotframework-requests
# spoonbill
requests-cache==1.2.1
# via ocdsextensionregistry
robotframework==6.1.1
# via
# robotframework-archivelibrary
# robotframework-debuglibrary
# robotframework-excellib
# robotframework-requests
# robotframework-seleniumlibrary
robotframework-archivelibrary==0.4.2
# via -r requirements_dev.in
robotframework-csvlib==1.0.2
# via -r requirements_dev.in
robotframework-debuglibrary==2.3.0
# via -r requirements_dev.in
robotframework-excellib==2.0.1
# via -r requirements_dev.in
robotframework-pythonlibcore==4.2.0
# via robotframework-seleniumlibrary
robotframework-requests==0.9.5
# via -r requirements_dev.in
robotframework-seleniumlibrary==6.1.1
# via -r requirements_dev.in
scalpl==0.4.2
# via spoonbill
selenium==4.11.2
# via robotframework-seleniumlibrary
six==1.16.0
# via
# flatten-dict
# prompt-toolkit
# url-normalize
sniffio==1.3.0
# via trio
sortedcontainers==2.4.0
# via trio
spoonbill==1.0.13
# via -r requirements_dev.in
trio==0.22.2
# via
# selenium
# trio-websocket
trio-websocket==0.10.3
# via selenium
url-normalize==1.4.3
# via requests-cache
urllib3==2.2.2
# via
# requests
# requests-cache
# selenium
virtualenv==20.26.3
# via pre-commit
wcwidth==0.2.6
# via prompt-toolkit
wsproto==1.2.0
# via trio-websocket
xlsxwriter==3.2.0
# via spoonbill
77 changes: 0 additions & 77 deletions requirements_test.txt

This file was deleted.

0 comments on commit be9b762

Please sign in to comment.