Commit Graph

24 Commits (28b6a2d53588eaaa905b45d8cbf49eb6eedd338b)

Author SHA1 Message Date
Manuel Kaufmann 7d08eed428 Run add-trailing-comma over all the files 2019-01-21 18:49:11 +01:00
Manuel Kaufmann 632e18c121 pre-commit all the files again 2019-01-09 13:19:00 +01:00
Manuel Kaufmann 3219f7acbd Run pre-commit on all the files
$ pre-commit run --files `find readthedocs -name '*'`
2019-01-08 21:51:36 +01:00
Manuel Kaufmann c78187b62f isort all the files
$ pre-commit run python-import-sorter --files `find readthedocs -name '*.py'`

It was ran with this configuration: https://github.com/rtfd/common/pull/28
2019-01-08 20:56:20 +01:00
Manuel Kaufmann f7dea72b86 pyupgrade 1.11.0 on all code
pyupgrade --py3-plus --py3-only (*.py)
2019-01-03 16:56:33 +01:00
Manuel Kaufmann 5791195463 Upgrade stripe Python package to the latest version
https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md
2018-11-15 11:21:12 +01:00
Manuel Kaufmann d87bfa6a7b Add VAT ID field for Gold User 2018-10-22 14:09:21 +02:00
Manuel Kaufmann c32d612a23 Clean CC sensible data on Gold subscriptions (#4291)
* Clean CC sensible data on Gold subscriptions

`PaymentView.submit_form` function removes all CC sensible data.

This function is used for `GoldView` in this repo and also for
`DonateView` in -ext repo.

Since the behavior is shared across them, it's better to modify the
parent's function and remove the override from the children.

* Standardize `card_digits` and `last_4_digits`

Use `last_4_card_digits` to avoid confusion and express exactly what
it contains.

* Rename auto named migration
2018-09-05 09:44:59 -06:00
Manuel Kaufmann 5cb3ba6b7b Organize logging levels (#3893)
* Organize logging levels

Log only what we need as ERROR when it's something that we need/want
to take a look that something could be a bug/issue.

There are some ERROR that were replaced by WARNING since they are some
failures but that we don't need to take a look and the message shown
to the user should be enough for them.

* Fix lint issues

* Use the proper exc_info instead of custom formatting
2018-04-05 16:57:30 -06:00
Manuel Kaufmann 4d10f2e287 Fix D213 using docformatter
prospector \
  --profile-path=/home/humitos/rtfd/code/readthedocs.org \
  --profile=prospector --die-on-tool-error \
  | \
  grep -e "^[a-z] \
  > \
  list-files.txt

for x in `cat list-files.txt`; do \
  docformatter \
    --wrap-summaries=80 \
    --wrap-descriptions=80 \
    --pre-summary-newline \
    --no-blank \
    --in-place readthedocs/$x\
; done
2017-12-15 20:18:06 -05:00
Hank Gay cbcdbcb7d0 Don't try to use BaseException.message 2017-05-31 16:51:04 -04:00
Hank Gay 64116bc541 Make a pass with futurize on stage 2.
Depend on futurize.
2017-05-30 18:10:44 -04:00
Hank Gay f201d150dd Make a pass w/ python-modernize. 2017-05-30 17:55:56 -04:00
Daniel Pope 7cc416a698 Remove unused import (#2883) 2017-05-22 16:39:45 -07:00
Berker Peksag 5db8d6c7cc Fix usage of :py:class: directive (#2314) 2016-07-15 09:23:01 -07:00
Anthony Johnson b33dcf25b9 Add error handling to stripe token creation in payment js 2015-10-22 11:26:00 -07:00
Anthony Johnson a2d01b8700 Use payments.utils as canonical source for stripe module
This eliminates the need to specify the api_key everywhere
2015-10-22 10:45:23 -07:00
Anthony Johnson 2ae3f787ea Update Stripe's jquery.payment, and change KO field binding type
This uses `textInput` for better handling of text field operations like pasting and
autofill. This should allow for card numbers to be pasted in on payment forms.
2015-10-21 13:09:26 -07:00
Anthony Johnson 5c6c4af34f Return deleted stripe objects 2015-10-21 09:59:37 -07:00
Anthony Johnson ea66bc0b71 Clean up logic around invalid requests to stripe on object get/create 2015-10-16 16:14:45 -07:00
Anthony Johnson ff2087efcc Save updated stripe model after fetching 2015-10-16 14:17:49 -07:00
Anthony Johnson 9d2934ae63 Change name of stripe model form 2015-10-14 23:58:23 -07:00
Anthony Johnson 254f964a75 Linting and docs 2015-10-14 23:55:47 -07:00
Anthony Johnson 443619495f Rework all payment pieces to unify implementation 2015-10-14 23:12:37 -07:00