mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Test on Python 3.11 (#6591)
* Test on Python 3.11 release candidate 2 * tensorflow; python<3.11 * tensorflow; python_version < 3.11 * tensorflow; python_version < "3.11" * sympy, tensorflow; python_version < "3.11" * sklearn; python_version < "3.11" * matplotlib, pandas, qiskit * statsmodels; python_version < "3.11" * Bring back Pandas * Problem deps are qiskit, statsmodels, and tensorflow * updating DIRECTORY.md * python-version: 3.11-dev --> 3.11 * updating DIRECTORY.md * Add pytest --ignore to pyproject.toml * Update build.yml * Update pyproject.toml * Update pyproject.toml * Python 3.11 Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
parent
b2165a65fc
commit
a31edd4477
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
python-version: 3.11
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
|
@ -22,6 +22,15 @@ jobs:
|
|||
python -m pip install --upgrade pip setuptools six wheel
|
||||
python -m pip install pytest-cov -r requirements.txt
|
||||
- name: Run tests
|
||||
run: pytest --ignore=project_euler/ --ignore=scripts/validate_solutions.py --cov-report=term-missing:skip-covered --cov=. .
|
||||
# See: #6591 for re-enabling tests on Python v3.11
|
||||
run: pytest
|
||||
--ignore=computer_vision/cnn_classification.py
|
||||
--ignore=machine_learning/forecasting/run.py
|
||||
--ignore=machine_learning/lstm/lstm_prediction.py
|
||||
--ignore=quantum/
|
||||
--ignore=project_euler/
|
||||
--ignore=scripts/validate_solutions.py
|
||||
--cov-report=term-missing:skip-covered
|
||||
--cov=. .
|
||||
- if: ${{ success() }}
|
||||
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
||||
|
|
|
@ -66,7 +66,7 @@ pre-commit run --all-files --show-diff-on-failure
|
|||
|
||||
We want your work to be readable by others; therefore, we encourage you to note the following:
|
||||
|
||||
- Please write in Python 3.10+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
|
||||
- Please write in Python 3.11+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
|
||||
- Please focus hard on the naming of functions, classes, and variables. Help your reader by using __descriptive names__ that can help you to remove redundant comments.
|
||||
- Single letter variable names are *old school* so please avoid them unless their life only spans a few lines.
|
||||
- Expand acronyms because `gcd()` is hard to understand but `greatest_common_divisor()` is not.
|
||||
|
|
|
@ -328,6 +328,7 @@
|
|||
* [Electric Conductivity](electronics/electric_conductivity.py)
|
||||
* [Electric Power](electronics/electric_power.py)
|
||||
* [Electrical Impedance](electronics/electrical_impedance.py)
|
||||
* [Ind Reactance](electronics/ind_reactance.py)
|
||||
* [Ohms Law](electronics/ohms_law.py)
|
||||
* [Resistor Equivalence](electronics/resistor_equivalence.py)
|
||||
* [Resonant Frequency](electronics/resonant_frequency.py)
|
||||
|
|
|
@ -8,14 +8,14 @@ opencv-python
|
|||
pandas
|
||||
pillow
|
||||
projectq
|
||||
qiskit
|
||||
qiskit; python_version < "3.11"
|
||||
requests
|
||||
rich
|
||||
scikit-fuzzy
|
||||
sklearn
|
||||
statsmodels
|
||||
statsmodels; python_version < "3.11"
|
||||
sympy
|
||||
tensorflow
|
||||
tensorflow; python_version < "3.11"
|
||||
texttable
|
||||
tweepy
|
||||
xgboost
|
||||
|
|
Loading…
Reference in New Issue
Block a user