-
-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
899 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Check http://editorconfig.org for more information | ||
# This is the main config file for this project: | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
indent_style = space | ||
insert_final_newline = true | ||
indent_size = 2 | ||
|
||
[*.py] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
recursive-include wemake-python-styleguide *.py | ||
include LICENSE README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[[source]] | ||
|
||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
|
||
[packages] | ||
|
||
|
||
|
||
[dev-packages] | ||
|
||
pytest = "*" | ||
|
||
|
||
[requires] | ||
|
||
python_version = "3.6" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
wemake-python-styleguide | ||
------------------------ | ||
|
||
Welcome to the most opinionated linter ever. | ||
|
||
|
||
Project status | ||
============== | ||
|
||
Right now we are collecting all the things we dislike in `python` and `django` to forbid them forever. | ||
Do you want to contribute? Feel free to submit: | ||
|
||
1. `python issues <https://github.com/wemake-services/wemake-python-styleguide/issues/1>`_ | ||
2. `code smells <https://github.com/wemake-services/wemake-python-styleguide/issues/2>`_ | ||
3. `django issues <https://github.com/wemake-services/wemake-python-styleguide/issues/4>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# Note: To use the 'upload' functionality of this file, you must: | ||
# $ pip install twine | ||
|
||
import io | ||
import os | ||
|
||
from setuptools import setup | ||
|
||
# Package meta-data. | ||
NAME = 'wemake-python-styleguide' | ||
DESCRIPTION = 'Warns about redundant arguments' | ||
URL = 'https://github.com/wemake-services/wemake-python-styleguide' | ||
EMAIL = '[email protected]' | ||
AUTHOR = 'Nikita Sobolev' | ||
|
||
REQUIRED = [ | ||
'flake8', | ||
] | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: | ||
long_description = '\n' + f.read() | ||
|
||
|
||
setup( | ||
name=NAME, | ||
version='0.0.1', | ||
description=DESCRIPTION, | ||
long_description=long_description, | ||
author=AUTHOR, | ||
author_email=EMAIL, | ||
url=URL, | ||
py_modules=['flake8_arguments'], | ||
keywords=[ | ||
'flake8', | ||
'plugin', | ||
'arguments', | ||
'functions', | ||
'methods', | ||
], | ||
install_requires=REQUIRED, | ||
include_package_data=True, | ||
license='MIT', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Environment :: Console', | ||
'Framework :: Flake8', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
|
||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
|
||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: Software Development :: Quality Assurance', | ||
], | ||
|
||
entry_points={ | ||
'flake8.extension': [ | ||
'WPS10 = wemake_python_styleguide:WrongKeywordChecker', | ||
'WPS11 = wemake_python_styleguide:WrongFunctionCallChecker', | ||
'WPS12 = wemake_python_styleguide:WrongVariableChecker', | ||
'WPS13 = wemake_python_styleguide:WrongImportChecker', | ||
], | ||
}, | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import ast | ||
import os | ||
|
||
import pytest | ||
from flake8.processor import FileProcessor | ||
|
||
|
||
@pytest.fixture(scope='session') | ||
def absolute_path(): | ||
dirname = os.path.dirname(__file__) | ||
|
||
def make_absolute_path(*files): | ||
return os.path.join(dirname, *files) | ||
|
||
return make_absolute_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
This file contains all prohibited function calls. | ||
""" | ||
|
||
x = input('Input x:') | ||
|
||
eval('x / 1') | ||
exec('') | ||
compile('') | ||
|
||
z = globals() | ||
y = locals() | ||
|
||
vars(z) | ||
dir(y) |
Oops, something went wrong.