Skip to content

Commit

Permalink
fix: Update dependencies (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab authored Jan 19, 2024
1 parent 0f0feec commit fb1303e
Show file tree
Hide file tree
Showing 11 changed files with 1,450 additions and 405 deletions.
71 changes: 35 additions & 36 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: main

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
check-branch:
Expand All @@ -31,13 +31,13 @@ jobs:
strategy:
matrix:
python_version:
- '3.8.1'
- '3.9'
- '3.10'
- '3.11'
- "3.8.1"
- "3.9"
- "3.10"
- "3.11"
# - '3.12'
os:
- 'ubuntu'
- "ubuntu"
# - 'macos'
# poetry is failing on windows: https://github.com/python-poetry/poetry/issues/1031
# - 'windows'
Expand Down Expand Up @@ -70,7 +70,6 @@ jobs:
- name: Run tests
run: makim tests.unittest


linter-and-docs:
needs: check-branch
runs-on: ubuntu-latest
Expand All @@ -85,31 +84,31 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3

- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: artbox
auto-update-conda: true
conda-solver: libmamba

- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install
- name: Test documentation generation
run: makim docs.build

- name: Run style checks
if: success() || failure()
run: |
pre-commit install
makim tests.linter
- name: Setup tmate session
if: "${{ failure() && (contains(github.event.pull_request.labels.*.name, 'ci:enable-debugging')) }}"
uses: mxschmitt/action-tmate@v3
- uses: actions/checkout@v3

- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: artbox
auto-update-conda: true
conda-solver: libmamba

- name: Install dependencies
run: |
poetry config virtualenvs.create false
poetry install
- name: Test documentation generation
run: makim docs.build

- name: Run style checks
if: success() || failure()
run: |
pre-commit install
makim tests.linter
- name: Setup tmate session
if: "${{ failure() && (contains(github.event.pull_request.labels.*.name, 'ci:enable-debugging')) }}"
uses: mxschmitt/action-tmate@v3
139 changes: 79 additions & 60 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,71 +6,90 @@ repos:
hooks:
- id: end-of-file-fixer

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.2"
hooks:
- id: prettier
exclude: ".makim.yaml"

- repo: local
hooks:
- id: black
name: black
entry: black
language: system
pass_filenames: true
types:
- python
- id: ruff-format
name: ruff-format
entry: ruff format
exclude: |
(?x)(
docs
)
language: system
pass_filenames: true
types:
- python

- id: ruff
name: ruff
entry: ruff --fix
language: system
pass_filenames: true
files: "./"
types:
- python
- id: ruff-linter
name: ruff-linter
entry: ruff check
language: system
exclude: |
(?x)(
docs|
tests
)
pass_filenames: true
types:
- python

- id: mypy
name: mypy
entry: mypy
language: system
files: "src/ggpyt"
pass_filenames: true
types:
- python
- id: mypy
name: mypy
entry: mypy
language: system
files: "./"
pass_filenames: true
exclude: |
(?x)(
docs|
tests
)
types:
- python

- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types_or:
- sh
- shell
- ash
- bash
- bats
- dash
- ksh
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types_or:
- sh
- shell
- ash
- bash
- bats
- dash
- ksh

- id: bandit
name: bandit
entry: bandit
language: system
args: ['--configfile', 'pyproject.toml', '-iii', '-lll']
pass_filenames: true
types:
- python
- id: bandit
name: bandit
entry: bandit
language: system
args: ["--configfile", "pyproject.toml", "-iii", "-lll"]
pass_filenames: true
types:
- python

- id: vulture
name: vulture
entry: vulture
language: system
files: "src/ggpyt"
description: Find unused Python code.
pass_filenames: true
types:
- python
- id: vulture
name: vulture
entry: vulture --min-confidence 80
language: system
files: "src/umlizer"
description: Find unused Python code.
pass_filenames: true
types:
- python

- id: mccabe
name: mccabe
entry: python -m mccabe --min 10
language: system
files: "src/ggpyt"
pass_filenames: true
types:
- python
- id: mccabe
name: mccabe
entry: python -m mccabe --min 10
language: system
files: "src/umlizer"
pass_filenames: true
types:
- python
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
4 changes: 2 additions & 2 deletions conda/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
- python >=3.8.1,<3.12
- pip
- poetry
- nodejs # used by semantic-release
- nodejs # used by semantic-release
- shellcheck
- pip:
- paginate
- paginate
15 changes: 6 additions & 9 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
# Release Notes

---

# [0.4.0](https://github.com/ggpedia/artbox/compare/0.3.0...0.4.0) (2023-09-04)


### Features

* add option for downloading from youtube with a specific resolution. ([#7](https://github.com/ggpedia/artbox/issues/7)) ([933d937](https://github.com/ggpedia/artbox/commit/933d937910ba369892760b444d9b3b2fafd2a503))
- add option for downloading from youtube with a specific resolution. ([#7](https://github.com/ggpedia/artbox/issues/7)) ([933d937](https://github.com/ggpedia/artbox/commit/933d937910ba369892760b444d9b3b2fafd2a503))

# [0.3.0](https://github.com/ggpedia/artbox/compare/0.2.0...0.3.0) (2023-08-30)


### Features

* Add engine options for Voice class. ([#6](https://github.com/ggpedia/artbox/issues/6)) ([d4381f7](https://github.com/ggpedia/artbox/commit/d4381f781a98ffb51fb103d671c5a9115bb3f6d1))
- Add engine options for Voice class. ([#6](https://github.com/ggpedia/artbox/issues/6)) ([d4381f7](https://github.com/ggpedia/artbox/commit/d4381f781a98ffb51fb103d671c5a9115bb3f6d1))

# [0.2.0](https://github.com/ggpedia/artbox/compare/0.1.0...0.2.0) (2023-08-29)


### Bug Fixes

* Fix release workflow ([#3](https://github.com/ggpedia/artbox/issues/3)) ([1407997](https://github.com/ggpedia/artbox/commit/140799721b3bb84fb784ee58bb163be0b78bbe48))
* Fix release workflow permissions ([#5](https://github.com/ggpedia/artbox/issues/5)) ([90931d4](https://github.com/ggpedia/artbox/commit/90931d4ff9efa38d955fd98774ac48c7fdc89ac5))

- Fix release workflow ([#3](https://github.com/ggpedia/artbox/issues/3)) ([1407997](https://github.com/ggpedia/artbox/commit/140799721b3bb84fb784ee58bb163be0b78bbe48))
- Fix release workflow permissions ([#5](https://github.com/ggpedia/artbox/issues/5)) ([90931d4](https://github.com/ggpedia/artbox/commit/90931d4ff9efa38d955fd98774ac48c7fdc89ac5))

### Features

* Add the flag `--lang` for the voice command ([#2](https://github.com/ggpedia/artbox/issues/2)) ([cb937e9](https://github.com/ggpedia/artbox/commit/cb937e9e7a9de5a19b3dc4dc8d34f6daf4ba6304))
- Add the flag `--lang` for the voice command ([#2](https://github.com/ggpedia/artbox/issues/2)) ([cb937e9](https://github.com/ggpedia/artbox/commit/cb937e9e7a9de5a19b3dc4dc8d34f6daf4ba6304))
Loading

0 comments on commit fb1303e

Please sign in to comment.