Skip to content

Commit

Permalink
Fix typos discovered by codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Oct 12, 2021
1 parent 4e36b66 commit d702695
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Find typos with codespell
uses: codespell-project/actions-codespell@master
with:
ignore_words_list: hist
skip: "*.json"
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Upgrade library dependencies (if required):
### Changed

-- 'stats' for binance was retuning incorrect percentage gains.
-- 'statdetail' was not working for binance as some values were sting instead of float
-- 'statdetail' was not working for binance as some values were string instead of float

## [3.2.9] - 2021-08-16

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ For configuring logger, add a piece to the config.json as follows:
"--disablelog" argument or "disablelog" config will disable to writing logfile as backwards compatibility.
If you want to disable logging entirely, you can set "filelog" and "consolelog" to 0.

"logfile" is overriden by '--logfile' console argument.
"logfile" is overridden by '--logfile' console argument.
If '--logfile' used when running bot "logfile": "pycryptobot.log" line in config file will be ignored.

"fileloglevel" and "consoleloglevel" can get one of 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG', 'NOTSET'
Expand Down
2 changes: 1 addition & 1 deletion models/Strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def isBuySignal(

return True

# criteria for buy signal 2 (optionally add additional buy singals)
# criteria for buy signal 2 (optionally add additional buy signals)
elif (
(
bool(self._df_last["ema12gtema26co"].values[0]) is True
Expand Down
2 changes: 1 addition & 1 deletion models/exchange/binance/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def getMarkets24HrStats(self) -> pd.DataFrame():
return pd.DataFrame()

def getTicker(self, market: str = DEFAULT_MARKET, websocket=None) -> tuple:
"""Retrives the market ticker"""
"""Retrieves the market ticker"""

# validates the market is syntactically correct
if not self._isMarketValid(market):
Expand Down
4 changes: 2 additions & 2 deletions models/exchange/coinbase_pro/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def cancelOrders(self, market: str = "") -> pd.DataFrame:
return pd.DataFrame()

def marketBaseIncrement(self, market, amount) -> float:
"""Retrives the market base increment"""
"""Retrieves the market base increment"""

product = self.authAPI("GET", f"products/{market}")

Expand Down Expand Up @@ -791,7 +791,7 @@ def getHistoricalData(
return df

def getTicker(self, market: str = DEFAULT_MARKET, websocket=None) -> tuple:
"""Retrives the market ticker"""
"""Retrieves the market ticker"""

# validates the market is syntactically correct
if not self._isMarketValid(market):
Expand Down
4 changes: 2 additions & 2 deletions models/exchange/kucoin/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def cancelOrders(self, market: str = "") -> pd.DataFrame:
return model.authAPI("DELETE", "orders")

def marketBaseIncrement(self, market, amount) -> float:
"""Retrives the market base increment"""
"""Retrieves the market base increment"""
pMarket = market.split('-')[0]
product = self.authAPI("GET", f"api/v1/symbols?{pMarket}")

Expand Down Expand Up @@ -829,7 +829,7 @@ def getHistoricalData(
return df

def getTicker(self, market: str = DEFAULT_MARKET) -> tuple:
"""Retrives the market ticker"""
"""Retrieves the market ticker"""

# validates the market is syntactically correct
if not self._isMarketValid(market):
Expand Down
4 changes: 2 additions & 2 deletions pycryptobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def executeJob(
sell_taker_fee=app.getTakerFee(),
)

# handle immedate sell actions
# handle immediate sell actions
if strategy.isSellTrigger(
price,
technical_analysis.getTradeExit(price),
Expand Down Expand Up @@ -618,7 +618,7 @@ def executeJob(

if not app.isVerbose():
if state.last_action != "":
# Not sure if this if is needed just preserving any exisitng functionality that may have been missed
# Not sure if this if is needed just preserving any existing functionality that may have been missed
# Updated to show over margin and profit
if not app.isSimulation():
output_text = (
Expand Down
2 changes: 1 addition & 1 deletion telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def newbot_any_overrides(self, update, context) -> None:

markup = ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True)

update.message.reply_text('Do you want to use any commandline overrrides?', reply_markup=markup)
update.message.reply_text('Do you want to use any commandline overrides?', reply_markup=markup)

return MARKET

Expand Down

0 comments on commit d702695

Please sign in to comment.