Skip to content

Commit

Permalink
Cleanup to the project (#116)
Browse files Browse the repository at this point in the history
* fixes

* format

* fixes: add missing filters to docs
  • Loading branch information
oscarbc96 committed Apr 6, 2020
1 parent 63f4dd4 commit 6b946e9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 39 deletions.
14 changes: 5 additions & 9 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation with MkDocs
mkdocs:
configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- dev
- docs
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ freeze:
CUSTOM_COMPILE_COMMAND="make freeze" pip-compile --no-index --output-file requirements.txt setup.py

freeze-upgrade:
CUSTOM_COMPILE_COMMAND="make freeze" pip-compile --no-index --upgrade --output-file requirements.txt setup.py
CUSTOM_COMPILE_COMMAND="make freeze-upgrade" pip-compile --no-index --upgrade --output-file requirements.txt setup.py

lambda.zip: $(SOURCES) Makefile requirements.txt
if [ -f lambda.zip ]; then rm lambda.zip; fi
Expand Down
24 changes: 0 additions & 24 deletions docs/requirements.txt

This file was deleted.

2 changes: 2 additions & 0 deletions docs/rule_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Rule Standard -> Rule Config -> Filter #1 -> ... -> Filter #N
| `and` | True if all args are True | `{"and": [True, True]}` |
| `in` | Same as a in b | `{"in": ["b", ["a", "b"]]}` |
| `regex` | True if b match pattern a | `{"regex": [r"^\d+$", "5"]}` |
| `exists` | True if a is not None | `{"exists": None}` |
| `empty` | True if len(a) equals 0 | `{"empty": []}` |
| `ref` | Get the value at any depth of the context based on the path described by a. | `{"ref": "param_a.param_b"}` |

### Examples
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# make freeze
# make freeze-upgrade
#
boto3==1.12.29 # via cfripper (setup.py)
botocore==1.15.29 # via boto3, s3transfer
boto3==1.12.35 # via cfripper (setup.py)
botocore==1.15.35 # via boto3, s3transfer
cfn-flip==1.2.2 # via cfripper (setup.py)
click==7.1.1 # via cfn-flip
click==7.1.1 # via cfn-flip, cfripper (setup.py)
docutils==0.15.2 # via botocore
jmespath==0.9.5 # via boto3, botocore
pycfmodel==0.7.0 # via cfripper (setup.py)
Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@

project_root_path = Path(__file__).parent

install_requires = ["boto3>=1.4.7,<2", "cfn_flip>=1.2.0", "pycfmodel>=0.7.0", "pydash~=4.7.6", "PyYAML>=4.2b1"]
install_requires = [
"boto3>=1.4.7,<2",
"cfn_flip>=1.2.0",
"click~=7.1.1",
"pycfmodel>=0.7.0",
"pydash~=4.7.6",
"PyYAML>=4.2b1",
]

dev_requires = [
"black==19.10b0",
Expand Down

0 comments on commit 6b946e9

Please sign in to comment.