Skip to content

Commit

Permalink
Alway use ruff format (#9778)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Oct 25, 2023
1 parent 9d41ee6 commit 6970149
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
9 changes: 1 addition & 8 deletions ci-constraints-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ argcomplete==3.1.2
# via nox
babel==2.13.1
# via sphinx
black==23.10.1
# via cryptography (pyproject.toml)
bleach==6.1.0
# via readme-renderer
build==1.0.3
Expand All @@ -26,7 +24,7 @@ charset-normalizer==3.3.1
check-sdist==0.1.3
# via cryptography (pyproject.toml)
click==8.1.7
# via black
# via cryptography (pyproject.toml)
colorlog==6.7.0
# via nox
coverage==7.3.2; python_version >= "3.8"
Expand Down Expand Up @@ -72,26 +70,22 @@ mypy==1.6.1
# via cryptography (pyproject.toml)
mypy-extensions==1.0.0
# via
# black
# mypy
nox==2023.4.22
# via cryptography (pyproject.toml)
packaging==23.2
# via
# black
# build
# nox
# pytest
# sphinx
pathspec==0.11.2
# via
# black
# check-sdist
pkginfo==1.9.6
# via twine
platformdirs==3.11.0
# via
# black
# virtualenv
pluggy==1.3.0; python_version >= "3.8"
# via pytest
Expand Down Expand Up @@ -170,7 +164,6 @@ sphinxcontrib-spelling==8.0.0
# via cryptography (pyproject.toml)
tomli==2.0.1
# via
# black
# build
# check-manifest
# coverage
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def flake(session: nox.Session) -> None:
install(session, ".[pep8test,test,ssh,nox]")

session.run("ruff", ".")
session.run("black", "--check", ".")
session.run("ruff", "format", "--check", ".")
session.run("check-sdist")
session.run(
"mypy",
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ test-randomorder = ["pytest-randomly"]
docs = ["sphinx >=5.3.0", "sphinx-rtd-theme >=1.1.1"]
docstest = ["pyenchant >=1.6.11", "twine >=1.12.0", "sphinxcontrib-spelling >=4.0.1"]
sdist = ["build"]
pep8test = ["black", "ruff", "mypy", "check-sdist"]
# `click` included because its needed to type check `release.py`
pep8test = ["ruff", "mypy", "check-sdist", "click"]

[[tool.setuptools-rust.ext-modules]]
target = "cryptography.hazmat.bindings._rust"
Expand All @@ -89,10 +90,6 @@ py-limited-api = true
rust-version = ">=1.63.0"


[tool.black]
line-length = 79
target-version = ["py37"]

[tool.pytest.ini_options]
addopts = "-r s --capture=no --strict-markers --benchmark-disable"
console_output_style = "progress-even-when-capture-no"
Expand Down

0 comments on commit 6970149

Please sign in to comment.