mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
remove upper bounds and unnecessary dependencies
- remove libraries replaced by ruff - remove upper bounds of dev libraries
This commit is contained in:
parent
bfb2587697
commit
7e3f10c7f9
2 changed files with 13 additions and 26 deletions
|
|
@ -76,27 +76,24 @@ test = "invoke tests"
|
|||
|
||||
[tool.pdm.dev-dependencies]
|
||||
dev = [
|
||||
"BeautifulSoup4<5.0,>=4.9",
|
||||
"BeautifulSoup4>=4.9",
|
||||
"jinja2~=3.1.2",
|
||||
"lxml<5.0,>=4.3",
|
||||
"lxml>=4.3",
|
||||
"markdown~=3.4.3",
|
||||
"typogrify<3.0,>=2.0",
|
||||
"sphinx<6.0,>=5.1",
|
||||
"typogrify>=2.0",
|
||||
"sphinx>=5.1",
|
||||
"furo==2023.03.27",
|
||||
"livereload<3.0,>=2.6",
|
||||
"psutil<6.0,>=5.7",
|
||||
"livereload>=2.6",
|
||||
"psutil>=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",
|
||||
"pytest>=7.1",
|
||||
"pytest-cov>=4.0",
|
||||
"pytest-sugar>=0.9.5",
|
||||
"pytest-xdist>=2.0",
|
||||
"tox>=3.13",
|
||||
"invoke>=2.0",
|
||||
"black<20.0,>=19.10b0",
|
||||
"ruff>=0.1.3,<1.0.0",
|
||||
"ruff>=0.1.3",
|
||||
"tomli;python_version<'3.11'",
|
||||
]
|
||||
|
||||
|
|
|
|||
10
tasks.py
10
tasks.py
|
|
@ -62,16 +62,6 @@ def black(c, check=False, diff=False):
|
|||
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)
|
||||
|
||||
|
||||
@task
|
||||
def ruff(c, fix=False, diff=False):
|
||||
"""Run Ruff to ensure code meets project standards."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue