diff --git a/.gitpod.yml b/.gitpod.yml index 63f1485..db8f90f 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,4 +1,5 @@ tasks: + - init: pyenv local 3.8 - init: pip install -c .constraints/py3.8.txt -e .[dev] github: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25c6e67..c8ea5fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.1.7 + rev: 0.1.9 hooks: - id: check-dev-files args: @@ -53,7 +53,7 @@ repos: - jupyter - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.1.0 + rev: v8.1.1 hooks: - id: cspell @@ -104,12 +104,12 @@ repos: metadata.vscode - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.3 + rev: v4.0.0-alpha.3-1 hooks: - id: prettier - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.338 + rev: v1.1.339 hooks: - id: pyright diff --git a/.vscode/settings.json b/.vscode/settings.json index b93c795..fed79fa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,7 @@ }, "[python]": { "editor.codeActionsOnSave": { - "source.organizeImports": true + "source.organizeImports": "explicit" }, "editor.defaultFormatter": "ms-python.black-formatter", "editor.rulers": [88] diff --git a/environment.yml b/environment.yml index 83ce4c8..0610a07 100644 --- a/environment.yml +++ b/environment.yml @@ -6,8 +6,6 @@ dependencies: - pip - python==3.8.* - pip: - - | - -c .constraints/py3.8.txt - -e .[dev] + - -c .constraints/py3.8.txt -e .[dev] variables: PRETTIER_LEGACY_CLI: "1" diff --git a/pyproject.toml b/pyproject.toml index a8a4237..b7e5dbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -192,7 +192,7 @@ task-tags = ["cspell"] "PLW0602", "PLW0603", "S101", - "T201", + "T20", "TCH00", ] "docs/*" = [ @@ -214,6 +214,7 @@ task-tags = ["cspell"] "PLR0913", "PLR2004", "S101", + "T20", ] [tool.ruff.pydocstyle] diff --git a/tests/pawian/data/test_pandas_accessor.py b/tests/pawian/data/test_pandas_accessor.py index d52df11..0d64164 100644 --- a/tests/pawian/data/test_pandas_accessor.py +++ b/tests/pawian/data/test_pandas_accessor.py @@ -60,7 +60,7 @@ def test_raise_validate(columns, names): multi_index = pd.MultiIndex.from_tuples(columns, names=names) frame = pd.DataFrame(columns=multi_index) with pytest.raises(AttributeError): - print(frame.pwa) # noqa: T201 + print(frame.pwa) def test_properties_multicolumn():