-
Notifications
You must be signed in to change notification settings - Fork 4
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
Recreate SQL Dependency PR #200
Recreate SQL Dependency PR #200
Conversation
…dencies - This will help keep consistent versions of flake8 etc being installed between developers, to prevent incosistent linting/safety outputs
- Done by `pre-commit run --all-files`
- These files have been replaced by the use of Poetry to store the API's dependencies
…anges on this branch
- This is so flake8 can correctly detect which import statements are bringing in local code, so said statements can be ordered in a consistent style
- This is the suggested line length defined by Black, which flake8 is configured to also follow
- S311 (from Bandit) states "Standard pseudo-random generators are not suitable for security/cryptographic purposes.". The generator script doesn't generate data that would be vulnerable to security (no keys or anything of that nature is created using the random library) hence this status code is ignored
- This linting status code is regarding passing an exception object directly into log.exception()
- I've had to increase the max complexity in .flake8 because there's not much you can do with a couple of the functions. Still made some improvements though!
- This will mean this configurable parameter can be disabled when running the API in production, thereby avoiding any issues with read-only directories
- Some dependencies require Python >=3.6
- It can be useful to let all versions complete to give a better picture of the issues
- This was not used, with the codecov GitHub Actions plugin used instead
- This is no longer needed, I've opted to use the GitHub Actions codecov plugin
Add Code Coverage Reports
Implement GitHub Actions Workflow
Codecov Report
@@ Coverage Diff @@
## master #200 +/- ##
=========================================
Coverage ? 87.25%
=========================================
Files ? 28
Lines ? 2221
Branches ? 192
=========================================
Hits ? 1938
Misses ? 242
Partials ? 41 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see timezones included in the tests.
Yeah I'm not sure why they didn't fail before, but it's all good now :) |
Take 2, other PR is failing on CI, not sure if it's because of the logging branch or not.