Skip to content

Migrate to pyproject.toml and replace flake8/isort with ruff#17

Merged
zzhengnan merged 6 commits intomainfrom
migrate-to-pyproject-toml
Apr 11, 2026
Merged

Migrate to pyproject.toml and replace flake8/isort with ruff#17
zzhengnan merged 6 commits intomainfrom
migrate-to-pyproject-toml

Conversation

@zzhengnan
Copy link
Copy Markdown
Owner

Summary

  • Replace setup.py + setup.cfg with pyproject.toml (PEP 517/621)
  • Replace flake8 + isort with ruff for linting and import sorting; configured via pyproject.toml (no separate .flake8 file needed)
  • Update pre-commit hooks to use ruff and ruff-format
  • Fix import ordering violations flagged by ruff

Test plan

  • ruff check . passes
  • pip install .[dev] installs correctly
  • CI passes

🤖 Generated with Claude Code

zzhengnan and others added 3 commits April 11, 2026 13:37
- Replace setup.py + setup.cfg with pyproject.toml (PEP 517/621)
- Replace flake8 + isort with ruff; configure via pyproject.toml
- Update pre-commit hooks to use ruff
- Fix import ordering violations flagged by ruff

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Consolidate ruff and mypy tool config to single sections in pyproject.toml
- Remove orphaned noqa: E401 comment from foo.py
- Update ruff-pre-commit from v0.5.7 to v0.15.10

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fold project.urls, project.scripts, project.optional-dependencies
  into [project] using dotted keys
- Bump version to 0.4.6
- Remove stale isort:skip_file directive from foo.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zzhengnan zzhengnan force-pushed the migrate-to-pyproject-toml branch from 24c1e5a to f6f2479 Compare April 11, 2026 17:37
zzhengnan and others added 3 commits April 11, 2026 13:38
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
soup.find('table') returns Tag | None; assert not None before calling find_all.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zzhengnan zzhengnan merged commit d66b357 into main Apr 11, 2026
5 checks passed
@zzhengnan zzhengnan deleted the migrate-to-pyproject-toml branch April 11, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant