Skip to content

Commit

Permalink
sync deps and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Apr 5, 2023
1 parent e193af5 commit ffe82e5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions jupyter_releaser/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_version_entry(
branch = branch or util.get_branch()
since = since or util.get_latest_tag(ref or branch, since_last_stable)

if since == "":
if since == "": # noqa
since = util.get_first_commit(ref or branch)

util.log(f"Getting changes to {repo} since {since} on branch {branch}...")
Expand Down Expand Up @@ -224,7 +224,7 @@ def format(changelog): # noqa
return re.sub(r"\n\n+$", r"\n", changelog)


def check_entry(
def check_entry( # noqa
ref,
branch,
repo,
Expand Down
2 changes: 1 addition & 1 deletion jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def make_changelog_pr(auth, branch, repo, title, commit_message, body, dry_run=F
pr_branch = f"changelog-{uuid.uuid1().hex}"

if not dry_run:
dirty = util.run("git --no-pager diff --stat") != ""
dirty = util.run("git --no-pager diff --stat") != "" # noqa
if dirty:
util.run("git stash")
util.run(f"{util.GIT_FETCH_CMD} {branch}")
Expand Down
2 changes: 1 addition & 1 deletion jupyter_releaser/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def check_dist(
for cmd in test_commands:
util.run(f"{bin_path}/{cmd}")
except CalledProcessError as e:
if test_cmd == "":
if test_cmd == "": # noqa
util.log(
'You may need to set "check_imports" to appropriate Python package names in the config file.'
)
Expand Down
2 changes: 1 addition & 1 deletion jupyter_releaser/tee.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def _read_stream(stream: StreamReader, callback: Callable[..., Any]) -> No
break


async def _stream_subprocess(args: str, **kwargs: Any) -> CompletedProcess:
async def _stream_subprocess(args: str, **kwargs: Any) -> CompletedProcess: # noqa
platform_settings: Dict[str, Any] = {}
if platform.system() == "Windows":
platform_settings["env"] = os.environ
Expand Down
2 changes: 1 addition & 1 deletion jupyter_releaser/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_version():
return run(cmd).split("\n")[-1]

if SETUP_PY.exists():
warnings.warn("Using deprecated setup.py invocation")
warnings.warn("Using deprecated setup.py invocation", stacklevel=2)
try:
return run("python setup.py --version").split("\n")[-1]
except CalledProcessError as e:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ test = "mypy --install-types --non-interactive {args:jupyter_releaser}"

[tool.hatch.envs.lint]
dependencies = [
"black==23.1.0",
"black==23.3.0",
"mdformat>0.7",
"mdformat-gfm>=0.3.5",
"ruff==0.0.254"
"ruff==0.0.260"
]
detached = true
[tool.hatch.envs.lint.scripts]
Expand Down

0 comments on commit ffe82e5

Please sign in to comment.