Skip to content

Commit

Permalink
remove upper bounds and unnecessary dependencies
Browse files Browse the repository at this point in the history
- remove libraries replaced by ruff
- remove upper bounds of other libraries
  • Loading branch information
lioman committed Oct 29, 2023
1 parent e475c52 commit bbde24f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 26 deletions.
29 changes: 13 additions & 16 deletions pyproject.toml
Expand Up @@ -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>=23.10.1",
"ruff>=0.1.3,<1.0.0",
"ruff>=0.1.3",
"tomli;python_version<'3.11'",
]

Expand Down
10 changes: 0 additions & 10 deletions tasks.py
Expand Up @@ -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."""
Expand Down

0 comments on commit bbde24f

Please sign in to comment.