-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from gcivil-nyu-org/setup-travis-integeration
added flake and black changes
- Loading branch information
Showing
28 changed files
with
2,238 additions
and
2,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
repo_token: syDEBCoOfzHUiOmPUXoSK9J9yTBEEpz57 | ||
service_name: travis-pro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
language: python | ||
dist: bionic | ||
os: linux | ||
python: | ||
- "3.11" # Update to the actual Python 3.11 version when available | ||
|
||
before_install: | ||
- pip install 'urllib3<2.0' | ||
- sudo apt-get update | ||
|
||
# Define your build steps, for example: | ||
install: | ||
- pip install -r requirements.txt # Install dependencies | ||
|
||
script: | ||
- python manage.py test | ||
- python -m black . --check | ||
- python -m flake8 --ignore=E303,E501 --max-line-length=88 | ||
- python -m coverage run manage.py test | ||
env: | ||
global: | ||
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID | ||
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY | ||
|
||
after_success: | ||
coveralls | ||
deploy: | ||
provider: elasticbeanstalk | ||
access_key_id: $AWS_ACCESS_KEY_ID | ||
secret_access_key: "$AWS_SECRET_ACCESS_KEY" | ||
region: "us-west-2" | ||
app: "CheerUp" | ||
env: "seproject-cheerup-env" | ||
bucket_name: "elasticbeanstalk-us-west-2-623285752572" | ||
# You can add additional steps such as deployment configuration if needed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. | ||
from django.contrib import admin | ||
|
||
from .models import Event | ||
|
||
admin.site.register(Event) | ||
admin.site.register(Event) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from django import forms | ||
from .models import Event | ||
|
||
|
||
class EventsForm(forms.Form): | ||
model = Event | ||
fields = ['event_name', 'start_time', 'end_time','capacity'] | ||
|
||
fields = ["event_name", "start_time", "end_time", "capacity"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
from django.db import models | ||
from location.models import Location | ||
|
||
# Create your models here. | ||
|
||
|
||
class Event(models.Model): | ||
event_name = models.CharField(max_length=200) | ||
event_location = models.ForeignKey(Location, on_delete=models.CASCADE, default=261) | ||
start_time = models.DateTimeField() | ||
end_time = models.DateTimeField() | ||
capacity = models.IntegerField() | ||
is_active = models.BooleanField(default = True) | ||
is_active = models.BooleanField(default=True) | ||
|
||
def __str__(self): | ||
return self.event_name | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.