Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • pycqa/pep8-naming
1 result
Show changes
Commits on Source (6)
Loading
Loading
@@ -9,8 +9,6 @@ script: tox
 
matrix:
include:
- env: TOXENV=py26
python: 2.6
- env: TOXENV=py27
python: 2.7
- env: TOXENV=py33
Loading
Loading
Loading
Loading
@@ -154,7 +154,7 @@ class NamingChecker(object):
continue
 
node.function_type = 'method'
if node.name == '__new__':
if node.name in ('__new__', '__init_subclass__'):
node.function_type = 'classmethod'
 
if node.name in late_decoration:
Loading
Loading
Loading
Loading
@@ -6,8 +6,8 @@ import re
PyCF_ONLY_AST = 1024
 
IS_PY3 = sys.version_info[0] == 3
IS_PY3_TEST = re.compile("^#\s*python3\s*only")
IS_PY2_TEST = re.compile("^#\s*python2\s*only")
IS_PY3_TEST = re.compile(r"^#\s*python3\s*only")
IS_PY2_TEST = re.compile(r"^#\s*python2\s*only")
 
 
def main():
Loading
Loading
Loading
Loading
@@ -11,3 +11,6 @@ class Foo(object):
@calling()
def test(self, ads):
pass
def __init_subclass(self, ads):
pass
Loading
Loading
@@ -14,3 +14,8 @@ class Foo(object):
@classmethod
def __prepare__(cls):
pass
#: Okay
class Foo(object):
def __init_subclass__(cls):
pass
[tox]
envlist = py26,py27,py33,py34,py35,pypy,pypy3
envlist = py27,py33,py34,py35,pypy,pypy3
 
[testenv]
commands = python run_tests.py
Loading
Loading