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

flake8 fixes #418

Merged
merged 1 commit into from
Jul 9, 2019
Merged

flake8 fixes #418

merged 1 commit into from
Jul 9, 2019

Conversation

Aniket21mathur
Copy link
Contributor

No description provided.

@quozl
Copy link
Contributor

quozl commented Jul 6, 2019

Briefly reviewed;

  • doc/conf.py is an upstream file, and changing it creates unnecessary difference, so please exclude it from flake8 and changes,
  • the appstream metadata for screenshots might not be capable of being split in that fashion, please explain how you tested this,
  • line 1381 of icon.py loses whitespace that is correct english usage.

@Aniket21mathur
Copy link
Contributor Author

* doc/conf.py is an upstream file, and changing it creates unnecessary difference, so please exclude it from flake8 and changes

Changed.

* the appstream metadata for screenshots might not be capable of being split in that fashion, please explain how you tested this,

I reverted the changes. Thanks for pointing out.

* line 1381 of icon.py loses whitespace that is correct english usage.

Thanks. Fixed!

@quozl
Copy link
Contributor

quozl commented Jul 8, 2019

Thanks. Tested with flake8 on Python 2 and Python 3; these remain;

./tests/test_lru.py:6:12: E999 SyntaxError: invalid syntax
./src/sugar3/logger.py:195:23: F821 undefined name 'long'
./src/sugar3/bundle/__init__.py:161:80: E501 line too long (137 > 79 characters)
./src/sugar3/activity/activityinstance.py:25:5: F821 undefined name 'reload'

and doc/conf.py is not excluded.

@Aniket21mathur
Copy link
Contributor Author

./src/sugar3/bundle/init.py:161:80: E501 line too long (137 > 79 characters)

Because of Appstream metadeta of screenshots.

./src/sugar3/logger.py:195:23: F821 undefined name 'long'

Use of six introduced it, please see

if six.PY2:
        _TYPES.append(long)

./src/sugar3/activity/activityinstance.py:25:5: F821 undefined name 'reload'

Again resulted from use of six.

./tests/test_lru.py:6:12: E999 SyntaxError: invalid syntax

Sorry, but I am not able to find any such file in the toolkit, nor does it exist on github, as I have check now.

doc/conf.py is not excluded.

Reviewed the changes again, sorry I am not able to find any changes in it.

Thanks!

@quozl quozl merged commit 3b28597 into sugarlabs:master Jul 9, 2019
@quozl
Copy link
Contributor

quozl commented Jul 9, 2019

Thanks for checking. test_lru.py was a local file in my repository. doc/conf.py ought to be excluded by .flake8 somehow, but it can be done later.

@Aniket21mathur Aniket21mathur deleted the flake8 branch July 9, 2019 05:02
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

Successfully merging this pull request may close these issues.

None yet

2 participants