Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: flake8: max-complexity=14 #2731

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

black-sliver
Copy link
Member

What is this fixing or adding?

Changes the complexity limit of our flake8 CI action to 14.

The value of 10 does not really fit some of our world patterns and values up to 15 may be acceptable. Looking at some worlds, 14 seems to be achievable without too much work and reduces the noise in test output, making it more usable.

We should consider reworking some of core to fit this new limit and recommend it to world authors. It could make code easier to test and review. Maybe one day we get to enforce it for core and require explicit # noqa: C901 for functions where it makes sense to go beyond this.

How was this tested?

Looking at flake8 output.

The value of 10 does not really fit some of our world patterns and values
up to 15 may be acceptable. Looking at some worlds, 14 seems to be
achievable without too much work and reduces the noise in test output,
making it more usable.
@black-sliver black-sliver merged commit 49ecd4b into ArchipelagoMW:main Jan 16, 2024
@black-sliver black-sliver deleted the ci-max-complexity branch January 16, 2024 16:11
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
The value of 10 does not really fit some of our world patterns and values
up to 15 may be acceptable. Looking at some worlds, 14 seems to be
achievable without too much work and reduces the noise in test output,
making it more usable.
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