Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .flake8

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
poetry --version
poetry install

- name: Install ruff
run: python -m pip install ruff==0.16.9

- name: Run tests and linters
run: |
#!/bin/sh -e
Expand All @@ -35,4 +38,4 @@ jobs:

${PREFIX}black photoshop --check
${PREFIX}isort --check-only photoshop
${PREFIX}flake8 photoshop --max-line-length 120
ruff check photoshop
8 changes: 0 additions & 8 deletions .hound.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .pylintrc

This file was deleted.

14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,33 @@ force_single_line = true
# All project unrelated unknown imports belong to third-party.
default_section = "THIRDPARTY"
skip_glob = "*/docs/conf.py"

# Linting lives here and nowhere else. This replaces the deleted .flake8, which
# flake8 could not express in pyproject.toml (support landed in flake8 5).
[tool.ruff]
line-length = 120
target-version = "py38"
extend-exclude = [
"docs/source/conf.py",
"old",
"build",
"dist",
"venv",
"docs",
"examples",
"test",
]

[tool.ruff.lint]
# Behaviour-preserving port of .flake8. The old file also configured
# flake8-docstrings (google) and flake8-quotes, but neither plugin was installed
# in CI, so only pycodestyle/pyflakes rules ever fired. Quote rules are enabled
# here because the codebase already satisfies them; the docstring rules are not,
# see the migration PR for the measured violation count.
select = ["E", "W", "F", "Q"]

[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
docstring-quotes = "double"
avoid-escape = true
Loading