Skip to content

Commit

Permalink
Change .env extensions to .envrc for direnv (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
manishsaha authored Sep 23, 2019
1 parent d969313 commit d0e5a20
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ wheels/
MANIFEST

# Environments
*.env
*.envrc
venv/

# Zip
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ source venv/bin/activate
pip install -r requirements.txt
```

Make sure to also create your `.env` file by running:
Make sure to also create your `.envrc` file by running:
```
cp env.template .env
cp envrc.template .envrc
```

Environment variable values can be found by asking a member of Cornell AppDev.
Expand All @@ -36,6 +36,18 @@ python app.py
# Style
So that the repository agrees upon a style standard, we have opted to use [black](https://github.com/psf/black) for Python formatting!

## Setting up linter
**Flake 8**: Install [flake8](http://flake8.pycqa.org/en/latest/)

**Black**: Either use [command line tool](https://black.readthedocs.io/en/stable/installation_and_usage.html) or use [editor extension](https://black.readthedocs.io/en/stable/editor_integration.html).

If using VS Code, install the 'Python' extension and include following snippet inside `settings.json`:
``` json
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.formatting.provider": "black"
```

# Endpoints

# **/alerts** • GET
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.4"
services:
live-tracking:
build: .
env_file: python.env
env_file: python.envrc
ports:
- "5000:5000"

File renamed without changes.

0 comments on commit d0e5a20

Please sign in to comment.