Skip to content

Commit

Permalink
README, setup.cfg: Line length 88 (#9)
Browse files Browse the repository at this point in the history
* README: Line width 88

* setup.cfg: Use line width 88 in isort

* README: width->length

* lint

Co-authored-by: Adam Gleave <adam@gleave.me>
  • Loading branch information
shwang and AdamGleave authored Feb 12, 2020
1 parent 9e34ede commit be762f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pip install -e .[dev] # install extra tools useful for development

## Code style

We follow a PEP8 code style, and typically follow the [Google Code Style Guide](http://google.github.io/styleguide/pyguide.html),
We follow a PEP8 code style with line length 88, and typically follow the [Google Code Style Guide](http://google.github.io/styleguide/pyguide.html),
but defer to PEP8 where they conflict. We use the `black` autoformatter to avoid arguing over formatting.
Docstrings follow the Google docstring convention defined [here](http://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings),
with an extensive example in the [Sphinx docs](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html).
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ignore = E203, W503
max-line-length = 88

[isort]
line_length=80
line_length=88
known_first_party=benchmark_environments,tests
default_section=THIRDPARTY
multi_line_output=3
Expand Down
11 changes: 1 addition & 10 deletions src/benchmark_environments/testing/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@
"""

import re
from typing import (
Any,
Callable,
Iterable,
Iterator,
Mapping,
Optional,
Sequence,
Tuple,
)
from typing import Any, Callable, Iterable, Iterator, Mapping, Optional, Sequence, Tuple

import gym
import numpy as np
Expand Down

0 comments on commit be762f1

Please sign in to comment.