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

Recreate SQL Dependency PR #200

Merged
merged 277 commits into from
Jan 21, 2021

Conversation

MRichards99
Copy link
Collaborator

Take 2, other PR is failing on CI, not sure if it's because of the logging branch or not.

…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
- 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
MRichards99 and others added 24 commits January 15, 2021 14:34
- 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
@codecov
Copy link

codecov bot commented Jan 21, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@d5ea7ba). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5ea7ba...c84eccf. Read the comment docs.

Copy link
Contributor

@stuartpullinger stuartpullinger left a 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.

@MRichards99
Copy link
Collaborator Author

Yeah I'm not sure why they didn't fail before, but it's all good now :)

@MRichards99 MRichards99 merged commit 89b9d19 into master Jan 21, 2021
@MRichards99 MRichards99 deleted the feature/remove-sql-dependency-from-backends-#154 branch January 21, 2021 16:49
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.

2 participants