Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of code linting would be nice #403

Open
golharam opened this issue Nov 16, 2024 · 1 comment
Open

Addition of code linting would be nice #403

golharam opened this issue Nov 16, 2024 · 1 comment

Comments

@golharam
Copy link

No description provided.

@miguelgrinberg
Copy link
Owner

You can lint the code yourself very easily:

> pip install flake8
> flake8 app/*
app/__init__.py:99:1: F401 'app.models' imported but unused
app/__init__.py:99:1: E402 module level import not at top of file
app/api/__init__.py:5:1: F401 'app.api.users' imported but unused
app/api/__init__.py:5:1: F401 'app.api.errors' imported but unused
app/api/__init__.py:5:1: F401 'app.api.tokens' imported but unused
app/api/__init__.py:5:1: E402 module level import not at top of file
app/auth/__init__.py:5:1: F401 'app.auth.routes' imported but unused
app/auth/__init__.py:5:1: E402 module level import not at top of file
app/errors/__init__.py:5:1: F401 'app.errors.handlers' imported but unused
app/errors/__init__.py:5:1: E402 module level import not at top of file
app/main/__init__.py:5:1: F401 'app.main.routes' imported but unused
app/main/__init__.py:5:1: E402 module level import not at top of file
app/models.py:218:57: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
app/models.py:223:57: E712 comparison to False should be 'if cond is False:' or 'if not cond:'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants