Skip to content

Commit

Permalink
Switch from flake8 and black to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Apr 19, 2023
1 parent e0a81b9 commit 75ef1a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .drone.yml
Expand Up @@ -16,8 +16,7 @@ steps:
- chmod +x "${HOME}/bin/cc-test-reporter"
- python setup.py develop
- pip install -r requirements-test.txt
- flake8
- black --line-length 79 --check .
- ruff check .
- mypy . --strict
- cc-test-reporter before-build
- coverage run -m unittest
Expand Down
9 changes: 4 additions & 5 deletions requirements-test.txt
@@ -1,8 +1,7 @@
# Testing
black==23.1.0 # Standard python formatter
coverage==7.2.1 # Test coverage
flake8==6.0.0 # Python linting
coverage==7.2.3 # Test coverage
ruff==0.0.261 # Python linter

# Types
mypy==1.1.1 # Static typing
types-setuptools==67.6.0.0 # Type stubs for setuptools package
mypy==1.2.0 # Static typing
types-setuptools==67.6.0.8 # Type stubs for setuptools package
2 changes: 0 additions & 2 deletions setup.py
Expand Up @@ -43,8 +43,6 @@
py_modules=["req_update.req_update"],
install_requires=[],
test_suite="req_update.tests",
# testing requires flake8 and coverage but they're listed separately
# because they need to wrap setup.py
extras_require={
"dev": [],
"test": [],
Expand Down

0 comments on commit 75ef1a4

Please sign in to comment.