Skip to content

Commit

Permalink
Add settings for autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
masaori335 authored and dragon512 committed Jun 15, 2017
1 parent 6ecc998 commit 4dc78ff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ TESTS = tools/check-unused-dependencies
rat:
java -jar $(top_srcdir)/ci/apache-rat-0.13-SNAPSHOT.jar -E $(top_srcdir)/ci/rat-regex.txt -d $(top_srcdir)

autopep8:
@autopep8 -i -r $(top_srcdir)

#
# These are rules to make clang-format easy and fast to run. Run it with e.g.
# make -j clang-format
Expand Down Expand Up @@ -164,3 +167,4 @@ help:
@echo 'rel-candidate recreate a signed relelease candidate source package and a signed git tag'
@echo 'release recreate a signed release source package and a signed git tag'
@echo 'tidy run clang-tidy in fix-it mode'
@echo 'autopep8 run autopep8 over python files'
18 changes: 18 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[pep8]
max-line-length = 132

0 comments on commit 4dc78ff

Please sign in to comment.