Kyle McCormick
5557194af1
revert: BOM-2378 (B) : pyupgrade in common/lib ( #26943 )
...
Reverts #26731
The code in common/lib/capa/capa/safe_exec needs
to remain Python 3.5-compatible, since edx-sandbox
(ie codejail) is still running Python 3.5.
2021-03-10 15:01:09 -05:00
M. Zulqarnain
8e8420dd46
BOM-2378 (B) : pyupgrade in common/lib ( #26731 )
...
* refactor: pyupgrade on common/lib
Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com >
2021-03-10 17:56:24 +05:00
Kyle McCormick
9aefd6f986
style: django-not-configured is not a sensible lint-amnesty value ( #26862 )
...
django-not-configured is an error raised by pylint (with
the pylint-django plugin) when it's not correctly configured.
We should not be applying lint amnesty for such a violation.
2021-03-05 08:11:58 -05:00
Jawayria
9e31096ec5
Merge pull request #26505 from edx/jawayria/bom-2351-5
...
BOM-2351: Removed unused imports from common/lib/{capa, safe_lxml, sy…
2021-03-02 13:29:10 +05:00
Aarif
cce5c9ef1a
replaced unittest assertions pytest assertions ( #26530 )
2021-02-19 12:25:51 +05:00
Jawayria
4fc7b2f640
BOM-2351: Removed unused imports from common/lib/{capa, safe_lxml, symmath, conftest.py}
2021-02-15 13:21:19 +05:00
Usama Sadiq
1bb06669e3
Merge branch 'master' into usamasadiq/bom-2312-pylint-amnesty-common-lib
2021-02-08 18:26:15 +05:00
usamasadiq
1175838fa5
fix pep8 warnings
2021-02-08 16:08:01 +05:00
usamasadiq
7bbde8f0f5
Applied pylint-amnesty
2021-02-08 13:00:22 +05:00
usamasadiq
bbc386752f
Applied pylint-amnesty
2021-02-04 18:52:10 +05:00
Ali-D-Akbar
d6f6dad9a9
PROD-2205
2021-02-01 15:32:27 +05:00
M. Zulqarnain
39b109a9ad
Fixed bad escape character ( #24316 )
...
As of Python 3.7, a backslash-character pair that is not a valid escape sequence now generates an error, earlier it was a deprecation warning.
2020-06-24 18:23:11 +05:00
Aarif
6ee2089077
fixed warnings for wrong-import-order
2020-04-08 23:43:06 +05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Ayub khan
a21604afdb
BOM-613
...
Made all tests py3 compatible.
2019-09-30 12:07:49 +05:00
Awais Qureshi
1de1e72b43
BOM-478
...
Fixing python3
2019-09-13 18:29:08 +05:00
arbisoft
9d87c3c83b
python 2 and 3 compatible method.
2019-08-07 17:01:30 +05:00
kill-gear
69584ca573
incr-177 run python-modernize on openedx/features/learner_profile ( #20454 )
...
* incr-172
* incr-177 run modernize
* fixed bug due to running modernize
2019-05-08 16:50:04 -04:00
Jeremy Bowman
243f30ec83
TE-2886 Upgrade math/science packages in LMS and Studio
2019-03-22 10:02:36 -04:00
cclauss
c0c935b685
Old style exceptions --> new style for Python 3
2019-02-19 13:09:23 +01:00
Sofiya Semenova
8030f82e1c
Ed-1879 Remove requests import in symmath
2017-12-12 15:57:42 -05:00
Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
Ned Batchelder
0e4b816cb1
Pin versions of numpy and scipy
2016-08-08 09:11:25 -04:00
Ned Batchelder
8571ceabeb
Fix many wrong-assert-type errors
2016-08-03 12:44:41 -04:00
Sarina Canelake
edf6730ca0
Pylint fixes to symmath module
2015-12-08 22:56:28 -05:00
Sarina Canelake
8caad15188
Remove This Awful Code
2015-12-08 17:51:13 -05:00
Ned Batchelder
f5d0f3ff55
Remove useless pylint suppressions
2015-11-22 07:41:19 -05:00
Sarina Canelake
49f78b4742
Remove logging-not-lazy Pylint violations
2015-07-13 17:34:54 -04:00
Sarina Canelake
8283c07e32
Remove superfluous-parens pylint violations
...
Skipped 'print' statement violations, as print() is Py3k syntax.
2015-07-13 17:33:28 -04:00
Ned Batchelder
f396c11579
Fix unidiomatic type checking
2015-03-20 15:48:54 -04:00
Calen Pennington
03a05fd9d4
Always call super(..).setUp() from setUp
2015-02-04 09:09:14 -05:00
Sarina Canelake
520935209d
s/pylint: disable=W0402/pylint: disable=deprecated-module/
2014-12-01 11:22:12 -05:00
stv
fb9f324f2f
Fix PEP8: E303 too many blank lines
2014-11-10 11:00:14 -08:00
stv
cf9308144d
Fix PEP8: E302 expected 2 blank lines, found 1
2014-11-10 11:00:11 -08:00
Sarina Canelake
725e4908e3
Remove more pep8 violations
2014-11-04 07:37:41 -05:00
Sarina Canelake
27c3ba4a4d
pep8/pylint cleanup on symmath/formula.py
2014-02-11 09:46:24 -05:00
Calen Pennington
8ddd8c14a4
Fix pylint/pep8 errors
2013-11-08 11:08:48 -05:00
Ned Batchelder
e045860cb6
Pylint complains if you use string, even if you use it for what its still meant to be used for.
2013-06-21 16:35:47 -04:00
Ned Batchelder
df6d3f9b2f
Fix strings that should be raw.
2013-06-19 16:56:34 -04:00
Ned Batchelder
181b1e979b
Remove unused imports from common, as reported by pylint.
2013-06-19 16:56:34 -04:00
Ned Batchelder
88d3f253b6
Move symmath to be its own directory, and install it into the sandbox.
2013-05-31 15:22:16 -04:00