Skip to content

Commit dd44cda

Browse files
authored
Code modularization and refactoring. (#141)
* Bump `pre-commit` hooks. * Catch unused imports. * Bump test requirements. * Split code into modules. * Fix tests. * Configure `pytest`. * Refactor permissions tests. * Refactor io tests. * Refactor checks tests. * Refactor converters tests. * Refactor archives tests. * Refactor paths tests. * Refactor info tests. * Add metadata tests. * Add core tests. * Remove old tests file. * Rename core to operations. * Add args tests. * Add deps tests. * Don't redefine built-ins.
1 parent 4920667 commit dd44cda

30 files changed

+3184
-2881
lines changed

.github/workflows/test-package.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ jobs:
4343
4444
- name: Run tests
4545
run: |
46-
coverage run --append --source=fsutil -m unittest
47-
coverage report --show-missing
48-
coverage xml -o ./coverage.xml
46+
pytest tests --cov=fsutil --cov-report=term-missing --cov-fail-under=90
4947
5048
- name: Upload coverage to Codecov
5149
uses: codecov/codecov-action@v4

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
repos:
44

55
- repo: https://github.com/asottile/pyupgrade
6-
rev: v3.18.0
6+
rev: v3.19.1
77
hooks:
88
- id: pyupgrade
99
args: ["--py310-plus"]
@@ -14,14 +14,14 @@ repos:
1414
- id: fix-future-annotations
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.6.9
17+
rev: v0.9.4
1818
hooks:
1919
- id: ruff
2020
args: [--fix, --exit-non-zero-on-fix]
2121
- id: ruff-format
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.12.0
24+
rev: v1.15.0
2525
hooks:
2626
- id: mypy
2727
args: [--ignore-missing-imports, --strict]

0 commit comments

Comments
 (0)