Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ruff) Automated fixes for typing annotations
Fixed 215 errors: - docs/conf.py: 2 × UP007 (non-pep604-annotation) 2 × UP037 (quoted-annotation) 1 × I002 (missing-required-import) 1 × I001 (unsorted-imports) - src/django_docutils/__about__.py: 1 × I002 (missing-required-import) - src/django_docutils/_internal/types.py: 2 × UP037 (quoted-annotation) 1 × I002 (missing-required-import) - src/django_docutils/exc.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/directives/code.py: 1 × TC003 (typing-only-standard-library-import) 1 × I002 (missing-required-import) 1 × UP037 (quoted-annotation) 1 × I001 (unsorted-imports) - src/django_docutils/lib/directives/registry.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/metadata/extract.py: 2 × UP007 (non-pep604-annotation) 1 × F401 (unused-import) 1 × I002 (missing-required-import) 1 × I001 (unsorted-imports) - src/django_docutils/lib/metadata/process.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/metadata/processors.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/metadata/tests/test_extract.py: 1 × I001 (unsorted-imports) 1 × TC003 (typing-only-standard-library-import) 1 × I002 (missing-required-import) - src/django_docutils/lib/metadata/tests/test_process.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/publisher.py: 11 × UP007 (non-pep604-annotation) 2 × UP037 (quoted-annotation) 1 × I002 (missing-required-import) 1 × TC002 (typing-only-third-party-import) 1 × I001 (unsorted-imports) - src/django_docutils/lib/roles/common.py: 3 × UP037 (quoted-annotation) 2 × UP007 (non-pep604-annotation) 1 × I002 (missing-required-import) - src/django_docutils/lib/roles/email.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × TC001 (typing-only-first-party-import) 1 × I002 (missing-required-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/file.py: 6 × UP007 (non-pep604-annotation) 1 × TC002 (typing-only-third-party-import) 1 × I002 (missing-required-import) - src/django_docutils/lib/roles/github.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × I002 (missing-required-import) 1 × TC001 (typing-only-first-party-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/hackernews.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × I002 (missing-required-import) 1 × TC001 (typing-only-first-party-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/kbd.py: 2 × UP007 (non-pep604-annotation) 1 × TC002 (typing-only-third-party-import) 1 × I002 (missing-required-import) - src/django_docutils/lib/roles/leanpub.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × I002 (missing-required-import) 1 × TC001 (typing-only-first-party-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/pypi.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × I002 (missing-required-import) 1 × TC001 (typing-only-first-party-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/readthedocs.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × TC001 (typing-only-first-party-import) 1 × I002 (missing-required-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/registry.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/roles/twitter.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × I002 (missing-required-import) 1 × TC001 (typing-only-first-party-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/types.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/roles/url.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × I002 (missing-required-import) 1 × TC001 (typing-only-first-party-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/roles/wikipedia.py: 2 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 1 × TC001 (typing-only-first-party-import) 1 × I002 (missing-required-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/lib/settings.py: 1 × UP007 (non-pep604-annotation) 1 × I002 (missing-required-import) - src/django_docutils/lib/tests/test_utils.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/tests/test_writers.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/text.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/transforms/code.py: 8 × UP037 (quoted-annotation) 1 × UP007 (non-pep604-annotation) 1 × I002 (missing-required-import) - src/django_docutils/lib/transforms/toc.py: 2 × UP007 (non-pep604-annotation) 1 × I002 (missing-required-import) - src/django_docutils/lib/types.py: 1 × I002 (missing-required-import) - src/django_docutils/lib/utils.py: 1 × TC003 (typing-only-standard-library-import) 1 × I002 (missing-required-import) 1 × UP037 (quoted-annotation) 1 × I001 (unsorted-imports) - src/django_docutils/lib/views.py: 7 × UP007 (non-pep604-annotation) 2 × I001 (unsorted-imports) 2 × TC002 (typing-only-third-party-import) 1 × I002 (missing-required-import) 1 × TC001 (typing-only-first-party-import) - src/django_docutils/lib/writers.py: 4 × UP007 (non-pep604-annotation) 1 × TC002 (typing-only-third-party-import) 1 × I002 (missing-required-import) - src/django_docutils/template.py: 4 × UP037 (quoted-annotation) 2 × UP007 (non-pep604-annotation) 1 × I002 (missing-required-import) 1 × TC002 (typing-only-third-party-import) - src/django_docutils/templatetags/django_docutils.py: 7 × UP007 (non-pep604-annotation) 1 × F401 (unused-import) 1 × I002 (missing-required-import) 1 × I001 (unsorted-imports) - src/django_docutils/views.py: 11 × UP007 (non-pep604-annotation) 2 × TC002 (typing-only-third-party-import) 1 × I002 (missing-required-import) 1 × I001 (unsorted-imports) - tests/constants.py: 1 × I002 (missing-required-import) - tests/settings.py: 1 × I002 (missing-required-import) 1 × UP037 (quoted-annotation) - tests/test_docutils_roles.py: 2 × TC002 (typing-only-third-party-import) 1 × UP007 (non-pep604-annotation) 1 × I002 (missing-required-import) 1 × TC003 (typing-only-standard-library-import) 1 × I001 (unsorted-imports) - tests/test_template.py: 1 × TC003 (typing-only-standard-library-import) 1 × I002 (missing-required-import) 1 × UP037 (quoted-annotation) 1 × I001 (unsorted-imports) - tests/test_templatetag.py: 1 × I002 (missing-required-import) Found 567 errors (215 fixed, 352 remaining). 43 files reformatted, 12 files left unchanged uv run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; uv run ruff format .
- Loading branch information