Skip to content

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

Merged
seisman merged 1 commit into
masterfrom
lint
Jan 24, 2021
Merged

seisman merged 1 commit into
masterfrom
lint

Conversation

@seisman

@seisman seisman commented Jan 24, 2021 •

Copy link
Copy Markdown
Member

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

@willschlitzer willschlitzer left a comment

Copy link
Copy Markdown
Contributor

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.

This branch was previously deployed

1 inactive deployment
Preview — bb983a8b Deployed Jan 24, 2021 by vercel[bot]
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