Commit Graph

70 Commits

Author SHA1 Message Date
Akira Noda
90bdd72555
Admin: Using ruff format instead of black (#7502) 2024-03-21 19:17:29 -01:00
Bert Blommers
2fd5e800e4 Remove Python 3.7 support (#7185) 2024-01-27 19:38:09 +00:00
tungol
ff5256d8e5
Improve typing for IAM (#7091) 2023-12-05 19:55:04 -01:00
tungol
b3c3883a78
MyPy improvements (#7045) 2023-11-21 22:51:03 -01:00
Akira Noda
110234f67e
Introducing a new linter: ruff (#6752) 2023-09-03 06:16:24 +00:00
Bert Blommers
a28dd1abc8
Pin typing_extensions for Py3.7 (#6339) 2023-05-24 21:18:34 +00:00
Bert Blommers
79a0b9070b
Move to pyproject.toml, instead of setup.py (#5821) 2023-01-06 18:43:16 -01:00
Bert Blommers
b4f59b771c
Techdebt: Replace string-format with f-strings (#5695) 2022-11-21 22:20:19 -01:00
Bert Blommers
43a3fecbd2
TechDebt - remove print statements (#5571) 2022-10-16 20:31:19 +00:00
Bert Blommers
26412e1c3f
TechDebt: Introduce MyPy typing annotations (#5535) 2022-10-06 08:37:35 +00:00
Yao-Ching Huang
361e1fe7f6
upgrade black and unpin click (#5077) 2022-04-30 10:04:09 +00:00
Bert Blommers
d60df32a25
Upgrade flake8 to 4.x (#5066) 2022-04-27 11:58:59 +00:00
Bert Blommers
5efa5b66bf
Admin - remove old dependencies/config (#5054) 2022-04-23 20:34:10 +00:00
Bert Blommers
a271057df2
Pin click-module, because it causes black to crash (#4984) 2022-03-29 13:10:51 +00:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency (#4378) 2022-01-18 14:18:57 -01:00
nivla1
5044df98bc
Implement sagemaker list_training_jobs enhancement (issue #4248) (#4256)
Co-authored-by: nivla1 <keongalvin@gmail.com>
2021-09-02 13:45:47 +01:00
Bert Blommers
c296a9431e
Resolve coverage dependency conflict (#4191) 2021-08-18 09:19:27 +01:00
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +01:00
Bert Blommers
9e3faf7784
Make Moto (tests) compatible with flask/werkzeug 2.x (#3923)
* Dont fail if CodeCov fails - for now

* CI - Force cache rebuild

* Bump werkzeug to latest version

* CI - Enforce cache flush

* ManagedBlockchain - fix error format

* ManagedBlockchain - Fix tests to use pytest.raises paradigm

* Revert "Lock Flask (#3925)"

This reverts commit 8bb0feb956.

* CI - Enforce cache rebuild
2021-05-13 10:36:56 +01:00
Bert Blommers
ede2579836
Unpin LXML, and remove linux deps as they were only required when building lxml from source (#3874) 2021-04-24 09:33:00 +01:00
Bert Blommers
562d0eef69
Automate releases (#3732)
* Test custom action with custom input

* Run test workflow on push

* Automated release configuration
2021-03-03 09:06:22 +00:00
Nuwan Goonasekera
a0d7a943ee
Fix unknown instance type (#3710)
* Use apiname when comparing unknown instance ids

* Use get_instance_types API to populate instance_types.json

* Fix scope of instances array when retrieving instance types
2021-02-22 10:21:59 +00:00
Bert Blommers
d7b8419791
Fix Mock 4.0.3 compatibility - Unpatch only once during teardown (#3541)
* #3535 - Unpatch only once during teardown

* EnvVar patching - Fix Python2 bug

* Allow latest version of mock-library
2021-02-15 08:42:16 +00:00
Anders Kaseorg
e2e107e555
requirements-dev.txt: Remove requirements copied from setup.py (#3619)
Most of these were already pulled in via -r requirements.txt → -e
.[all]; add the remainder with -e .[all,server].

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-01-28 14:28:34 +00:00
Bert Blommers
d7f218bfec
Pin sshpubkeys dependency to last version to support Py2 (#3614) 2021-01-25 08:21:13 +00:00
Brian Pandola
cb03223c9b
Add TagSpecification support to ec2:CreateImage (#3604)
* Bump `botocore` to minimum version that supports TagSpecifications for this action.
* Add test coverage.

Closes #3602
2021-01-23 12:57:34 +00:00
Bert Blommers
9ecea2012a
Fix Blockchain to work with new API (#3575)
* Fix Blockchain to work with new API

* Improve Lambda->SQS error handling
2021-01-07 11:18:50 +00:00
jweite
5fe921c2bc
Added support for EMR Security Configurations and Kerberos Attributes. (#3456)
* Added support for EMR Security Configurations and Kerberos Attributes.

* Revised exception-raising test to work with pytest api.

* Added htmlcov to .gitignore; upgrading botocore to 1.18.17, per commit d29475e.

Co-authored-by: Joseph Weitekamp <jweite@amazon.com>
2020-11-17 10:54:34 +00:00
Steve Pulec
ce60e9e3b8
Merge pull request #3314 from bblommers/dependency-test
List dependencies for services - add integration test
2020-09-23 07:07:31 -05:00
Leo Sutic
cc0bd5213f
Enable CORS from everywhere using flask-cors. (#3316)
Co-authored-by: Leo Sutic <leo.sutic@matterport.com>
2020-09-19 10:07:17 +01:00
Bert Blommers
db1d7123f6 List dependencies for services - add integration test to verify 2020-09-13 16:08:23 +01:00
Toshiya Kawasaki
127b3e73e9
Fix scaffold.py (#3270)
* upgrade prompt-toolkit to make scaffold.py work

* update append_mock_to_init_py

* enable to run when method name is not upper camel case

* support new moto/backend.py format

* use prompt-toolkit 2.x.x to support python2

* fix invalid initialization of moto/backends.py
2020-09-01 11:44:13 +01:00
Ciaran Evans
3b06ce689e
Address SFN.Client.exceptions.ExecutionAlreadyExists Not implemented (#3263)
* Add check for existing execution, fix issue with make init

* Remove f-string usage

* Remove fstring usage in test

* Pin black and run formatting on test_stepfunction

* Reverse changes made by black 20.8b1
2020-08-27 08:22:44 +01:00
Michael Penkov
79b022fbc1 update requirements-dev.txt 2020-04-29 15:42:40 +09:00
Steven Davidovitz
0e489a8a28 support mock versions < 3.0.5 2020-03-10 01:11:00 -07:00
Bert Blommers
7b5613b331 #2774 - Re-add test, and update requirements to working botocore 2020-03-09 12:47:44 +00:00
Bert Blommers
00134d2df3 Fix dependencies to versions that support Python 2 2020-02-29 09:41:06 +00:00
Mike Grima
8e5a9ac97d Pinned coverage to fix XRay tests.
Fixes #2638
2019-12-16 13:21:17 -08:00
Asher Foa
c820395dbf Run black linter and enforce going forward 2019-10-31 08:46:14 -07:00
Chih-Hsuan Yen
61698f955e
Use new flake8 for Python 3.8 compatibility
With the current flake8, which depends on pyflakes<1.7.0,>=1.5.0,
linting fails with:

AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'

The issue is fixed in pyflakes 2.1.0 [1]. Let's just use the latest
flake8.

[1] 7c74ab0ddc
2019-10-27 20:00:20 +08:00
mattsb42-aws
c161894324 add parameterize to dev requirements to simplify things 2019-08-26 22:38:49 -07:00
Jordan Guymon
8e909f580a MockAWS implementation using botocore event hooks 2018-10-29 09:12:22 +01:00
Chih-Hsuan Yen
52248589bf
Update lxml and sure for Python 3.7 compatibility 2018-08-15 23:25:26 +08:00
Hugo Lopes Tavares
5f61950096 Make SpotPrice optional when requesting a spot fleet
When price is omitted, AWS will default to the on-demand price
2018-02-01 18:07:35 -05:00
Chris Tomlinson
279efc6b12 Bump flake8 version and handle new lint errors (#1385) 2017-12-08 21:02:34 +00:00
Toshiya Kawasaki
9eca6119bd Fix flake8 version to 3.4.1 2017-10-23 22:51:02 +09:00
Alexander Mohr
9008b85299 lambda + SNS enhancements (#1048)
* updates

- support lambda messages from SNS
- run lambda in docker container

* decode output

* populate timeout

* simplify

* whoops

* skeletons of cloudwatchlogs

* impl filter log streams

* fix logging

* PEP fixes

* PEP fixes

* fix reset

* fix reset

* add new endpoint

* fix region name

* add docker

* try to fix tests

* try to fix travis issue with boto

* fix escaping in urls

* fix environment variables

* fix PEP

* more pep

* switch back to precise

* another fix attempt

* fix typo

* fix lambda invoke

* fix more unittests

* work on getting this to work in new scheme

* fix py2

* fix error

* fix tests when running in server mode

* more lambda fixes

* try running with latest docker

adapted from aiodocker

* switch to docker python client

* pep fixes

* switch to docker volume

* fix unittest

* fix invoke from sns

* fix zip2tar

* add hack impl for get_function with zip

* try fix

* fix for py < 3.6

* add volume refcount

* try to fix travis

* docker test

* fix yaml

* try fix

* update endpoints

* fix

* another attempt

* try again

* fix recursive import

* refactor fix

* revert changes with better fix

* more reverts

* wait for service to come up

* add back detached mode

* sleep and add another exception type

* put this back for logging

* put back with note

* whoops :)

* docker in docker!

* fix invalid url

* hopefully last fix!

* fix lambda regions

* fix protocol

* travis!!!!

* just run lambda test for now

* use one print

* fix escaping

* another attempt

* yet another

* re-enable all tests

* fixes

* fix for py2

* revert change

* fix for py2.7

* fix output ordering

* remove this given there's a new unittest that covers it

* changes based on review

- add skeleton logs test file
- switch to docker image that matches test env
- fix mock_logs import

* add readme entry
2017-09-27 16:04:58 -07:00
Terry Cain
6feaced0bf
Script to get instance info 2017-09-27 17:27:36 +01:00
Toshiya Kawasaki
6c33888b0f insert functions and templates for query and json protocol 2017-09-21 23:55:13 +09:00