Skip to content

lint: Increase max-module-lines to 3000 #805

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

Merged
merged 1 commit into from
Jan 24, 2021
Merged

lint: Increase max-module-lines to 3000 #805

merged 1 commit into from
Jan 24, 2021

Conversation

seisman
Copy link
Member

@seisman seisman commented Jan 24, 2021

Description of proposed changes

We have these linting issues because base_plotting.py is too long:

pygmt/base_plotting.py:1:0: C0302: Too many lines in module (2047/2000) (too-many-lines)

The problem will be fixed in #685, but it may take some time.

This PR increases the max-module-lines to 3000 to temporarily disable the warning.

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Notes

  • You can write /format in the first line of a comment to lint the code automatically

@seisman seisman requested a review from a team January 24, 2021 19:37
Copy link
Contributor

@willschlitzer willschlitzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change. Hopefully this gets fixed in #685 relatively soon, but this will keep every change to base_plotting.py from auto-failing its style checks.

@seisman seisman merged commit d1d8803 into master Jan 24, 2021
@seisman seisman deleted the lint branch January 24, 2021 20:32
@weiji14 weiji14 added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Jan 24, 2021
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
We have these linting issues because base_plotting.py is too long:

```
pygmt/base_plotting.py:1:0: C0302: Too many lines in module (2047/2000) (too-many-lines)
```

The problem will be fixed in GenericMappingTools#685, but it may take some time.
This PR increases the max-module-lines to 3000 to temporarily disable the warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants