Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD: higher code standards #7

Merged
merged 26 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9161b1f
ADD: Pawn DocString
VincentAuriau Oct 20, 2023
4a4692a
ADD: material main classes descriptions
VincentAuriau Oct 20, 2023
8e28aff
ADD: full docstring for material
VincentAuriau Oct 21, 2023
6ce7e54
:art: Format Python code with psf/black
VincentAuriau Oct 21, 2023
01ef266
Merge pull request #8 from VincentAuriau/actions/black
VincentAuriau Oct 21, 2023
e4f4c8c
ADD: better test CI organization
VincentAuriau Oct 21, 2023
c7b3110
:art: Format Python code with psf/black
VincentAuriau Oct 21, 2023
1158ba4
Merge pull request #9 from VincentAuriau/actions/black
VincentAuriau Oct 21, 2023
c54023f
Update ci.yaml
VincentAuriau Oct 21, 2023
e43e53f
Update ci.yaml
VincentAuriau Oct 21, 2023
b49b4ac
ADD: dev specific env
VincentAuriau Oct 21, 2023
dba0f42
Update ci.yaml
VincentAuriau Oct 21, 2023
69c899f
Create pyproject.toml
VincentAuriau Oct 21, 2023
112b304
Update ci.yaml
VincentAuriau Oct 21, 2023
2da7ef4
Update ci.yaml
VincentAuriau Oct 21, 2023
3bd822b
Update pyproject.toml
VincentAuriau Oct 21, 2023
7175eca
FIX: missing dev packages
VincentAuriau Oct 21, 2023
c54d4bb
Update requirements-dev.txt
VincentAuriau Oct 21, 2023
2460835
Update requirements-dev.txt
VincentAuriau Oct 21, 2023
99e3d11
edit CI
VincentAuriau Oct 21, 2023
578b59e
removed pywin32 version in requirements
VincentAuriau Oct 21, 2023
fae407b
rm pywin32 from requirements
VincentAuriau Oct 21, 2023
426b4d2
rm pypiwin32
VincentAuriau Oct 21, 2023
4e8976a
fix .toml
VincentAuriau Oct 21, 2023
225aac7
add pytest to requirements
VincentAuriau Oct 21, 2023
9c18493
rm tensorflow import
VincentAuriau Oct 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
branches: [master]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
strategy:
matrix:
python-version: [3.9.x]
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r envs/requirements-dev.txt
pip install -e .

- name: Run unit tests
run: python -m pytest --import-mode=append tests/
49 changes: 49 additions & 0 deletions envs/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
absl-py==1.0.0
astunparse==1.6.3
cachetools==5.0.0
certifi==2021.10.8
charset-normalizer==2.0.12
cycler==0.11.0
docopt==0.6.2
docutils==0.18.1
flatbuffers==2.0
fonttools==4.33.3
gast==0.5.3
grpcio==1.46.1
h5py==3.6.0
idna==3.3
importlib-metadata==4.11.3
kiwisolver==1.4.2
libclang==14.0.1
Markdown==3.3.7
matplotlib==3.5.1
numpy==1.22.3
oauthlib==3.2.0
opt-einsum==3.3.0
packaging==21.3
palanteer==0.6
panda==0.3.1
pipreqs==0.4.11
protobuf==3.20.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycallgraph2==1.1.3
Pygments==2.12.0
pyinstrument==4.1.1
pyparsing==3.0.8
pytest
python-dateutil==2.8.2
pytz==2022.7
requests==2.27.1
requests-oauthlib==1.3.1
rsa==4.8
scipy==1.10.0
six==1.16.0
termcolor==1.1.0
threadpoolctl==3.1.0
typing_extensions==4.2.0
urllib3==1.26.9
Werkzeug==2.1.2
wrapt==1.14.1
yarg==0.1.9
zipp==3.8.0
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "pyalapin"
version = "0.0.1"
authors = [
{ name = "Vincent Auriau"},
]
description = "Custom Chess Engine"
readme = "README.md"
requires-python = ">=3.8"

[tool.setuptools]
packages = [
"tests",
"python"
]
2 changes: 1 addition & 1 deletion python/engine/color.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Color:
GREEN = "\x1b[32m"
WHITE = '\033[0m'
WHITE = "\033[0m"
RED = "\x1b[31m"
Loading
Loading