mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Bump all of the dev dependencies
- remove upper version caps - updated the minimum version of most of Pelican's runtime deps - replaced black with ruff as a formatter for pelican - added a cache step to the docs CI task so that the docs can be downloaded and inspected.
This commit is contained in:
parent
bfb2587697
commit
8ea27b82f6
3 changed files with 42 additions and 44 deletions
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
|
@ -80,6 +80,11 @@ jobs:
|
|||
run: python -m pip install -U pip tox
|
||||
- name: Check
|
||||
run: tox -e docs
|
||||
- name: cache the docs for inspection
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: docs
|
||||
path: docs/_build/html/
|
||||
|
||||
deploy:
|
||||
name: Deploy
|
||||
|
|
|
|||
|
|
@ -29,15 +29,15 @@ classifiers = [
|
|||
]
|
||||
requires-python = ">=3.8.1,<4.0"
|
||||
dependencies = [
|
||||
"blinker>=1.4",
|
||||
"docutils>=0.16",
|
||||
"feedgenerator>=1.9",
|
||||
"jinja2>=2.7",
|
||||
"pygments>=2.6",
|
||||
"python-dateutil>=2.8",
|
||||
"rich>=10.1",
|
||||
"unidecode>=1.1",
|
||||
"backports-zoneinfo<1.0.0,>=0.2.1;python_version<'3.9'",
|
||||
"blinker>=1.6.3",
|
||||
"docutils>=0.20.1",
|
||||
"feedgenerator>=2.1.0",
|
||||
"jinja2>=3.1.2",
|
||||
"pygments>=2.16.1",
|
||||
"python-dateutil>=2.8.2",
|
||||
"rich>=13.6.0",
|
||||
"unidecode>=1.3.7",
|
||||
"backports-zoneinfo>=0.2.1; python_version < \"3.9\"",
|
||||
"watchfiles>=0.21.0",
|
||||
]
|
||||
|
||||
|
|
@ -76,28 +76,28 @@ test = "invoke tests"
|
|||
|
||||
[tool.pdm.dev-dependencies]
|
||||
dev = [
|
||||
"BeautifulSoup4<5.0,>=4.9",
|
||||
"jinja2~=3.1.2",
|
||||
"lxml<5.0,>=4.3",
|
||||
"markdown~=3.4.3",
|
||||
"typogrify<3.0,>=2.0",
|
||||
"sphinx<6.0,>=5.1",
|
||||
"furo==2023.03.27",
|
||||
"livereload<3.0,>=2.6",
|
||||
"psutil<6.0,>=5.7",
|
||||
"pygments~=2.15",
|
||||
"pytest<8.0,>=7.1",
|
||||
"pytest-cov<5.0,>=4.0",
|
||||
"pytest-sugar<1.0.0,>=0.9.5",
|
||||
"pytest-xdist<3.0,>=2.0",
|
||||
"tox<4.0,>=3.13",
|
||||
"flake8<4.0,>=3.8",
|
||||
"flake8-import-order<1.0.0,>=0.18.1",
|
||||
"invoke<3.0,>=2.0",
|
||||
"isort<6.0,>=5.2",
|
||||
"black<20.0,>=19.10b0",
|
||||
"ruff>=0.1.3,<1.0.0",
|
||||
"tomli;python_version<'3.11'",
|
||||
"BeautifulSoup4>=4.12.2",
|
||||
"jinja2>=3.1.2",
|
||||
"lxml>=4.9.3",
|
||||
"markdown>=3.5",
|
||||
"typogrify>=2.0.7",
|
||||
"sphinx>=7.1.2",
|
||||
"furo>=2023.9.10",
|
||||
"livereload>=2.6.3",
|
||||
"psutil>=5.9.6",
|
||||
"pygments>=2.16.1",
|
||||
"pytest>=7.4.3",
|
||||
"pytest-cov>=4.1.0",
|
||||
"pytest-sugar>=0.9.7",
|
||||
"pytest-xdist>=3.3.1",
|
||||
"tox>=4.11.3",
|
||||
"flake8>=6.1.0",
|
||||
"flake8-import-order>=0.18.2",
|
||||
"invoke>=2.2.0",
|
||||
"isort>=5.12.0",
|
||||
"black>=23.10.1",
|
||||
"ruff>=0.1.3",
|
||||
"tomli>=2.0.1; python_version < \"3.11\"",
|
||||
]
|
||||
|
||||
[tool.pdm.build]
|
||||
|
|
|
|||
19
tasks.py
19
tasks.py
|
|
@ -52,24 +52,16 @@ def coverage(c):
|
|||
|
||||
|
||||
@task
|
||||
def black(c, check=False, diff=False):
|
||||
"""Run Black auto-formatter, optionally with --check or --diff"""
|
||||
def format(c, check=False, diff=False):
|
||||
"""Run Ruff's auto-formatter, optionally with --check or --diff"""
|
||||
check_flag, diff_flag = "", ""
|
||||
if check:
|
||||
check_flag = "--check"
|
||||
if diff:
|
||||
diff_flag = "--diff"
|
||||
c.run(f"{VENV_BIN}/black {check_flag} {diff_flag} {PKG_PATH} tasks.py", pty=PTY)
|
||||
|
||||
|
||||
@task
|
||||
def isort(c, check=False, diff=False):
|
||||
check_flag, diff_flag = "", ""
|
||||
if check:
|
||||
check_flag = "-c"
|
||||
if diff:
|
||||
diff_flag = "--diff"
|
||||
c.run(f"{VENV_BIN}/isort {check_flag} {diff_flag} .", pty=PTY)
|
||||
c.run(
|
||||
f"{VENV_BIN}/ruff format {check_flag} {diff_flag} {PKG_PATH} tasks.py", pty=PTY
|
||||
)
|
||||
|
||||
|
||||
@task
|
||||
|
|
@ -87,6 +79,7 @@ def ruff(c, fix=False, diff=False):
|
|||
def lint(c, fix=False, diff=False):
|
||||
"""Check code style via linting tools."""
|
||||
ruff(c, fix=fix, diff=diff)
|
||||
format(c, check=not fix, diff=diff)
|
||||
|
||||
|
||||
@task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue