-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:open-contracting/kingfisher-collect
- Loading branch information
Showing
21 changed files
with
182 additions
and
165 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
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 |
---|---|---|
|
@@ -6,22 +6,34 @@ jobs: | |
build: | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
runs-on: ubuntu-latest | ||
env: | ||
PAT: ${{ secrets.PAT }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.PAT || github.token }} | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: pip | ||
cache-dependency-path: '**/requirements*.txt' | ||
- run: shasum -c requirements.txt.sha256 | ||
- id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
- uses: pre-commit/[email protected] | ||
continue-on-error: true | ||
with: | ||
extra_args: pip-compile --files ${{ steps.changed-files.outputs.all_changed_files }} | ||
- if: ${{ env.PAT }} | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: '[github-actions] pre-commit autoupdate' | ||
- shell: bash | ||
run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash - | ||
- shell: bash | ||
run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash - | ||
# Don't install editable projects in the current working directory. | ||
# https://pip.pypa.io/en/latest/reference/pip_install/#install-src | ||
- run: pip install --src $GITHUB_WORKSPACE/../src -r requirements_dev.txt | ||
- run: pip install -r requirements_dev.txt | ||
- env: | ||
# scrapyd is run as a command in production. scrapyd-client is run as a command for deployment. | ||
STANDARD_MAINTENANCE_SCRIPTS_IGNORE: scrapyd,scrapyd-client | ||
run: pytest /tmp/test_requirements.py | ||
- run: shasum -c requirements.txt.sha256 |
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,23 @@ | ||
ci: | ||
autoupdate_schedule: quarterly | ||
skip: [pip-compile] | ||
repos: | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.1.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-comprehensions] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/astral-sh/uv-pre-commit | ||
rev: 0.4.4 | ||
hooks: | ||
- id: pip-compile | ||
name: pip-compile requirements.in | ||
args: [requirements.in, -o, requirements.txt] | ||
- id: pip-compile | ||
name: pip-compile requirements_dev.in | ||
args: [requirements_dev.in, -o, requirements_dev.txt] | ||
files: ^requirements(_dev)?\.(in|txt)$ |
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 @@ | ||
3.10 |
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
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
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 |
---|---|---|
@@ -1,6 +1,23 @@ | ||
[project] | ||
name = "kingfisher-collect" | ||
version = "0.0.0" | ||
|
||
[project.entry-points.scrapy] | ||
settings = "kingfisher_scrapy.settings" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["tests", "tests.*"] | ||
|
||
[tool.setuptools.package-data] | ||
kingfisher_scrapy = ["schema/*.json"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 119 | ||
|
||
[tool.pytest.ini_options] | ||
addopts = '--doctest-modules' | ||
asyncio_mode = 'auto' | ||
addopts = "--doctest-modules" | ||
asyncio_mode = "auto" | ||
|
||
[tool.coverage.run] | ||
omit = ['*/kingfisher_scrapy/spiders/*'] | ||
omit = ["*/kingfisher_scrapy/spiders/*"] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
7c48c01584024f7ea7bd8b3ad63b6c15f64f76dddb0d271007f45b451af22cc2 requirements.txt | ||
3f0f25b383baca3102034710cdf6abdc96d1efd027f9e83ede7781287d057d3f requirements.txt |
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.