Skip to content
Snippets Groups Projects
Commit 5130c1a2 authored by Jan Caron's avatar Jan Caron
Browse files

flake8 changes to make it work again in VSCode

parent bca72c5a
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ dependencies: ...@@ -44,6 +44,7 @@ dependencies:
- jupyter=1.0 - jupyter=1.0
- nb_conda=2.2 - nb_conda=2.2
- ptvsd=4.3 # Cell debugging in VS Code - ptvsd=4.3 # Cell debugging in VS Code
# TODO: - ipywidgets
# TODO: Add back GUI dependencies! # TODO: Add back GUI dependencies!
# TODO: Get Jutil from gitlab (currently doesn't work, git and cygwin don't play nice,... # TODO: Get Jutil from gitlab (currently doesn't work, git and cygwin don't play nice,...
# TODO: ...because one is Unix, ond is Windows). # TODO: ...because one is Unix, ond is Windows).
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
from . import shapes from . import shapes
from . import examples from . import examples
from .magcreator import * # noqa: F403 # TODO: Why is noqa still necessary? It's in setup.cfg :-(! from .magcreator import *
__all__ = ['shapes', 'examples'] __all__ = ['shapes', 'examples']
__all__.extend(magcreator.__all__) __all__.extend(magcreator.__all__)
...@@ -107,11 +107,9 @@ source = pyramid ...@@ -107,11 +107,9 @@ source = pyramid
omit = omit =
tests/* tests/*
[tool:pytest] # TODO: Check if everything is taylored to pyramid! [flake8]
#addopts = --cov --flake8 # TODO: delete? max-line-length = 120
flake8-max-line-length = 120 ignore =
flake8-ignore =
#ALL # TODO: PEP8 deactivated by this line (remove at a later point)!
E402 # module import not at top of file E402 # module import not at top of file
E124 # closing bracket does not match visual indentation E124 # closing bracket does not match visual indentation
E125 # continuation line with same indent as next logical line E125 # continuation line with same indent as next logical line
...@@ -119,10 +117,6 @@ flake8-ignore = ...@@ -119,10 +117,6 @@ flake8-ignore =
W503 # line break before binary operator W503 # line break before binary operator
W504 # line break after binary operator W504 # line break after binary operator
E741 # do not use variables named ‘l’, ‘O’, or ‘I’ E741 # do not use variables named ‘l’, ‘O’, or ‘I’
pyramid/__init__.py F401 # module imported but unused */__init__.py F401 # module imported but unused
pyramid/__init__.py F403 # 'from module import *' used; unable to detect undefined names */__init__.py F403 # 'from module import *' used; unable to detect undefined names
pyramid/__init__.py F405 # Name may be undefined, or defined from star imports: module */__init__.py F405 # Name may be undefined, or defined from star imports: module
pyramid/magcreator/__init__.py F401 # same as above
pyramid/magcreator/__init__.py F403 # same as above
pyramid/magcreator/__init__.py F405 # same as above
#doc/conf.py ALL # TODO: delete?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment