Skip to content

Commit

Permalink
Switch from flake8 to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Jul 1, 2023
1 parent 6af7351 commit ff2c5da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
- chmod +x "${HOME}/bin/cc-test-reporter"
- python setup.py develop
- pip install -r requirements-test.txt
- flake8
- ruff check .
- mypy . --strict --exclude build
- cc-test-reporter before-build
- coverage run -m unittest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ Development
```bash
python setup.py develop
pip install -r requirements-test.txt
flake8
ruff check .
mypy . --strict
coverage run -m unittest
coverage report -m
flake8
ruff check .
```

Publishing
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Testing
coverage==7.0.1 # Test coverage
flake8==6.0.0 # Python linting
ruff==0.0.275 # Python linting

# Type checking
mypy==0.991 # Static typing
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@

test_suite="syspath.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 ff2c5da

Please sign in to comment.