Skip to content

Commit

Permalink
Bump black from 23.12.1 to 24.2.0 (hsahovic#501)
Browse files Browse the repository at this point in the history
* Bump black from 23.12.1 to 24.2.0

Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.2.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...24.2.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Apply black

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Haris Sahovic <[email protected]>
  • Loading branch information
dependabot[bot] and hsahovic authored Mar 2, 2024
1 parent 399304f commit 90a806f
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
python diagnostic_tools/anything_goes_gen_7_battles_and_teams.py <n_battle> <log_level>\
<batch_size>
"""

import asyncio
import sys

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
python diagnostic_tools/anything_goes_gen_8_battles_and_teams.py <n_battle> <log_level>\
<batch_size>
"""

import asyncio
import sys

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
python diagnostic_tools/anything_goes_gen_8_double_battles_and_teams.py <n_battle>
<log_level> <batch_size>
"""

import asyncio
import sys

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
python diagnostic_tools/anything_goes_gen_8_battles_and_teams.py <n_battle> <log_level>\
<batch_size>
"""

import asyncio
import sys

Expand Down
1 change: 1 addition & 0 deletions diagnostic_tools/gen8_random_battles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
python diagnostic_tools/gen8_random_battles.py <n_battle> <log_level>\
<batch_size>
"""

import asyncio
import sys

Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_concurrency_control.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
These tests aim to verify that concurrency control is working properly.
"""

import asyncio

import pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==23.12.1
black==24.2.0
flake8
isort==5.13.2
nbsphinx
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""poke_env module init.
"""

import logging

import poke_env.environment as environment
Expand Down
6 changes: 3 additions & 3 deletions src/poke_env/environment/double_battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def parse_request(self, request: Dict[str, Any]) -> None:
if active_request.get("trapped"):
self._trapped[active_pokemon_number] = True

self._available_moves[
active_pokemon_number
] = active_pokemon.available_moves_from_request(active_request)
self._available_moves[active_pokemon_number] = (
active_pokemon.available_moves_from_request(active_request)
)

if active_request.get("canMegaEvo", False):
self._can_mega_evolve[active_pokemon_number] = True
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/effect.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module defines the Effect class, which represents in-game effects.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/field.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module defines the Field class, which represents a battle field.
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/move_category.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module defines the MoveCategory class, which represents a move category.
"""

from enum import Enum, auto, unique


Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/pokemon_gender.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines the PokemonGender class, which represents the gender of a
Pokemon.
"""

from __future__ import annotations

from enum import Enum, auto, unique
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/pokemon_type.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines the PokemonType class, which represents a Pokemon type.
PokemonTypes are mainly associated with Pokemons and moves.
"""

from __future__ import annotations

from enum import Enum, auto, unique
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/side_condition.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines the SideCondition class, which represents a in-battle side
condition.
"""

import logging
from enum import Enum, auto, unique

Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/status.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines the Status class, which represents statuses a pokemon can be
afflicted with.
"""

from enum import Enum, auto, unique


Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/weather.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module defines the Weather class, which represents a in-battle weather.
"""

import logging
from enum import Enum, auto, unique

Expand Down
1 change: 1 addition & 0 deletions src/poke_env/environment/z_crystal.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module contains objects related ot z-crystal management. It should not be used
directly.
"""

from typing import Dict, Optional, Tuple

from poke_env.environment.pokemon_type import PokemonType
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/player/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""poke_env.player module init.
"""

from poke_env.concurrency import POKE_LOOP
from poke_env.player import env_player, openai_api, player, random_player, utils
from poke_env.player.baselines import MaxBasePowerPlayer, SimpleHeuristicsPlayer
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/player/env_player.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module defines a player class exposing the Open AI Gym API with utility functions.
"""

from abc import ABC
from threading import Lock
from typing import Dict, List, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/player/openai_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines a player class with the OpenAI API on the main thread.
For a black-box implementation consider using the module env_player.
"""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/ps_client/account_configuration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module contains objects related to player configuration.
"""

from typing import Counter, NamedTuple, Optional

CONFIGURATION_FROM_PLAYER_COUNTER: Counter[str] = Counter()
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/ps_client/ps_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module defines a base class for communicating with showdown servers.
"""

import asyncio
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/ps_client/server_configuration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""This module contains objects related to server configuration.
"""

from typing import NamedTuple


Expand Down
1 change: 1 addition & 0 deletions src/poke_env/teambuilder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""poke_env.teambuilder module init.
"""

from poke_env.teambuilder import constant_teambuilder, teambuilder
from poke_env.teambuilder.constant_teambuilder import ConstantTeambuilder
from poke_env.teambuilder.teambuilder import Teambuilder
Expand Down
1 change: 1 addition & 0 deletions src/poke_env/teambuilder/constant_teambuilder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines the ConstantTeambuilder class, which is a subclass of
ShowdownTeamBuilder that yields a constant team.
"""

from poke_env.teambuilder.teambuilder import Teambuilder


Expand Down
1 change: 1 addition & 0 deletions src/poke_env/teambuilder/teambuilder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines the Teambuilder abstract class, which represents objects yielding
Pokemon Showdown teams in the context of communicating with Pokemon Showdown.
"""

from abc import ABC, abstractmethod
from typing import List

Expand Down
1 change: 1 addition & 0 deletions src/poke_env/teambuilder/teambuilder_pokemon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module defines the TeambuilderPokemon class, which is used as an intermediate
format to specify pokemon builds in teambuilders custom classes.
"""

from typing import List, Optional

from poke_env.data import to_id_str
Expand Down

0 comments on commit 90a806f

Please sign in to comment.