-
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 #69 from fecgov/release/sprint-4
Release/sprint 4
- Loading branch information
Showing
144 changed files
with
15,279 additions
and
13,925 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
CURRENT_DIR=${PWD##*/} | ||
OUTFILE="./docs/license_report.md" | ||
|
||
echo "Saving report as a markdown formatted file in ${OUTFILE}" | ||
|
||
if [ "$CURRENT_DIR" != "fecfile-web-api" ]; then | ||
echo "Run this script from the root directory of the fecfile-web-api repository:" | ||
fi; | ||
|
||
mkdir -p docs | ||
|
||
echo "The following dependencies are used by this application:" > "$OUTFILE" | ||
echo "" >> "$OUTFILE" | ||
echo "" >> "$OUTFILE" | ||
echo "| Package | Version | License |" >> "$OUTFILE" | ||
echo "| --- | --- | --- |" >> "$OUTFILE" | ||
|
||
liccheck | | ||
grep ": " | | ||
sed "s/://" | | ||
sed "s/\[//" | | ||
sed "s/\]//" | | ||
sed "s/'//g" | | ||
awk '{ | ||
gsub(/\(/, "", $2) | ||
gsub(/\)/, "", $2) | ||
printf "| %s | %s | ", $1, $2 | ||
for (i=3; i <= NF; i++) printf "%s ", $i | ||
printf "|\n" | ||
}' >> "$OUTFILE" | ||
|
||
echo "" >> "$OUTFILE" | ||
|
||
|
||
|
||
|
||
|
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,24 +1,6 @@ | ||
[flake8] | ||
max-line-length = 160 | ||
ignore = | ||
E501 # line length, | ||
W291 # trailing whitespace | ||
W503 # line break before binary operator | ||
E711 # comparison to None should be 'if cond is None:' | ||
E712 # comparison to False should be 'if cond is False:' or 'if not cond:' | ||
E713 # test for membership should be 'not in' | ||
E722 # do not use bare 'except' | ||
F401 # 'django.contrib.admin' imported but unused | ||
F403 # 'from .views import *' used; unable to detect undefined names | ||
F523 # '...'.format(...) has unused arguments at position(s): 0 | ||
F524 # '...'.format(...) is missing argument(s) for placeholder(s): 1 | ||
F632 # use ==/!= to compare constant literals (str, bytes, int, float, tuple) | ||
F811 # redefinition of unused 'datetime' from line 11 | ||
F821 # undefined name 'get_entities' | ||
F841 # local variable 'e' is assigned to but never used | ||
N802 # function names should be lowercase | ||
N802 # function name should be lowercase | ||
N806 # variable in function should be lowercase | ||
N803 # argument name should be lowercase | ||
N801 # class name should use CapWords convention | ||
N816 # variable in global scope should not be mixedCase | ||
exclude: | ||
fecfiler/core/jsonsqlgenerate.py # this file needs significant work | ||
W503 # line break before binary operator |
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,11 +1,10 @@ | ||
from django.contrib import admin | ||
from .models import Account | ||
from .forms import AccountCreationForm | ||
from django.contrib.auth.admin import UserAdmin | ||
|
||
|
||
class AccountAdmin(UserAdmin): | ||
add_form_template = 'admin/authentication/account/add_form.html' | ||
add_form_template = "admin/authentication/account/add_form.html" | ||
add_form = AccountCreationForm | ||
|
||
|
||
# admin.site.register(Account, AccountAdmin) |
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
Oops, something went wrong.