Skip to content

Commit

Permalink
build: Update to latest profile template. Use ruff and lint code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 6, 2024
1 parent be94699 commit 2f49cd9
Show file tree
Hide file tree
Showing 12 changed files with 690 additions and 614 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ci:
autoupdate_schedule: quarterly
skip: [pip-compile]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.4
hooks:
- id: pip-compile
name: pip-compile common-requirements.in
args: [common-requirements.in, -o, common-requirements.txt]
files: ^common-requirements\.(in|txt)$
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10
4 changes: 1 addition & 3 deletions common-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ linkify-it-py
myst-parser
ocds-babel
Sphinx
-e git+https://github.com/open-contracting/standard_theme.git@open_contracting#egg=standard_theme
git+https://github.com/open-contracting/standard_theme.git@open_contracting#egg=standard_theme

# Profile
ocdsextensionregistry
Expand All @@ -19,5 +19,3 @@ selenium

# Development
click
pip-tools
sphinx-autobuild
59 changes: 10 additions & 49 deletions common-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile common-requirements.in
#
-e git+https://github.com/open-contracting/standard_theme.git@open_contracting#egg=standard_theme
# via -r common-requirements.in
# This file was autogenerated by uv via the following command:
# uv pip compile common-requirements.in -o common-requirements.txt
alabaster==0.7.12
# via sphinx
async-generator==1.10
Expand All @@ -23,8 +17,6 @@ babel==2.9.1
# via
# sphinx
# sphinx-intl
build==0.10.0
# via pip-tools
cattrs==23.1.2
# via requests-cache
certifi==2024.7.4
Expand All @@ -38,22 +30,15 @@ click==8.1.3
# via
# -r common-requirements.in
# ocdsindex
# pip-tools
# sphinx-intl
colorama==0.4.4
# via sphinx-autobuild
docutils==0.18
# via
# myst-parser
# sphinx
elastic-transport==8.4.0
# via elasticsearch
elasticsearch[requests]==8.6.2
elasticsearch==8.6.2
# via ocdsindex
exceptiongroup==1.0.0
# via
# cattrs
# pytest
h11==0.13.0
# via wsproto
idna==3.7
Expand All @@ -74,8 +59,6 @@ jsonref==1.0.0.post1
# via ocdsextensionregistry
linkify-it-py==1.0.1
# via -r common-requirements.in
livereload==2.6.3
# via sphinx-autobuild
lxml==4.9.1
# via ocdsindex
markdown-it-py==2.2.0
Expand All @@ -100,11 +83,8 @@ outcome==1.1.0
# via trio
packaging==21.3
# via
# build
# pytest
# sphinx
pip-tools==7.3.0
# via -r common-requirements.in
platformdirs==3.9.1
# via requests-cache
pluggy==0.13.1
Expand All @@ -113,8 +93,6 @@ pygments==2.15.1
# via sphinx
pyparsing==2.4.7
# via packaging
pyproject-hooks==1.0.0
# via build
pysocks==1.7.1
# via urllib3
pytest==7.2.0
Expand All @@ -133,10 +111,10 @@ requests-cache==1.1.0
# via ocdsextensionregistry
selenium==4.11.2
# via -r common-requirements.in
setuptools==74.1.2
# via sphinx-intl
six==1.16.0
# via
# livereload
# url-normalize
# via url-normalize
sniffio==1.2.0
# via trio
snowballstemmer==2.1.0
Expand All @@ -147,10 +125,7 @@ sphinx==5.3.0
# via
# -r common-requirements.in
# myst-parser
# sphinx-autobuild
# sphinx-intl
sphinx-autobuild==2021.3.14
# via -r common-requirements.in
sphinx-intl==2.2.0
# via -r common-requirements.in
sphinxcontrib-applehelp==1.0.2
Expand All @@ -165,39 +140,25 @@ sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
tomli==2.0.1
# via
# build
# pip-tools
# pyproject-hooks
# pytest
tornado==6.4.1
# via livereload
standard-theme @ git+https://github.com/open-contracting/standard_theme.git@0d9d89f7b150105fd366a7f626e57d3103090230#egg=standard_theme
# via -r common-requirements.in
trio==0.20.0
# via
# selenium
# trio-websocket
trio-websocket==0.9.2
# via selenium
typing-extensions==4.4.0
# via
# cattrs
# myst-parser
# via myst-parser
uc-micro-py==1.0.1
# via linkify-it-py
url-normalize==1.4.3
# via requests-cache
urllib3[socks]==1.26.19
urllib3==1.26.19
# via
# elastic-transport
# requests
# requests-cache
# selenium
wheel==0.38.4
# via pip-tools
wsproto==1.1.0
# via trio-websocket

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
Loading

0 comments on commit 2f49cd9

Please sign in to comment.