Skip to content

Commit

Permalink
revise
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong committed Jan 5, 2025
1 parent b6ee822 commit 2ea49b5
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 66 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ jobs:

- name: Interrogate
uses: JackMcKew/python-interrogate-check@main

pre-commit:
name: Check pre-commit compliance.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
7 changes: 0 additions & 7 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ env:
cache-version: "cache-v2"

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
build-environment:
needs: pre-commit
strategy:
max-parallel: 10
matrix:
Expand Down
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.1.0
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
- id: black
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
- id: nbstripout
7 changes: 2 additions & 5 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ version: 2

mkdocs:
configuration: mkdocs.yml

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.12
install:
- requirements: requirements.txt
# python:
# version: 3.12
12 changes: 0 additions & 12 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ channels:
dependencies:
- pip
- pip:
- -r requirements.txt
- . # Installs the package using pyproject.toml
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,27 @@ build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["nxviz"]

[tool.tox]
envlist = ["py26", "py27", "py33", "py34", "py35", "flake8"]

[tool.tox.envs.py26]
setenv = { "PYTHONPATH" = "{toxinidir}:{toxinidir}/nxviz" }
commands = ["pip install -U pip", "py.test --basetemp={envtmpdir}"]

[tool.tox.envs.py27]
inherit = "py26"

[tool.tox.envs.py33]
inherit = "py26"

[tool.tox.envs.py34]
inherit = "py26"

[tool.tox.envs.py35]
inherit = "py26"

[tool.tox.envs.flake8]
basepython = "python"
deps = ["flake8"]
commands = ["flake8 nxviz"]
8 changes: 0 additions & 8 deletions requirements.txt

This file was deleted.

22 changes: 0 additions & 22 deletions tox.ini

This file was deleted.

0 comments on commit 2ea49b5

Please sign in to comment.