Skip to content

Commit

Permalink
Merge pull request asdf-format#1529 from asdf-format/pre-commit-ci-up…
Browse files Browse the repository at this point in the history
…date-config

[pre-commit.ci] pre-commit autoupdate

(cherry picked from commit 961f341)
  • Loading branch information
braingram committed Aug 1, 2023
1 parent 6cdf1e2 commit 9e2afbf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
exclude: "asdf/extern/.*"

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.257'
rev: 'v0.0.262'
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -57,11 +57,6 @@ repos:
hooks:
- id: blacken-docs

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.9.2"
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.12.1"
hooks:
Expand Down
2 changes: 1 addition & 1 deletion asdf/commands/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,4 @@ def open_editor(path):
editor = os.environ.get("EDITOR", DEFAULT_EDITOR)
# Marked safe because the editor command is specified by an
# environment variable that the user controls.
subprocess.run(f"{editor} {path}", check=True, shell=True) # nosec
subprocess.run(f"{editor} {path}", check=True, shell=True) # noqa: S602
6 changes: 3 additions & 3 deletions compatibility_tests/test_file_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ def env_run(env_path, command, *args, **kwargs):
Run a command on the context of the virtual environment at
the specified path.
"""
return subprocess.run([env_path / "bin" / command, *list(args)], **kwargs).returncode == 0
return subprocess.run([env_path / "bin" / command, *list(args)], **kwargs).returncode == 0 # noqa: S603


def env_check_output(env_path, command, *args):
"""
Run a command on the context of the virtual environment at
the specified path, and return the output.
"""
return subprocess.check_output([env_path / "bin" / command, *list(args)]).decode("utf-8").strip()
return subprocess.check_output([env_path / "bin" / command, *list(args)]).decode("utf-8").strip() # noqa: S603


def get_supported_versions(env_path):
Expand Down Expand Up @@ -128,7 +128,7 @@ def env_path(asdf_version, tmp_path_factory):
"""
path = tmp_path_factory.mktemp(f"asdf-{asdf_version}-env", numbered=False)

assert subprocess.run(["virtualenv", str(path)]).returncode == 0
assert subprocess.run(["virtualenv", str(path)]).returncode == 0 # noqa: S603,S607

assert env_run(
path,
Expand Down
17 changes: 9 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ license = { file = 'LICENSE' }
authors = [{ name = 'The ASDF Developers', email = 'help@stsci.edu' }]
requires-python = '>=3.8'
classifiers = [
"License :: OSI Approved :: BSD License",
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Development Status :: 5 - Production/Stable',
'Development Status :: 5 - Production/Stable',
"License :: OSI Approved :: BSD License",
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
dynamic = [
'version',
Expand Down Expand Up @@ -173,6 +173,7 @@ select = [
"RUF", # ruff specific, includes yesqa
]
extend-ignore = [
"S310", # URL open for permitted schemes
]
extend-exclude = ["asdf/extern/*", "docs/*"]

Expand Down

0 comments on commit 9e2afbf

Please sign in to comment.