Skip to content

Commit 7788189

Browse files
committed
Squashed 'lint-configs/' content from commit 4696bad
git-subtree-dir: lint-configs git-subtree-split: 4696badf397dfee865b76eddd0f5d9410ed5f80a
0 parents  commit 7788189

File tree

9 files changed

+260
-0
lines changed

9 files changed

+260
-0
lines changed

.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# C extensions
6+
*.so
7+
8+
# Distribution / packaging
9+
.Python
10+
env/
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
lib/
17+
lib64/
18+
parts/
19+
sdist/
20+
var/
21+
*.egg-info/
22+
.installed.cfg
23+
*.egg
24+
25+
# PyInstaller
26+
# Usually these files are written by a python script from a template
27+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
28+
*.manifest
29+
*.spec
30+
31+
# Installer logs
32+
pip-log.txt
33+
pip-delete-this-directory.txt
34+
35+
# Unit test / coverage reports
36+
htmlcov/
37+
.tox/
38+
.coverage
39+
.cache
40+
nosetests.xml
41+
coverage.xml
42+
43+
# Translations
44+
*.mo
45+
*.pot
46+
47+
# Django stuff:
48+
*.log
49+
50+
# Sphinx documentation
51+
docs/_build/
52+
53+
# PyBuilder
54+
target/
55+
56+
# Virtual Environments
57+
.venv
58+
59+
# Temporary Files
60+
*.swp
61+
62+
# Visual Studio Code
63+
.vscode/

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# StackStorm Lint Configs
2+
3+
This repository contains lint configs for different programming languages and
4+
tools (flake8, pylint, etc.) used by different StackStorm repositories.
5+
6+
Configs are grouped in sub-directories by programming language.
7+
8+
## Usage
9+
10+
To use those configs, add this repository as a git subtree to the repository
11+
where you want to utilize those configs. After that is done, update make
12+
targets (or similar) to correctly pass path to the configs to the tools
13+
in question.
14+
15+
```bash
16+
git subtree add --prefix lint-configs https://github.com/StackStorm/lint-configs.git master --squash
17+
```
18+
19+
To use it (example with pylint)
20+
21+
```bash
22+
pylint -E --rcfile=./lint-configs/python/.pylintrc
23+
...
24+
```
25+
26+
And once you want to pull changes / updates from the lint-configs repository:
27+
28+
```bash
29+
git subtree pull --prefix lint-configs https://github.com/StackStorm/lint-configs.git master --squash
30+
```

python/.flake8

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[flake8]
2+
max-line-length = 100
3+
# L102 - apache license header
4+
enable-extensions = L101,L102
5+
ignore = E128,E402,E722,W504
6+
exclude=*.egg/*,build,dist
7+
8+
# Configuration for flake8-copyright extension
9+
copyright-check = True
10+
copyright-min-file-size = 1
11+
12+
# Settings for flake8-license
13+
license-type = apache
14+
15+
# NOTE: This requires flake8 >= 3.0.0 to work correctly.
16+
# If old version is used (< 3.0.0), it will select all the errors and it wont ignore ones
17+
# listed above as part of ignore list
18+
select = E,F,W,C,L

python/.flake8-exchange

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[flake8]
2+
max-line-length = 100
3+
# L102 - apache license header
4+
enable-extensions = L101,L102
5+
ignore = E128,E402,E722,W504
6+
exclude=*.egg/*,build,dist
7+
8+
# Configuration for flake8-copyright extension
9+
copyright-check = True
10+
copyright-min-file-size = 1
11+
12+
# Settings for flake8-license
13+
license-type = apache
14+
15+
# NOTE: This requires flake8 >= 3.0.0 to work correctly.
16+
# If old version is used (< 3.0.0), it will select all the errors and it wont ignore ones
17+
# listed above as part of ignore list
18+
select = E,F,W,C,L

python/.flake8-oss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[flake8]
2+
max-line-length = 100
3+
# L102 - apache license header
4+
enable-extensions = L101,L102
5+
ignore = E128,E402,E722,W504
6+
exclude=*.egg/*,build,dist
7+
8+
# Configuration for flake8-copyright extension
9+
copyright-check = False
10+
copyright-min-file-size = 1
11+
12+
# Settings for flake8-license
13+
license-type = apache
14+
15+
# NOTE: This requires flake8 >= 3.0.0 to work correctly.
16+
# If old version is used (< 3.0.0), it will select all the errors and it wont ignore ones
17+
# listed above as part of ignore list
18+
select = E,F,W,C,L

python/.flake8-proprietary

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[flake8]
2+
max-line-length = 100
3+
# L101 - proprietary license header
4+
enable-extensions = L101,L102
5+
ignore = E128,E402,E722,W504
6+
exclude=*.egg/*,build,dist
7+
8+
# Configuration for flake8-copyright extension
9+
copyright-check = True
10+
copyright-min-file-size = 1
11+
12+
license-type = proprietary
13+
14+
# NOTE: This requires flake8 >= 3.0.0 to work correctly.
15+
# If old version is used (< 3.0.0), it will select all the errors and it wont ignore ones
16+
# listed above as part of ignore list
17+
select = E,F,W,C,L

python/.pylintrc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[MESSAGES CONTROL]
2+
# C0111 Missing docstring
3+
# I0011 Warning locally suppressed using disable-msg
4+
# I0012 Warning locally suppressed using disable-msg
5+
# W0704 Except doesn't do anything Used when an except clause does nothing but "pass" and there is no "else" clause
6+
# W0142 Used * or * magic* Used when a function or method is called using *args or **kwargs to dispatch arguments.
7+
# W0212 Access to a protected member %s of a client class
8+
# W0232 Class has no __init__ method Used when a class has no __init__ method, neither its parent classes.
9+
# W0613 Unused argument %r Used when a function or method argument is not used.
10+
# W0702 No exception's type specified Used when an except clause doesn't specify exceptions type to catch.
11+
# R0201 Method could be a function
12+
# W0614 Unused import XYZ from wildcard import
13+
# R0914 Too many local variables
14+
# R0912 Too many branches
15+
# R0915 Too many statements
16+
# R0913 Too many arguments
17+
# R0904 Too many public methods
18+
# E0211: Method has no argument
19+
# E1128: Assigning to function call which only returns None Used when an assignment is done on a function call but the inferred function returns nothing but None.
20+
# E1129: Context manager ‘%s’ doesn’t implement __enter__ and __exit__. Used when an instance in a with statement doesn’t implement the context manager protocol(__enter__/__exit__).
21+
disable=C0103,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,not-context-manager,assignment-from-none
22+
23+
[TYPECHECK]
24+
# Note: This modules are manipulated during the runtime so we can't detect all the properties during
25+
# static analysis
26+
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves
27+
28+
[FORMAT]
29+
max-line-length=100
30+
max-module-lines=1000
31+
indent-string=' '

python/.pylintrc-exchange

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[MESSAGES CONTROL]
2+
# C0111 Missing docstring
3+
# I0011 Warning locally suppressed using disable-msg
4+
# I0012 Warning locally suppressed using disable-msg
5+
# W0704 Except doesn't do anything Used when an except clause does nothing but "pass" and there is no "else" clause
6+
# W0142 Used * or * magic* Used when a function or method is called using *args or **kwargs to dispatch arguments.
7+
# W0212 Access to a protected member %s of a client class
8+
# W0232 Class has no __init__ method Used when a class has no __init__ method, neither its parent classes.
9+
# W0613 Unused argument %r Used when a function or method argument is not used.
10+
# W0702 No exception's type specified Used when an except clause doesn't specify exceptions type to catch.
11+
# R0201 Method could be a function
12+
# W0614 Unused import XYZ from wildcard import
13+
# R0914 Too many local variables
14+
# R0912 Too many branches
15+
# R0915 Too many statements
16+
# R0913 Too many arguments
17+
# R0904 Too many public methods
18+
# E0211: Method has no argument
19+
# E1128: Assigning to function call which only returns None Used when an assignment is done on a function call but the inferred function returns nothing but None.
20+
# E1129: Context manager ‘%s’ doesn’t implement __enter__ and __exit__. Used when an instance in a with statement doesn’t implement the context manager protocol(__enter__/__exit__).
21+
disable=C0103,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,not-context-manager,assignment-from-none
22+
23+
[TYPECHECK]
24+
# Note: This modules are manipulated during the runtime so we can't detect all the properties during
25+
# static analysis
26+
# The lib package is automatically added to PYTHONPATH by ST2 for Python actions
27+
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves,lib
28+
29+
[FORMAT]
30+
max-line-length=100
31+
max-module-lines=1000
32+
indent-string=' '

python/.pylintrc-pack-ci

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[MESSAGES CONTROL]
2+
# C0111 Missing docstring
3+
# I0011 Warning locally suppressed using disable-msg
4+
# I0012 Warning locally suppressed using disable-msg
5+
# W0704 Except doesn't do anything Used when an except clause does nothing but "pass" and there is no "else" clause
6+
# W0142 Used * or * magic* Used when a function or method is called using *args or **kwargs to dispatch arguments.
7+
# W0212 Access to a protected member %s of a client class
8+
# W0232 Class has no __init__ method Used when a class has no __init__ method, neither its parent classes.
9+
# W0511 Used when a warning note as FIXME or XXX is detected.
10+
# W0613 Unused argument %r Used when a function or method argument is not used.
11+
# W0702 No exception's type specified Used when an except clause doesn't specify exceptions type to catch.
12+
# R0201 Method could be a function
13+
# W0614 Unused import XYZ from wildcard import
14+
# W0621 Redefining name %r from outer scope (line %s) Used when a variable’s name hide a name defined in the outer scope.
15+
# R0914 Too many local variables
16+
# R0912 Too many branches
17+
# R0915 Too many statements
18+
# R0913 Too many arguments
19+
# R0904 Too many public methods
20+
# E0211: Method has no argument
21+
# E1128: Assigning to function call which only returns None Used when an assignment is done on a function call but the inferred function returns nothing but None.
22+
# E1129: Context manager ‘%s’ doesn’t implement __enter__ and __exit__. Used when an instance in a with statement doesn’t implement the context manager protocol(__enter__/__exit__).
23+
disable=C0103,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0511,W0613,W0702,R0201,W0614,W0621,R0914,R0912,R0915,R0913,R0904,R0801,not-context-manager,assignment-from-none
24+
25+
[TYPECHECK]
26+
# Note: This modules are manipulated during the runtime so we can't detect all the properties during
27+
# static analysis
28+
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves,st2common
29+
30+
[FORMAT]
31+
max-line-length=100
32+
max-module-lines=1000
33+
indent-string=' '

0 commit comments

Comments
 (0)