Skip to content

ruff check --target-version=py38 --ignore=UP031 - #64

Closed
cclauss wants to merge 2 commits into
pythongssapi:mainfrom
cclauss:ruff
Closed

cclauss wants to merge 2 commits into
pythongssapi:mainfrom
cclauss:ruff

Conversation

@cclauss

@cclauss cclauss commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Ruff is a radical superset of flake8.
https://docs.astral.sh/ruff
https://github.com/astral-sh/ruff-action

% ruff check --ignore=UP031 --target-version=py38 --statistics

92	FA100  	[ ] future-rewritable-type-annotation
 8	I001   	[*] unsorted-imports
 6	FURB167	[*] regex-flag-alias
 4	FURB105	[*] print-empty-string
 2	RUF012 	[ ] mutable-class-default
 2	EXE001 	[ ] shebang-not-executable
 1	B003   	[ ] assignment-to-os-environ
 1	SIM102 	[ ] collapsible-if
 1	B008   	[ ] function-call-in-default-argument
 1	FURB129	[*] readlines-in-for
 1	FLY002 	[ ] static-join-to-f-string
 1	RUF022 	[*] unsorted-dunder-all
Found 120 errors.
[*] 20 fixable with the `--fix` option (93 hidden fixes can be enabled with the `--unsafe-fixes` option).

@aiudirog

Copy link
Copy Markdown
Member

In my professional projects we've been running with almost all ruff rules enabled for a while now and I quite like it. However, before making the switch here and doing something similar, I want to properly swap over to pyproject.toml and replace versioneer with (likely) setuptools-scm. Just need to play around with the current options and see which one I like best.

@cclauss

cclauss commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

Let's recreate this PR after we reorganize the codebase around pyproject.toml.

@cclauss cclauss closed this Sep 20, 2026
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.

2 participants