Skip to content

Commit

Permalink
v17.0.0 change app to use pydantic and .env files instead of config.i…
Browse files Browse the repository at this point in the history
…ni files for settings, fix cbs leagues without FAAB, upgrade Docker to Python 3.11.6, upgrade dependencies and documentation
  • Loading branch information
uberfastman committed Nov 25, 2023
1 parent eeeb0ba commit 112d1ab
Show file tree
Hide file tree
Showing 49 changed files with 1,450 additions and 1,648 deletions.
5 changes: 1 addition & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
**.pytest_cache

# environment
.env*
.venv

# auth secrets
Expand All @@ -19,10 +20,6 @@
**credentials*.json
!**credentials.template.json

# configuration
config*.ini
!config.template.ini

# output
**logs/
output/
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ XXXXXX...
macOS/Windows/Linux

#### Other
Any other setup/environment/configuration information you might deem potentially relevant.
Any other setup/environment/settings information you might deem potentially relevant.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ assignees: ''
Please describe what new idea/feature would like to see added to the app.

## Use case
Please elaborate on how your idea/feature request will be provide additional value and/or interesting information beyond what is already included in the generated reports.
Please elaborate on how your idea/feature request will provide additional value and/or interesting information beyond what is already included in the generated reports.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
**.pytest_cache

# environment
.env*
env*
.venv
venv

# auth secrets
**private*.json
Expand All @@ -19,10 +22,6 @@
**credentials*.json
!**credentials.template.json

# configuration
config*.ini
!config.template.ini

# output
**logs/
output/
Expand Down
2 changes: 1 addition & 1 deletion .venv
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fantasy-football-metrics-weekly-report
fantasy-football-metrics-weekly-report-python_3.11.6
946 changes: 584 additions & 362 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions calculate/bad_boy_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import requests
from bs4 import BeautifulSoup

from report.constants import nfl_team_abbreviations, nfl_team_abbreviation_conversions
from report.logger import get_logger
from utilities.constants import nfl_team_abbreviations, nfl_team_abbreviation_conversions
from utilities.logger import get_logger

logger = get_logger(__name__, propagate=False)

Expand Down
4 changes: 2 additions & 2 deletions calculate/beef_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import requests

from report.constants import nfl_team_abbreviations, nfl_team_abbreviation_conversions
from report.logger import get_logger
from utilities.constants import nfl_team_abbreviations, nfl_team_abbreviation_conversions
from utilities.logger import get_logger

logger = get_logger(__name__, propagate=False)

Expand Down
9 changes: 4 additions & 5 deletions calculate/coaching_efficiency.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from typing import List, Dict, Set, Union

from dao.base import BasePlayer, BaseLeague
from report.logger import get_logger
from utilities.constants import prohibited_statuses
from utilities.logger import get_logger

logger = get_logger(__name__, propagate=False)

Expand Down Expand Up @@ -49,13 +50,11 @@ def is_full(self):

class CoachingEfficiency(object):

def __init__(self, config, league):
def __init__(self, league):
logger.debug("Initializing coaching efficiency.")

self.config = config

self.inactive_statuses: List[str] = [
str(status) for status in self.config.get("Configuration", "prohibited_statuses").split(",")
status for status in prohibited_statuses
]

self.league: BaseLeague = league
Expand Down
Loading

0 comments on commit 112d1ab

Please sign in to comment.