Skip to content

Commit 20209f6

Browse files
authored
Merge pull request #180 from pre-commit/require_new_autopep8
Require a newer version of autopep8
2 parents 7192665 + ef7c425 commit 20209f6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Add this to your `.pre-commit-config.yaml`
2525

2626
- `autopep8-wrapper` - Runs autopep8 over python source.
2727
- Ignore PEP 8 violation types with `args: ['-i', '--ignore=E000,...']` or
28-
through configuration of the `[pep8]` section in setup.cfg / tox.ini.
28+
through configuration of the `[pycodestyle]` section in
29+
setup.cfg / tox.ini.
2930
- `check-added-large-files` - Prevent giant files from being committed.
3031
- Specify what is "too large" with `args: ['--maxkb=123']` (default=500kB).
3132
- `check-ast` - Simply check whether files parse as valid python.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
packages=find_packages(exclude=('tests*', 'testing*')),
2626
install_requires=[
27-
# quickfix to prevent pep8 conflicts
27+
# quickfix to prevent pycodestyle conflicts
2828
'flake8!=2.5.3',
29-
'autopep8>=1.1',
29+
'autopep8>=1.3',
3030
'pyyaml',
3131
'simplejson',
3232
'six',

tests/autopep8_wrapper_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ def test_main_failing(tmpdir, input_src, expected_ret, output_src):
2323

2424
def test_respects_config_file(tmpdir):
2525
with tmpdir.as_cwd():
26-
tmpdir.join('setup.cfg').write('[pep8]\nignore=E221')
26+
tmpdir.join('setup.cfg').write('[pycodestyle]\nignore=E221')
2727
tmpdir.join('test.py').write('print(1 + 2)\n')
2828
assert main(['test.py', '-i', '-v']) == 0

0 commit comments

Comments
 (0)