-
Notifications
You must be signed in to change notification settings - Fork 138
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
dev: update dependencies, testing, packaging, and linting/formatting #685
dev: update dependencies, testing, packaging, and linting/formatting #685
Commits on Feb 8, 2024
-
dev: update dev dependencies and build process to current fashion
- config: old [setup.cfg, setup.py], new [pyproject.toml] - format/lint: old [black, flake8, isort], new [ruff] - build/publish: old [build, twine], new [flit] - updated github actions and readme accordingly - source changes according to new default formatter and linter rules
Configuration menu - View commit details
-
Copy full SHA for 6e7c46d - Browse repository at this point
Copy the full SHA 6e7c46dView commit details -
dev: remove unused and unmaintained sphinx dev docs stub
- nobody has changed these files since 2011, and they're very incomplete - the docs generated aren't published anywhere - the readme instructions don't work with python 3.8 - sphinx 1.0.7 not compatible with python 3+ - newer sphinx versions have an OS dependency on OpenSSL 1.1.1+ - updated readme to refer to useful resources and current docs state
Configuration menu - View commit details
-
Copy full SHA for e60e7a0 - Browse repository at this point
Copy the full SHA e60e7a0View commit details -
dev: fix linter warnings from flake8-bugbear rules
- mostly error handling, unused variables
Configuration menu - View commit details
-
Copy full SHA for 3d23423 - Browse repository at this point
Copy the full SHA 3d23423View commit details -
dev: fix linter warnings from ruff-specific rules
- mostly mutable classvars, unnecessary noqa comments, list unpacking
Configuration menu - View commit details
-
Copy full SHA for 618abc1 - Browse repository at this point
Copy the full SHA 618abc1View commit details -
dev: fix linter warnings from flake8-comprehensions rules
- unnecessary calls to list() or dict(), redundant comprehensions
Configuration menu - View commit details
-
Copy full SHA for ed585c3 - Browse repository at this point
Copy the full SHA ed585c3View commit details -
dev: fix linter warnings from perflint and flake8-pie rules
- unnecessary placeholders, unnecessary range starts (0), dict.values() - re-order ruff calls since `check` doesn't auto-format
Configuration menu - View commit details
-
Copy full SHA for bfa91e3 - Browse repository at this point
Copy the full SHA bfa91e3View commit details -
dev: fix linter warnings from pylint rules
- collapsible else-ifs, collapsible multiple comparisons
Configuration menu - View commit details
-
Copy full SHA for 23a225f - Browse repository at this point
Copy the full SHA 23a225fView commit details -
dev: fix linter warnings from flake8-bandit rules
- use of assert, use of ElementTree, unchecked URL scheme
Configuration menu - View commit details
-
Copy full SHA for 5c680e7 - Browse repository at this point
Copy the full SHA 5c680e7View commit details -
dev: fix linter warnings from flake8-pyi, tryceratops rules
- use type-able NamedTuple, raise accurate errors, log exception TBs
Configuration menu - View commit details
-
Copy full SHA for abf15e2 - Browse repository at this point
Copy the full SHA abf15e2View commit details -
dev: fix linter warnings from pyupgrade rules
- UP009 utf8-encoding-declaration unnecessary for python 3
Configuration menu - View commit details
-
Copy full SHA for c5902b5 - Browse repository at this point
Copy the full SHA c5902b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68da45f - Browse repository at this point
Copy the full SHA 68da45fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f77b252 - Browse repository at this point
Copy the full SHA f77b252View commit details -
dev: fix linter warnings from pyupgrade rules
- UP031 printf-string-formatting replace percent-formats with f-strings
Configuration menu - View commit details
-
Copy full SHA for 7559f05 - Browse repository at this point
Copy the full SHA 7559f05View commit details -
dev: rename test modules/methods for unittest runner instead of nose
- nose 1.3.7 is very old and not using any advanced test features that would require a 3rd party test library like nose2 or pytest - default pattern is test_* for runner to pick up TestCases
Configuration menu - View commit details
-
Copy full SHA for b2cb5ee - Browse repository at this point
Copy the full SHA b2cb5eeView commit details -
dev: update usages of codecs.open to use underlying built-in
- remove redundant mode/encoding args - simplify unittest import in test_bugs.py
Configuration menu - View commit details
-
Copy full SHA for 92d53a5 - Browse repository at this point
Copy the full SHA 92d53a5View commit details -
dev: fix ResourceWarning during tests, broken test, string formatting
- xls2json_backends.py: both XLS and XLSX open and read the respective files, do processing, then close the file. But if an error occurs during processing then the file is left open. A ResourceWarning is raised when python cleans up the file handle. The ResourceWarning is visible during tests because test libraries remove the normal suppression of warnings during test runs. So normally a user probably wouldn't see it. The fix is to make sure the workbook object and file are cleaned up and closed with a contextmanager + try-except block. - test_bugs.py: fixed test that had been broken for a while. It was not being executed by nose test runner for some reason. After converting tests to unittest, it ran and failed. After doing some git archaeology it seems that the 3rd warning that was expected was one about Google Sheets not supporting certain file names, but while that warning was later removed, the test was not updated. The 2nd is commented on. - fixed strange string concatentation on the same line e.g. "a" "b".
Configuration menu - View commit details
-
Copy full SHA for 5533905 - Browse repository at this point
Copy the full SHA 5533905View commit details -
dev: fix expected output in attribute_columns_test
- nose tests were not running this test for a while. The changes are: - secondary instances / itemsets replacing inline choices. - for media itext with no translation, the value/form not output - probable bug: custom attributes not applied to repeat template (they appear in first repeat but not the jr:template).
Configuration menu - View commit details
-
Copy full SHA for 0d5af8f - Browse repository at this point
Copy the full SHA 0d5af8fView commit details -
- bump actions version numbers - update syntax for install, build, test
Configuration menu - View commit details
-
Copy full SHA for 3ffc8c7 - Browse repository at this point
Copy the full SHA 3ffc8c7View commit details -
dev: add encoding to open() calls for cross-platform test compatibility
- either missing before, or mistakenly removed in commit f491ea8
Configuration menu - View commit details
-
Copy full SHA for 87041a5 - Browse repository at this point
Copy the full SHA 87041a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed0b6a0 - Browse repository at this point
Copy the full SHA ed0b6a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7c496a - Browse repository at this point
Copy the full SHA b7c496aView commit details -
dev: move binding_conversion dict to aliases, remove irrelevant comment
- feedback from PR XLSForm#685
Configuration menu - View commit details
-
Copy full SHA for 64903fd - Browse repository at this point
Copy the full SHA 64903fdView commit details